Chart.js and long labels

前端 未结 6 647
难免孤独
难免孤独 2020-12-30 22:45

I use Chart.js to display a Radar Chart. My problem is that some labels are very long : the chart can\'t be display or it appears very small.

So, is there a way to b

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 22:54

    You can write a javascript function to customize the label: // Interpolated JS string - can access value scaleLabel: "<%=value%>",

    See http://www.chartjs.org/docs/#getting-started-global-chart-configuration

提交回复
热议问题