Solved

chartFX

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

19 Experts available now in Live!

Get 1:1 Help Now