标签:
第一种:静态数据
$(‘#THChartDiv‘).highcharts({ chart: { type: ‘spline‘ }, title: { text:过程线‘ }, xAxis: { title: { text: ‘X‘ } }, yAxis: { title: { text: ‘Y‘ } }, tooltip: { enabled: true, formatter: function () { return ‘this.y + ‘,‘ + this.x; } }, legend: { enabled: false }, plotOptions: { line: { dataLabels: { enabled: true }, enableMouseTracking: false } }, series: [{ name: ‘XY‘, data: [[3.9, 4.2], [5.7, 8.5], [8.9, 15.2], [17.0, 26.6], [34.2, 50.3], [46.6, 74.8]] }] }); chart = $(‘#THChartDiv‘).highcharts();
第二种:动态数据
标签:
原文地址:http://www.cnblogs.com/coolsundy/p/4207233.html