echarts value gap is too large, some data will be displayed incompletely

As shown in the figure, there are two histograms, but the difference in magnitude is too large, resulting in basically no effect in the second graph.
insert image description here

The solution is as shown in the figure: set type to log

insert image description here
Pay attention to the direction of your own picture. If it is horizontal direction like mine, set it in xAxis. If it is vertical direction, set it in yAxis.
Then look at the effect:
insert image description here

You're done!

Guess you like

Origin blog.csdn.net/changyana/article/details/128614964