[Echarts] Commonly used summary of front-end echarts

1. How to use echarts in vue2 project

Using 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

The echarts gradient in vue is overwritten and invalidated. echarts.graphic.LinearGradient cannot be displayed normally.

4. Echarts column chart realizes scrolling from right to left

Echarts column chart implements scrolling from right to left

Guess you like

Origin blog.csdn.net/qq_46123200/article/details/135192070