Search found 497 matches
- Wed Feb 04, 2009 2:52 pm
- Forum: JFreeChart
- Topic: Bar / Line Chart misalignment
- Replies: 30
- Views: 28547
Yahoo! setTickMarkPosition() did the final trick! Thank you! There is still one thing: now the bars widths are too small. I thought, I can change this by setting the XYBarRenderer.setMargin(1.0), but with this value, the bars vanisch! Now, I aks myself why I should have to use TimeSeriesCollection a...
- Wed Feb 04, 2009 2:33 pm
- Forum: JFreeChart
- Topic: Bar / Line Chart misalignment
- Replies: 30
- Views: 28547
Okay, with the "really big number" for the second argument of XYBarDataset, I get back real bars. So from the data/plot side it looks okay now, but the date axis labels the month ticks at the beginning. Example: the first x value is at 2008-02-29 (end of february) but the axis shows "March 2008" at ...
- Wed Feb 04, 2009 2:01 pm
- Forum: JFreeChart
- Topic: Bar / Line Chart misalignment
- Replies: 30
- Views: 28547
Okay, I build now a XYSeriesColletion and set the date's milliseconds as the x values and wrap it to a XYBarDataset: result = new XYBarDataset(xysc, 90.0); but it looks weird: the bars all are very thin (no matter if I set "10.0" or "90.0" as the second value of the XYBarDataset constructor. The bar...
- Wed Feb 04, 2009 1:07 pm
- Forum: JFreeChart
- Topic: Bar / Line Chart misalignment
- Replies: 30
- Views: 28547
I replaced TimeSeriesCollection with getDefaultXYDataset() but get this exception when trying to save the chart: java.lang.ClassCastException: org.jfree.data.xy.DefaultXYDataset cannot be cast to org.jfree.data.xy.IntervalXYDataset at org.jfree.chart.renderer.xy.XYBarRenderer.drawItem(XYBarRenderer....
- Tue Feb 03, 2009 6:07 pm
- Forum: JFreeChart
- Topic: XYBarRenderer: how to center on xy point?
- Replies: 4
- Views: 3977
A TimeSeriesCollection (created via ChartFactory.createTimeSeriesChart(title, xLabel, yLabel, xyd, legend, toolTips, urls)). The bar widths don't have to represent the interval - in fact, it annoyed us and I changed the bar width via setMargin(0.3) to NOT span the whole interval. In the end it is an...
- Tue Feb 03, 2009 5:40 pm
- Forum: JFreeChart
- Topic: XYBarRenderer: how to center on xy point?
- Replies: 4
- Views: 3977
There are ways to work around this, but it depends on the dataset classes you are using. For example, the TimeSeriesCollection class has the setXPosition() method, which you can use to shift the alignment of a times series line chart (it's generally simpler to shift the line than the bars). Tried t...
- Tue Feb 03, 2009 5:37 pm
- Forum: JFreeChart
- Topic: Bar / Line Chart misalignment
- Replies: 30
- Views: 28547
So, how can I solve this? I just want the line points and bars centers to be the same which I can do via
but this also shows the month ticks and ticklabels at the middle of the month - even though the date values are all "month ends".
Code: Select all
tsc.setXPosition(TimePeriodAnchor.MIDDLE)
- Tue Feb 03, 2009 5:25 pm
- Forum: JFreeChart
- Topic: Bar / Line Chart misalignment
- Replies: 30
- Views: 28547
When I call setXPosition(), the x locations of the line chart now move rightwards to the center of the bars ... so the line and bars look okay, but are misplaced to the x axis time point. If I leave out the setXPosition() again, the line chart points move backwords to the right position, leaving the...
- Tue Feb 03, 2009 4:41 pm
- Forum: JFreeChart
- Topic: XYBarRenderer: how to center on xy point?
- Replies: 4
- Views: 3977
XYBarRenderer: how to center on xy point?
I have an XY overlay chart with a line chart and a bar chart. The bar chart is using a XYBarRenderer (new StandardXYBarPainter()). The line items are shown correctly an the x locations. The bar items just _start_ at the x locations and end at the subsequent value. How can I shift the bars to the lef...
- Tue Feb 03, 2009 2:55 pm
- Forum: JFreeChart
- Topic: JFreeChart 1.0.12
- Replies: 2
- Views: 4944
Old version number?
The 1.0.12 version still says its 1.0.11 ... try { final ResourceBundle rb = ResourceBundle.getBundle("org.jfree.chart.resources.JFreeChartResources"); LOGGER.config("JFreeChart: "+rb.getString("project.name") + " " + rb.getString("project.version")); } catch (final Exception e) { /* ignore */ } Out...
- Tue Feb 03, 2009 2:16 pm
- Forum: JFreeChart
- Topic: Legend bar item not aligned for small fonts.
- Replies: 4
- Views: 4109
Legend bar item not aligned for small fonts.
I have an overlayed chart (XYPlot) with a line and a bar (XYBarRenderer) chart. The legend shows a "tall" bar, aligned to the top of the legend border, which looks bad. I thought the default behaviour would at least use some usefull centering, but the items and texts are aligned to the top border. I...
- Fri Jan 30, 2009 5:49 pm
- Forum: JFreeChart
- Topic: Transparency instead of (background) color?
- Replies: 1
- Views: 2113
Transparency instead of (background) color?
Is it possible to set colors (background colors, frame colors, etc.) to "transparent"?
- Thu Nov 20, 2008 4:45 pm
- Forum: JFreeChart
- Topic: JFreeChart 1.0.11
- Replies: 17
- Views: 25458
ARGH!!! I thought I solved this new behaviour by ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme()); BarRenderer.setDefaultBarPainter(new StandardBarPainter()); and switching of shadows, but now I noticed SOME bar charts that look the old way and some bar charts have the new default ...
- Fri Oct 24, 2008 11:05 am
- Forum: JFreeChart
- Topic: JFreeChart 1.0.11
- Replies: 17
- Views: 25458
Re: NEVER CHANGE DEFAULT PLOT SETTINGS!
The migration section in the JFreeChart Developer Guide explains how to restore the default "look" - essentially you put the following code somewhere near the start of your application (before you create any charts): ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme()); You'll also ne...
- Tue Sep 30, 2008 10:54 am
- Forum: JFreeChart
- Topic: JFreeChart 1.0.11
- Replies: 17
- Views: 25458
NEVER CHANGE DEFAULT PLOT SETTINGS!
I exchnaged 1.0.10 with 1.0.11 and noticed that all my bar charts now show strange colors in their bars and shadows. Perhaps this should "look like" some shiny, roundness, I don't know. The bad thing is, that the release notes doesn't tell about this change of default behaviour! How can I switch thi...