Services Plugins FAQs

Apex Chart Y-Axis Label Error

I have created several simple area charts which show the count of an item based on a date or a data type. In both cases the Y-axis is duplicating the count showing 1, 1, 2, 2, 3, 3. I have not been able to solve why this is happening.
In these cases, one of the examples is a single series and the other is a multiple series. This seems to only be happening when the data is a “count”.


image

Hey,
Thank you for contacting us.

It looks like the issue you’re experiencing with the duplicated values on the Y-axis happens because the chart is trying to scale the values based on the data you’ve provided. When the difference between the minimum and maximum values on the Y-axis is small, the axis labels are shown with decimal values. Since the “Decimal amount” field is set to 0, the values are being rounded to whole numbers, which can cause the labels to repeat.

Here are a few suggestions to resolve this:

  1. Set a specific value for the “Y-axis max value”: By doing this, you can ensure that the Y-axis values are scaled correctly, avoiding duplication of values.
  2. Increase the “Decimal amount”: Set a value greater than 0 for the “Decimal amount” field. This will allow the Y-axis labels to display decimal values and prevent rounding issues.
  3. Try both adjustments: You could set both the “Y-axis max value” and a non-zero value for “Decimal amount” to optimize the scaling and avoid repeating values on the axis.

Have a nice day!

Best Regards,
Anton

Browse all Zeroqode Plugins for Bubble
Banner_Last3

1 Like

Worked perfectly.
I set the max y-axis to be 5 and then added a conditional that when the count is greater than 5 the max y-axis is increased.

Thanks.

Hey @carolyn,
Thank you for your reply.

Glad to be helpful. Please feel free to reach us again when you need some help or assistance. It will be a pleasure to cooperate.

By the way, if you like our plugin you can rate it by going to the Plugins tab in Bubble editor. Find the plugin by name and give it as many stars as it deserves. We would appreciate it a lot!
Additionally, if you’re open to sharing your complete experience with Zeroqode, please feel free to do so here: Review

Best Regards,
Anton

Browse all Zeroqode Plugins for Bubble
Banner_Last3