Solved

Creating a simple chart with ChartFX

Posted on 1997-11-26
1
290 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

747 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

10 Experts available now in Live!

Get 1:1 Help Now