Solved

chartFX

Posted on 1997-05-19
1
775 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month11 days, 14 hours left to enroll

623 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