Autor Beitrag
fcg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: Fr 04.04.03 13:35 
moin moin

ich hab da nen problem. und zwart soll ich verschieden werte (in prozent gesehen) in einem tortendiagrammm darstellen. das ganze soll mit image1.canvas funzen.

Gesamtwert = 100 %
Anteil A = 67 %
Anteil B = 30 %
Anteil C = 3 %

Es sind immer nur drei Anteile vorhanden.

ich habe leider kein plan,w ie ichd as machen soll. :?:

thÄnX for help

_________________
.: Wer für alles offen ist, kann nicht ganz dicht sein! :.
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Fr 04.04.03 14:38 
Hallo,

zum Zeichnen kannst du die Funktion TCanvas.Pie verwenden. Die Formel zum berechnen solltet ihr bekommen haben.

Gruß
Klabautermann
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Fr 04.04.03 15:03 
ich finde das voll bescheuert das die lehrer vorschrieben benutzt diese oder jene kombos :?
für ein diagramm würde ich immer TChart nehmen da er sehr bequem und ein fach zu bedinen ist und eine menge Eigenschaften hat

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)