mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 19:49:42 +08:00
显示位置曲线
This commit is contained in:
30
html/config/js/printercaliresult.js
Normal file
30
html/config/js/printercaliresult.js
Normal file
@ -0,0 +1,30 @@
|
||||
var chartDom = document.getElementById('main');
|
||||
var myChart = echarts.init(chartDom);
|
||||
// 指定图表的配置项和数据
|
||||
var option = {
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
data: [1,2,3,4,5,6]
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value'
|
||||
},
|
||||
tooltip:{
|
||||
trigger:'axis'
|
||||
},
|
||||
dataZoom:[{
|
||||
type:"inside" //详细配置可见echarts官网
|
||||
}],
|
||||
series: [
|
||||
{
|
||||
name: 'DN',
|
||||
data: [150, 230, 224, 218, 135, 147, 260],
|
||||
type: 'line'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
option.xAxis.data=xx;
|
||||
option.series[0].data=yy;
|
||||
option
|
||||
myChart.setOption(option);
|
Reference in New Issue
Block a user