chartist icon indicating copy to clipboard operation
chartist copied to clipboard

Y axis on right side in Line graph?

Open jashsayani opened this issue 4 years ago • 2 comments

I read the docs and did not see an API to move the Y axis to the right side for a Line graph. My graph looks like this:

Screen Shot 2021-02-13 at 10 49 50 PM

I want to move the Y axis to right, since its more readable (end values matter more)

jashsayani avatar Feb 14 '21 07:02 jashsayani

This is a dupe of #302 (which was closed)

jashsayani avatar Feb 15 '21 06:02 jashsayani

Hi @jashsayani 👋

This can be achieved with the following option:

axisY: {
  // On the y-axis start means left and end means right
  position: 'end'
}

A code sandbox with an example.

Arantiryo avatar Sep 14 '22 12:09 Arantiryo