In this case, we can suggest setting a majorUnit props, this will ensure that major units will be whole numbers.
You can dynamically calculate its value based on the data and bing it to the state. Then when the data changes, calculate it again and update the state. This can be done on componentDidUpdate or a useEffect hooks, that will monitor for data changes.
Providing an example could be misleading as the calculation on the setup will depend onthe application. If there are specific issues using this approach, please share an example with the issue and I will be happy to provide a suggestion best suited for it.
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/.