Re: Kchart for Kplato indicator
Thomas Zander <[email protected]> Thu, 18 Jan 2007 21:10:39 +0100
| Newsgroups | gmane.comp.kde.kplato |
|---|---|
| Message-ID | <[email protected]> |
--===============1891598534== Content-Type: multipart/signed; boundary="nextPart4088553.JHsSj4NX3P"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart4088553.JHsSj4NX3P Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 18 January 2007 20:02, Fr=E9d=E9ric Lambert wrote: > We want to display three curves to answer this need : > > " The best charting available is > to display Budgeted Cost of Work Scheduled vs. Budgeted Cost of Work > Performed (Schedule Variance); and Budgeted Cost of Work Performed vs. > Actual Cost of Work Performed (Cost Variance)." > > On the X-coordinate : the current duration of the project > On the Y-coordinate : the percentage of the budgeted cost of work > Scheduled...etc > > It will be integer points that we need to join with graphical curves. > A simple chart with some colours ;) Ok, for that functionality the current kchart will not help you. The newly imported kdchart engine can provide that, but that has not been=20 integrated in kchart yet. I also know near nothing about kcharts internals, so I can't really help yo= u. I do know that if you want to use the kchart engine the steps will be; a) make kchart use the new kdchart engine. the kchart/kdchart is currently not compiled. The kchart/kdchart1 dir is. b) make a KoShape inheriting class that is capable of painting the chart. [= 1] c) create a class in KOffice libs that inherits from KoShapeUserData and ma= ke=20 it hold the charting data and all the settings you need. The chart-shape should then use this data (see api docs at=20 KoShape::setUserData()) to configure the chart and display it. Alternatives are; * use the kdchart2 engine directly. This is not very pretty. * Write a QWidget yourself. * Use the KPlot as cyrille stated. Which may be made generically available = end=20 of this month. 1) http://wiki.koffice.org/index.php?title=3DHow_to_write_a_flake_shape =2D-=20 Thomas Zander --nextPart4088553.JHsSj4NX3P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQBFr9RACojCW6H2z/QRArPsAKCOLAZALEbk/HxCVO9EayrmMsYEEgCfS3fU W3ukwxl4TtTM0pwP1FBh3og= =ynvO -----END PGP SIGNATURE----- --nextPart4088553.JHsSj4NX3P-- --===============1891598534== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kplato mailing list [email protected] https://mail.kde.org/mailman/listinfo/kplato --===============1891598534==--