Solved

PIE CHARTS???

Posted on 1998-05-27
5
811 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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 …

777 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