Article directory
1. How to use echarts in vue2 project
2. Echarts sets the minimum scale of the y-axis of the histogram to 1
It is very common to use Echarts in Vue, but there are many small details that can be optimized in implementation. This blog mainly introduces setting the minimum scale of the y-axis to 1. Because of some statistical situations, the 不涉及⼩数
change requires the use of the keyword minInterval and placed in yAxis inside. If you need a larger minimum scale, just change the value directly
yAxis:[
{
type:'value',
// 最⼩单位是1
minInterval:1,
}
],
3. echarts reports error echarts is not defined
4. Echarts column chart realizes scrolling from right to left
Echarts column chart implements scrolling from right to left