Home > front end >  How echarts custom mean
How echarts custom mean

Time:09-16

Echarts line behind how custom text

CodePudding user response:

See along while didn't see you can customize the X coordinates, but you can add a layer of canvas on it, do your own dotted line, may be feasible

CodePudding user response:

Series: [
{
Name: 'direct access to the'
Type: 'bar',
BarWidth: '60%',
Data: [10, 52, 200, 334, 390, 330, 220],
//average configuration
MarkLine: {
Type: 'the line',
Data: [{type: 'business' name: 'average'},]
}
}
]

CodePudding user response:

When I zoom function is added in the chart, the resized average change, this how to solve?

CodePudding user response:

In the series:
MarkLine: {
Label: {
The formatter: function () {
Return 'custom text
'},
},
}
  • Related