我正在使用 Chart.js。我想让我的图表图例标签字体更大。所以我试过这样:var ctx = $('#skill_chart');new Chart(ctx,{ "type":"radar", "data": { "labels":["Crawling","Django","Ubuntu Server","Coding","Cycling","Running"], "datasets":[{ "label":"My Second Dataset", "data":[28,48,40,19,96,27,100], "fill":true, "backgroundColor":"rgba(54, 162, 235, 0.2)", "borderColor":"rgb(54, 162, 235)", "pointBackgroundColor":"rgb(54, 162, 235)", "pointBorderColor":"#fff", "pointHoverBackgroundColor":"#fff", "pointHoverBorderColor":"rgb(54, 162, 235)"}] }, "options":{ "elements":{ "line":{ "tension":0, "borderWidth":3} } }, "legend": { "display": true, "labels": { "fontSize": 20, } }, });但它不起作用。我该怎么办?
添加回答
举报
0/150
提交
取消
