| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- var myChart = '';
- var xAxisData = [];
- // var xAxisData = getArrRange(0, 30);
- // 指定图表的配置项和数据
- var option = {
- xAxis: {
- data: xAxisData,
- show: false
- },
- yAxis: {
- show: false,
- // min: 0, // EI
- // max: 1200, // EI
- min: 60, // HR
- max: 220, // HR
- },
- grid: {
- left: '0%',
- top: 0,
- right: '-4.8%',
- bottom: 0,
- },
- series: [{
- // data: ['114', '116', '127', '129', '134', '149', '149', '151', '153', '154'],
- // data: [[0, 100], [1, 114], [2, 116], [3, 127], [4, 129], [5, 134], [6, 149], [7, 151], [8, 153], [9, 154], [10, 155]],
- type: 'line',
- seriesLayoutBy: 'column',
- smooth: true,
- itemStyle: {
- // color: '#ffffff',
- opacity: 0
- },
- lineStyle: {
- color: '#ffffff',
- width: 5
- },
- label: {
- show: false,
- position: 'bottom',
- textStyle: {
- fontSize: 10
- }
- }
- }]
- };
- function chartInit() {
- myChart = echarts.init(document.getElementById('areaChart'));
- myChart.setOption(option); // 使用刚指定的配置项和数据显示图表。
- }
|