You must be logged in to post your query.
Home › Forums › Chart Support › Negative value
Tagged: label
Hello,
Is it possible to format negative value in order to have absolute value ?
And is it possible for indexLabel and label ?
Am afraid this is not possible.
Though you can use xValueFormatString & yValueFormatString to format values inside labels, you can format them to show absolute values.
—- Sunil Urs Team CanvasJS
I don’t see how i can use the format string in order to draw absolute value of the axis :/
To explain a little bit, i want to do a population chart, something like this :
So what i’ve done, i have 2 series (Male and Female) one with negative value and i stack the two. I put the option minimum and maximum of my Y axis of the bigest value of any serie .
axisY : { minimum : -maxValue(), maximum : maxValue() }
Here is what i have for the moment :
I didn’t prettify it, … In circle the element i want to change.
@meuhmeuh,
Sorry, that was a typo. I meant to say “you can’t format them to show absolute values”. As a workaround, you can set indexLabel property of each dataPoint to its absolute value and it should work fine as shown in this JSFiddle. But labels on the axis would remain the same.
You must be logged in to reply to this topic. Login/Register