Closed Julian367 closed 6 years ago
Can you please tell me if I'm doing something wrong or is a bug? Thank you.
Can you provide more details about the configuration of the chart ? Thanks !
<bar-chart
id="bar" :data="testChart" xkey="month" ykeys='[ "totalProfit"]' resize="true"
labels='[ "Total profit"]' :bar-colors="osColor"
grid="true" grid-text-weight="bold" hide-hover="auto">
</bar-chart>
Hello,
I have updated the component: the last version (0.0.13) includes a fix for your problem.
Your problem only occurs if all values are negative.
If your are sure that you have only negative values, just add a new attribute: ymax="0"
This will force the bar chart to star the y axis to start at 0.
You will get somthing like this:
Hello,
Attribute ymax="0" is doing the trick for all negative values but I have situation when I have negative and positive values and this thing is not gone work. Can be implement as function when all the values are negative to bind this attribute ymax="0"?
Thank you
Hello, It seems that the bar graph on several negative values is wrong.