Search code examples
lightningchart

Can I set the width of AixsY?


LightningChart Version: 4.0.2.

enter image description here

Can I align the two charts by setting the y-axis width to a constant value? Is there any other property or method to achieve this effect?

I tried to use addAxisY() to add YAxis to the second chart ,then use setVisible(false) to make it invisible. But the length of the negative number or the value will make the width of them inconsistent.

enter image description here


Solution

  • Axis.setThickness should be exactly what you are looking for

    https://lightningchart.com/lightningchart-js-api-documentation/v4.0.2/classes/Axis.html#setThickness