Solved

PIE CHARTS???

Posted on 1998-05-27
5
814 Views
Last Modified: 2008-02-01
Could anyone PLEASE tell me how to use the ChartFX thing in Delphi 1. I need to find out how I can add numbers to it. For example if I wanted 2 sections where one was 300 and the other is 250. All i can make it do is display random amounts and it's doing my head in.
If there is no solution can anyone tell me how to go about writing a pie chart program. PLEASE!!!!!!
0
Comment
Question by:Dave091277
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:d4jaj1
ID: 1348194
I can't tell you how to use ChartFX, but I can suggest a better alturnative - TeeChart.  TeeChart is written in Delphi, thus doesn't require to to hassle with OCX & other registration files (like ChartFX will).  I've had so much trouble with ChartFx, I converted to TeeChart.  ChartFx destroyed my entire complib.dcl file.  Also, TeeChart is free.

If yoou want me to tel you more about TeeChart, I'll post it as an answer.  Good luck if you have to stay with CFX - you'll need it.
0
 

Author Comment

by:Dave091277
ID: 1348195
TELL ME WHAT TEECHART IS!!!!!!!! :-)  I would be so grateful if you would. Only if it is simple to use though!!
0
 
LVL 3

Accepted Solution

by:
d4jaj1 earned 100 total points
ID: 1348196
Using TeeChart is as easy as it gets.  Not sure how it will look in D1, but my guess is teh features are still the same.  Basically, there are trhree components to teh Free version, a regular chart (bar, line, pie, 3dversions, etc.), DBChart, and - if you have QuickReport 2.0, a printable Chart.  Everything is point and click, just like the rest of the Delphi IDE environment.  TEh charts compile directly into your exe, so you don't have to deploy any additional files.  Download the free/trial version at http://www.teemach.com/download/vcleval.htm.

The Pro-version add many more features & costs $99.  If you have any questions, please add a comment.

Good Luck!

Jay
0
 
LVL 2

Expert Comment

by:kjteng
ID: 1348197
If
you are using Delphi 1 and
do not want to spend $$$$ and
don't need those fancifull features and
don't want the headach from VBX
then
I would recommend you to use aabGraph.
aabGraph is a freeware component written in Delphi. Its easy to use. You can download the component/source code/demo file from
 http://personal.eunet.fi/pp/aabsoft/delphic.htm
0
 
LVL 2

Expert Comment

by:kjteng
ID: 1348198
If u still insist to waste your time on vbx
then
  try this code:

procedure TForm1.Button1Click(Sender: TObject);
begin
  with chartFX1 do begin
    OpenData[COD_VALUES] := makelong(1, 2);
    thisValue:= 0;
    value[1]:= 50;
    value[2]:= 250;
    CloseData[COD_VALUES] := 0;
  { OpenData[COD_XVALUES] := MAKELONG(1,2);
    XValue[1] := 0;
    XValue[1] := 1;
    CloseData[COD_XVALUES] := 0;}
  end;
end;

You may find some help on makeLong, openData, closeData
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 238
Delphi XE10 Round Image 2 157
Delphi Mdi application Child forms get behind control 7 272
Delphi Seattle StructureView color 1 14
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…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

860 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