Hi,
I try to create a lineChart with more then on value per Day. Per default ther is only one value per Day allowed. Is there a Way to use more values per day?
My tests raise:
Caused by: org.jfree.data.general.SeriesException: You are attempting to add ....
Hello Harald,
I don't fully understand your problem. Are you trying to create LineChart with DateAxis and several series (lines) in one Chart? Please clarify your use case and also provide us with a code of your page and backing bean.
Regards,
Tatyana
No, I'm showing Traffic Graphs like that in the attachment. In this example i use as Key a String value. If i use a Date Object, then I'm not able to insert values like
27.11.07 18:00
27.11.07 19:00
27.11.07 20:00
the i get the exeption.
if i use
27.11.07 18:00
28.11.07 18:00
29.11.07 18:00
everything works fine.
The use of String works but i can't show the gridlines.
here is the the thrown exeception
Caused by: org.jfree.data.general.SeriesException: You are attempting to add an observation for the time period 28-October-20
07 but the series already contains an observation for that time period. Duplicates are not permitted. Try using the addOrUpd
ate() method.
at org.jfree.data.time.TimeSeries.add(TimeSeries.java:497)
at teamdev.jsf.component.chart.impl.jfc.ModelConverter.b(SourceFile:165)
Harald,
Unfortunately, there is no possibility to use several keys for one date in the current implementation of the Chart component. We will improve Chart so this use case is possible in one of the future versions of QuipuKit. You can use the String objects instead.
Can you please describe what the problem with gridlines is? It is possible to specify gridlines for any chart axis types.
Regards,
Tatyana
If i use Strings, the key-axis was used as categories not as values and the vertical grid is off, the parameter <q:chartGridLines domain="both" visible="true"/> is ignored in this case. If i use date with the same configuration, the vertical Grid is visible.
Yes, I've tried to specify gridlines for the non-date axis and it does not work. Thank you for reporting the issue. We will fix it in one of the future releases of QuipuKit.
Regards,
Tatyana