Y axis numbers position


#1

Hello i have a Bar chart and all the values for the metrics are being shown at the left closer to the legend which is not looking good, how can i move the numbers of the Y axis to the right?


#2

Tha tis very easy you need to use the yAxis property and set its position like this:

.set("yAxis", { "position": "right" })

#3

Good it works, is there a way to also show negative values more appropriately?


#4

Well there are two options to configure that, you can use both or one of them:

myChart.set('xAxis', { center: true }) // for center the bars when we have negative values in the axis
myChart.set("yAxis", {min: -50000, max: 50000}) // or just set the min and max

#5

That Works good for me, thanks :+1:t3: