Axis:= IWCGJQPlot1.JQPlotOptions.Axes.Add;
Axis.AxisType:= jqpoxyXAxis;
Axis.Options.TickAxisOptions.Formatter.Script:= 'function(fs, lbl){ var d = (1 + (lbl - 1) * 7); return new Date(2018, 0, d).toLocaleDateString(); }';
The component help talks about having a axis.option called 2D that allows you to send the tick index and a label.
Alexander Bulei wrote:Hi gbh100,The component help talks about having a axis.option called 2D that allows you to send the tick index and a label.
It's a array dimension of JQPlotData property.
what is the syntax for it if I wanted 1440 to be "Day1", 2880 to be "Day 2", etc.
IWCGJQPlot1.JQPlotData:= '[[[2,1], [4,2], [6,3], [3,4]],[[5,1], [1,2], [3,3], [4,4]],[[4,1], [7,2], [1,3], [2,4]]]';