CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Help needed

by assapan » 28 Aug 2015 10:29

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 ?
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 28 Aug 2015 16:49

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.
You do not have the required permissions to view the files attached to this post.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by assapan » 31 Aug 2015 14:13

Hi Alexander,
Thank you very much for your help !
I was missing brackets in the JQPlotData '[[[' :oops:
Image
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France


Return to JQPlot

Who is online

Users browsing this forum: No registered users and 4 guests

Contact Us.