在寻找折线图插件时候,发现了CanvasJS,文档写的很详细,方便易懂。
在写这个时候参照了官网的两个示例,一个是JavaScript Line Charts with Data or Line Markers,另一个是JavaScript Charts & Graphs with Images on top。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<!--<script type="text/javascript" src="https://canvasjs.com/assets/script/jquery.canvasjs.min.js"></script>-->
<script type="text/javascript" src="https://canvasjs.com/assets/scr