Thank you for your previous response however I would like to know how to recover the Date value from the AxisInfo parameter of the updateInternal method of the AxisToolTip class when used with a DateAxis.
To give context to the question. I am using a DateAxis for the xAxis on this chart and specifying a customised AxisInfoProvider as in the ‘CustomizationRolloverModifierTooltips’ example. When the RolloverModifier highlights some points and if ShowAxisLabels is true then the customised version of the updateInternal method of a customised AxisToolTip is called to to display the xAxis value on the axis.
The AxisInfo object contains a dataValue member variable the question then is: how to convert this back to a Date object.
- Simon Barnes asked 6 years ago
- You must login to post comments
Hi Simon,
You can use ComparableUtil.toDate():
final Date date = ComparableUtil.toDate(axisInfo.dataValue);
Is this suitable for your needs?
Hope this will help you!
Best regards,
Yura
- Yura Khariton answered 6 years ago
- You must login to post comments
Please login first to submit.