Plot bands don't work correctly when ChartCategoryAxisItem min is set

1 Answer 128 Views
Charts
Dylan
Top achievements
Rank 1
Dylan asked on 17 Mar 2022, 05:29 PM

Category axis plot bands start behaving strangely when you zoom a chart by increasing the min prop of ChartCategoryAxisItem. Category plot bands are essentially broken if you're setting the min prop to a non-zero value.

https://stackblitz.com/edit/react-zaswls?file=app/main.tsx

This is a version of the first example at https://www.telerik.com/kendo-react-ui/components/charts/chart/elements/plot-bands/ that has been edited to show the problem. When ChartCategoryAxisItem min is set to 5 and max is set to 10, the category plot band from 8 to 10 should be visible, yet it's not.


1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 18 Mar 2022, 08:54 AM

Hello,

Thank you for reporting this.

I can confirm that this is an issue with the current version of the KendoReact Chart.

I have logged this for fixing, and the status can be monitored here:

https://github.com/telerik/kendo-react/issues/1246

Currently, there is no workaround available, if one is found it will be added to the issue.

Additionally, I have added someTelerik points to your account for bringing this to our attention.

Apologies for the inconvenience this may have caused you.

Regards,
Stefan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Dylan
Top achievements
Rank 1
commented on 19 Mar 2022, 04:27 PM

Thank you, Stefan. You may want to test if the problem also occurs with notes, in case they have similar code to plotBands.
Stefan
Telerik team
commented on 21 Mar 2022, 06:04 AM

Hello,

Thank you for the suggestion. 

They should be working as expected as they are attached to a specific value where the plotBands for the category axis as index-based.

Dylan
Top achievements
Rank 1
commented on 21 Mar 2022, 02:38 PM

I was referring to axis notes, which are index-based, not series notes. It seems like there is no problem with axis notes, though. I modified my example to test it.

https://stackblitz.com/edit/react-ntgvoe?file=app/main.tsx

Stefan
Telerik team
commented on 22 Mar 2022, 05:48 AM

Hello,

Thank you for the confirmation and for sharing the results with the KendoReact community.

Tags
Charts
Asked by
Dylan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or