Solved

chartFX

Posted on 1997-05-19
1
752 Views
Last Modified: 2008-03-03
A have made a graph in chartFX and i want to get the values from it.

I haven tried different methods from the help-section but it wont work.

Please write exactly what to do if i want to get the value of, serie 1, point 1.

The graph is called ChartFX1

Regards Jakob
0
Comment
Question by:Jakob Adeltoft
1 Comment
 
LVL 2

Accepted Solution

by:
javiertb earned 100 total points
ID: 1336493
Imagine you have a chart with 2 series and 3 values each.
Here you introduce the values:
ChartFX1.OpenDataEx(COD_VALUES,2,3); {Make sure you include                                           cfxocx2 in your uses clause}

ChartFX1.ThisSerie:=0; {Now working with the 1st serie}
ChartFX1.Value[0]:=30;
ChartFX1.Value[0]:=20;
ChartFX1.Value[0]:=40;
ChartFX1.ThisSerie:=1; {Now working with the 2nd serie}
ChartFX1.Value[0]:=15;
ChartFX1.Value[0]:=45;
ChartFX1.Value[0]:=25;
ChartFX1.CloseData(COD_VALUES);

Now, if you want to get a value from the first point of the first serie do the following:

var  
    ReturnValue: Real;

ChartFX1.ThisSerie:=0; {Set the working serie the 1st one}
ReturnValue:=ChartFX1.Value[0];  {Here you have the value}

Regards.
Javi
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now