O
O
Oleg Otkidach2021-06-14 16:39:01
JavaScript
Oleg Otkidach, 2021-06-14 16:39:01

Echarts library, how to change the reference point in the vertical axis?

Often, all data is far from zero, and the origin in the vertical axis is always zero.
Let's say below we have no data less than 1200 rubles.

60c75b72128ef509624346.jpeg

How to change origin?
A similar question was asked a long time ago - How to set the origin of coordinates for Chart.js? But the answer didn't work for me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2021-06-14
@Allegro75

It's worth going through the documentation before asking, don't you think?

yAxis: {
    min: 'dataMin'
},

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question