标签:pre 最小 最小值 element ons main max const data
const myEchart = echarts.init(document.getElementById(‘main‘)) const options = { xAxis: { data: [‘小明‘, ‘夏红‘, ‘君子‘, ‘闰土‘, ‘明‘, ‘红‘, ‘子‘, ‘土‘], type: ‘category‘ }, yAxis: { type: ‘value‘ }, series: [ { data: [40, 90, 70, 23, 90, 50, 70, 13], type: ‘bar‘, markPoint: { data: [ { type: ‘max‘, name: ‘最大值‘ }, { type: ‘min‘, name: ‘最小值‘ } ] }, markLine: { data: [ { name: ‘平均线‘, // 支持 ‘average‘, ‘min‘, ‘max‘ type: ‘average‘ } ] } } ] } myEchart.setOption(options)
标签:pre 最小 最小值 element ons main max const data
原文地址:https://www.cnblogs.com/coderwhytop/p/14878274.html