Hi!
I'm using JFreeChart 0.9.14 and I see that the legend of a MeterChart is not displayed (this also happened in the Demo example).
Is that a bug or something is wrong with me?
Thanks a lot for your help!
Regards,
Patrick
MeterChart - Legend not visible
-
- Posts: 8
- Joined: Mon Jul 28, 2003 5:07 pm
... problem sussist also with JFreeChart 0.9.15
Sorry for bothering again.
I've installed today JFreeChart 0.9.15, but I've notice that this problem (at least by me) sussist.
Did/Can anybody test the MeterChart Demo and tell me if by him/her is the legend visible? (Perhaps it is really only a problem with my configuration).
Thanks a lot and bye
Patrick
I've installed today JFreeChart 0.9.15, but I've notice that this problem (at least by me) sussist.
Did/Can anybody test the MeterChart Demo and tell me if by him/her is the legend visible? (Perhaps it is really only a problem with my configuration).
Thanks a lot and bye
Patrick
-
- Posts: 26
- Joined: Fri May 09, 2003 4:55 am
- Location: Tasmania, Australia
- Contact:
Patrick
I think you are right that no legend is displayed. But I think that currently MeterPlot only supports one dataset and that this might be why. No much point displaying a legend when you only have one series?
The demo explicity turn off legend creation, but even if it is turned on it is no displayed.
I think you are right that no legend is displayed. But I think that currently MeterPlot only supports one dataset and that this might be why. No much point displaying a legend when you only have one series?
The demo explicity turn off legend creation, but even if it is turned on it is no displayed.
Code: Select all
JFreeChart chart = new JFreeChart(
"Meter Chart",
JFreeChart.DEFAULT_TITLE_FONT,
plot,
false
);
Bryan
-
- Posts: 8
- Joined: Mon Jul 28, 2003 5:07 pm
Thanks a lot for your answer.
If you have the Developer Guide, you can see (27.12.1) that the legend of a Meter Chart is something special. It looks like:
So I think, it has usefull only for one series (to better explain the chart).
Regards
Patrick
If you have the Developer Guide, you can see (27.12.1) that the legend of a Meter Chart is something special. It looks like:
Code: Select all
Sample Meter Current Value: 85
Meter Graph Range 20 to 140
Critical Range 120 to 140
Warning Range 100 to 120
Normal Range 70 to 100
Regards
Patrick
There were a few bugs that prevented the MeterLegend from showing.
If you need this functionality, I have included the fixes with an enhancement to add multiple ranges to a MeterPlot. They can be found at http://sourceforge.net/tracker/index.ph ... tid=365494.
However, since the API I implemented could be changed to match the JFreeChart standards, I would wait until David incorporates it into a future release.
Regards,
David
If you need this functionality, I have included the fixes with an enhancement to add multiple ranges to a MeterPlot. They can be found at http://sourceforge.net/tracker/index.ph ... tid=365494.
However, since the API I implemented could be changed to match the JFreeChart standards, I would wait until David incorporates it into a future release.
Regards,
David