Solved

Creating a simple chart with ChartFX

Posted on 1997-11-26
1
301 Views
Last Modified: 2010-04-04
Hi again!
  This time I want to create a simple pie chart using Delphi 1.0's built-in ChartFX capabilities...but the documentation describing ChartFX is sketchy at best.
  Nothing complicated. I just want to read a file of words and count how many words start with the letter 'a', how many start with the letter 'b' and so on. When my program is done reading the file, I want to display a 3-D pie chart of this data showing the percentages of each.
  Is it possible also to set up a button that will delete this chart off my form after I'm done looking at it?

   In the documentation, I saw this example on how to create a line chart, but it didn't really explain how to get your data into the chart:

 hWnd := chart_Create(LINE | CT_3D,CS_ALL,NULL,10, 10, 200, 200,20, 2,
                       IDM_CHART,WS_OVERLAPPEDWINDOW | WS_VISIBLE);


Thanks Again!
   Shawn Halfpenny
   drumme59@sprint.ca

P.S: Can you include in your answer all the necessary variable declarations I'll need to make too? Thanks.
0
Comment
Question by:aztec
1 Comment
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1352033
Can't do it better than :
 http://www.doit.com/delphi/undu/dn0831be.htm

P.S. Why don't you try TxyGraph (No OCX! and freeware) :
     http://www.kestral.com.au/delphi/
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

791 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