6 Answers, 1 is accepted
Indeed this is not explained in the best way in the documentation and I will make sure it is updated.
On your question - the Y axis (if not configured explicitly) autoadjusts to accommodate the values the series have. These are all numerical values and they depend on the series' values, which is why they cannot be taken explicitly from the datasource. What you can do is to set the MinValue and MaxValue from the code-behind according to your data. The DataFormatString for the labels on the Y axis series is also located in the LabelsAppearance inner tag and you can see it in action in this online demo (expand the Y axis configurator, on the top right is the Labels Data Format String textbox). I am sorry to say, however, that date strings are not supported at the moment and this is a significant challenge for JavaScript and this type of rendering.
Kind regards,
Marin Bratanov
the Telerik team
Indeed, we currently do not provide ability to bind labels to different database information. The scenario you say is a bit unusual because usually the labels should be related to the values. We are planning to add template features for the labels and once this is available, you will be able to modify the values with additional strings.
Providing a template, however, will not provide the ability to bind the labels and we are not sure how useful adding such ability is. That is why we decided to create a PITS issue based on your suggestion, so that we can gather feedback about it and we will decide whether to add it as feature and when based on that.
Here you can find the PITS Issue: Public URL
As to the datetime formatting, if you want to format the labels of XAxis with a date format string, this is easy and possible through the property in mention. For Y axis this is not possible due to the fact that it is numeric only for the time being, while the X axis is categorical /uses strings/.
I hope that my reply is helpful, let us know how it goes.
Svetlina Anati
the Telerik team
I have already replied to the same question asked by you in this forum thread, so that we can continue our discussion there.
Regards,
Danail Vasilev
Telerik