Solved

chartFX

Posted on 1997-05-19
1
765 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Printing problem 2 110
Delphi selector screen 2 92
Reconfigure Delphi Install? 2 64
Dynamically Created Query 3 69
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

740 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