10 Answers, 1 is accepted
There is an issue with datetime axis though:
The category name (tooltip head) isn't copied from axis, but a standard-formatted (mm/dd/yyyy) date is displayed as instead.
My date range and thus baseUnit is dynamic (set to "fit").
I tried to use sharedTemplate - here the category field returns completely unformatted datetime value.
Can I retrieve
The category formatted as on the axis?
the format-string used on the axis for current baseUnit?
at least the actual baseUnit in use?
I am afraid what you would like to achieve is not supported by Kendo UI Chart at this point. The only possible workaround I can suggest is setting manually the tooltip format in the tooltip.template:Regards,
Depending on the range I need different format string. E.g. month or week or time only just as on the axis.
The meaning of previous question was if I could somehow get that actual format string from kendoui internals or at least calculated base unit to decide whitch format string to use?
I am afraid there is no a property which contains the discussed format, however we will do our best to provide an option for future releases. Please excuse us for the inconvenience caused.
(and then use script to do the formatting)
I can suggest using a template for the shared label:
I made an example demonstrating this. If the scenario defers, please modify the example and I will gladly assist:
Applying JamesD's suggestion to Stefan's example yields something like this:http://dojo.telerik.com/OkONAtEM/56