#html

<div id="chart_line_legend" class="chart-legend"></div>
<canvas id="chart_line" height="80"></canvas>

#js

// render chart
var ctx = document.getElementById("chart_line").getContext("2d");
chartLine = new Chart(ctx).Line(lineData, lineOptions);
document.getElementById('chart_line_legend').innerHTML = chartLine.generateLegend();

 

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2021-12-26
  • 2021-09-12
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-04
  • 2021-12-16
  • 2021-12-14
  • 2022-02-06
  • 2021-12-24
相关资源
相似解决方案