Page 1 of 1

Help needed

PostPosted: 28 Aug 2015 10:29
by assapan
Hi,
I am very new in JQPlot and i couldn't find how to acheive my goal :oops:
I have to draw a chart where X axis is Meters and Y is kilogramme and i have no clue on how to do it !!
Image

so far what i have been able to do !!
Image

I want to plot at 0.31;0 + 0.31;500 + 0.44;800 + 0,57;800 + 0,57:0

Can anyone help ?

Re: Help needed

PostPosted: 28 Aug 2015 16:49
by Alexander Bulei
Hi assapan,

Here you have little help ;)

delphi code
var
AxisItem: TIWCGJQPlotOptionsAxesItem;
begin
IWCGJQPlot1.JQPlotData:= '[[[0.31,0],[0.31,500],[0.44,800],[0.57,800],[0.57,0]]]';
IWCGJQPlot1.JQPlotOptions.AxesDefaults.Label_:= '';

AxisItem:= IWCGJQPlot1.JQPlotOptions.Axes.Add;
AxisItem.AxisType:= jqpoxyYAxis;
AxisItem.Options.Min:= 0;
AxisItem.Options.Label_:= 'Masse : Kg';
AxisItem.Options.LabelRenderer:= jqplrCanvasAxisLabelRenderer;
AxisItem.Options.LabelCanvasAxisOptions.Angle:= -90;

AxisItem:= IWCGJQPlot1.JQPlotOptions.Axes.Add;
AxisItem.Options.TickInterval:= 0.05;
AxisItem.Options.Min:= 0;
AxisItem.Options.Label_:= 'Distance C.G au pt reference (m)';


Result:

28-08-2015 16-47-42.png


Best Regards.

Re: Help needed

PostPosted: 31 Aug 2015 14:13
by assapan
Hi Alexander,
Thank you very much for your help !
I was missing brackets in the JQPlotData '[[[' :oops:
Image