|
From: Jarle L. <jl...@do...> - 2003-11-14 07:56:26
|
Hi,
I did a Radar legend implementation myself (sent it to Nataniel off
list) :
"
I've had a look at the code, and made a legend implementation for the
Radar chart. The doesn't take the axis labels into consideration, so the
labels and legend may be on top of each other if the legend is LEFT or
RIGHT (this does not apply to TOP or BOTTOM).
Changes:=20
Legend.java: I had to do som additions to avoid classcast exceptions:
-calculateDrawingValues() : added else if (iData instanceof
IRadarChartDataSet ) {...} -Added method : private void processData(
IRadarChartDataSet iRadarChartDataSet ) {...} -Added method: private
void processLegendLabels( IRadarChartDataSet iRadarChartDataSet ) {...}
RadarChart.java:
-Added legend redering to : protected void renderChart() { ... }
I've attached the two files if you wan't to update the CVS repository.
"
I'm not able to compare my code and your code until monday, but I think
this is pretty much what you've done too...
Thanks for looking into problem!
-Jarle
-----Opprinnelig melding-----
Fra: jch...@li...
[mailto:jch...@li...] P=E5 vegne av Stefan
Groschupf
Sendt: 12. november 2003 23:41
Til: jch...@li...
Emne: [jCharts-users] radar chart legend patch
Hi Folks, Hi Nathaniel,
at least I got the problem with scaling the radar chart fixed as well.
Anyways this has more the character of a "hack" then a clean patch.
Sorry I'm to much in rush, but i wish that other can participate.
Here is a patch that anable legends in radar charts.
Just update a cvs jchart checkoput (e.g. apply patch in eclipse) and=20
rebuild your jchart.
This patch has following known problems:
1.) if your legend is much to big the may be the labels of your radar=20
chart is cutted on the side. (sorry dont know to fix)
2.) my ide had reformt some code that is not involvedin the radar legend
chart issue. Sorry was a mistake. (That why so much is marked as deleted
and added in the patch file)
Hope that helps you Mathias and Jarle.
Cheers
Stefan
--=20
open for jobs: www.media-style.com
open source: www.weta-group.net
open discussion: www.text-mining.org
|