我想问一下是否可以使用HighCharts.js库隐藏图表中的所有图例框?
var chart_object = { chart: { renderTo: render_to, type: graph_type }, colors:graph_colors, title: { text: '' }, xAxis: { min: 0, title: { text: x_axis.title, margin: 15 }, categories: categories, }, (...) }; // Create the chart var chart = new Highcharts.Chart(chart_object);
任何帮助将不胜感激.
好吧,我发现这样做最简单的方法就是将图例属性添加到chart_object并将enabled设置为false:示例:
var chart_object = { chart: { renderTo: render_to, type: graph_type }, legend:{ enabled:false }, colors:graph_colors, (...)