Interface TimeTickCallback
-
public interface TimeTickCallbackInterface to implement if wants to change the tick marks to include information about the data type, for cartesian time axes.- Author:
- Andrea "Stock" Stocchero
- See Also:
CartesianTimeAxis,CartesianTimeSeriesAxis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringonCallback(Axis axis, Date value, String label, int index, List<ScaleTickItem> values)Changes the tick marks to include information about the data type.
-
-
-
Method Detail
-
onCallback
String onCallback(Axis axis, Date value, String label, int index, List<ScaleTickItem> values)
Changes the tick marks to include information about the data type.- Parameters:
axis- axis instance where this callback as been definedvalue- value of tick as datelabel- label of tick, passed by CHART.JS formatting the date by the selectedTimeUnitand its display format.index- index of tickvalues- list of all tick values- Returns:
- the tick to apply or if the callback returns
nullthe associated grid line will be hidden.
-
-