This question is locked. New answers and comments are not allowed.
I have a chart with several series. The data comes from a web service asynchronously.
Data in the chart can be updated by choosing different date ranges.
What is the best way to figure out how many items are in the chart and calculate the label step so that we only show about 10 labels along the x-axis no matter how many items are in the chart?
Right now I am getting the count of how many items are in one of the series and then calculating label step based on that. But this has a few issues because I don't know if that series will always have items in it and I don't know if it will have the most items in it. That leads me to think I could try to consider all the series, but that starts to get complicated and there must be an easier/cleaner way? Is there anything in the telerik chart components that allows us to restrict the x-axis to only showing x number of labels?
Data in the chart can be updated by choosing different date ranges.
What is the best way to figure out how many items are in the chart and calculate the label step so that we only show about 10 labels along the x-axis no matter how many items are in the chart?
Right now I am getting the count of how many items are in one of the series and then calculating label step based on that. But this has a few issues because I don't know if that series will always have items in it and I don't know if it will have the most items in it. That leads me to think I could try to consider all the series, but that starts to get complicated and there must be an easier/cleaner way? Is there anything in the telerik chart components that allows us to restrict the x-axis to only showing x number of labels?