Transparent « Component « JFreeChart Q&A





3. Problem with setForegroundAlpha (transparency)    jfree.org

As denoted in the subject field I have a problem with the setForegroundAlpha method in conjunction with creating a multiple piechart. Here is a part of my code: chart = ChartFactory.createMultiplePieChart3D( this.title, (DefaultCategoryDataset)set, TableOrder.BY_ROW, true, // include legend true, false); chart.getPlot()).setForegroundAlpha(0.5f); The problem simply is that the last statement has no effect while it has using it in conjunction with a ...

4. Stacking two transparent charts on ChartPanels    jfree.org

MeterPlot plot = new MeterPlot(dataset); JFreeChart chart = new JFreeChart(name, JFreeChart.DEFAULT_TITLE_FONT, plot, false); chart.setBackgroundPaint(new Color(255, 255, 255, 0)); ChartPanel panel = new ChartPanel(chart, false); ...

5. Transparency (alpha) don't work    jfree.org

Hello, the function 'setForegroundAlpha()' don't work in my aplication. This is the code: private JFreeChart createChart(CategoryDataset dataset) { JFreeChart chart = ChartFactory.createAreaChart( "", "", "", dataset, PlotOrientation.VERTICAL, true, true, false ); chart.setBackgroundPaint(Color.white); CategoryPlot plot = (CategoryPlot) chart.getPlot(); plot.setForegroundAlpha(0.5f); plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0)); plot.setBackgroundPaint(Color.white); plot.setDomainGridlinesVisible(true); plot.setDomainGridlinePaint(Color.lightGray); plot.setRangeGridlinesVisible(true); plot.setRangeGridlinePaint(Color.lightGray); AreaRenderer renderer = (AreaRenderer) plot.getRenderer(); renderer.setEndType(AreaRendererEndType.TRUNCATE); CategoryAxis domainAxis = plot.getDomainAxis(); domainAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_45); domainAxis.setTickLabelFont(new Font("SansSerif", ...

6. Transparent Chart    jfree.org

Hi, I m using JFree Chart from a month, I hav created the combine chart which uses the same range Axis and same DomaonAxis. Those charts are BarChart and AreaChart. now i want to shaw border for AreaChart and that Area Chart shoud be more transparent and good. I m using setFourground(float ) method for doing that but not getting the ...

7. Transparency for XYBlockrenderered heatmaps?    jfree.org

by delrieu Sat Jun 07, 2008 10:08 pm Thanks Richard. It works very well. FYI, the code looks like: Code: Select all // obtains color from heat (z) value private Color getColor(double z) { ...

8. [solved] trouble with transparency of an IntervalMarker    jfree.org

JFreeChart chart = ChartFactory.createXYLineChart(...); XYPlot plot = chart.getXYPlot(); Marker target = new IntervalMarker(2.0,3.0); target.setPaint(Color.blue); target.setAlpha(0.5f); ...

9. transparency    jfree.org

Is the behaviour any better with JFreeChart 1.0.12? In any case, it is something that's not likely to get fixed (by me anyway). The 3D pie chart will be replaced at some point with something using a real 3D engine instead of the current mess of 2D calls simulating a 3D look.





10. Prevent a transparent jFreeChart from redrawing on click    jfree.org

Prevent a transparent jFreeChart from redrawing on click by Pookah Mon Jul 06, 2009 5:17 pm Hi all, Apologies for something which might be a beginners problem - preventing the jFreeChart's behavior of redrawing on any click. If the chart is transparent, multiple clicking decrease quality of the image because of the repeated anti-aliasing with the image from the buffer. ...

11. Transparent Chart Does Not Clear Correctly [Solved]    jfree.org

This issue turned out to be caused by a lack of thoroughness with opacity flags on a lengthy component hierarchy, not a problem in JFreeChart. Hi JFreeChart forum, I've been using JFreeCharts for a little over a year now and have been pretty happy with their performance. Just recently though, I ran into a problem when trying to use some plots ...