gradient « BarChart « JFreeChart Q&A

Home
JFreeChart Q&A
1.Axis
2.BarChart
3.Chart
4.Color
5.Component
6.Dataset
7.Development
8.GanttChart
9.Graph
10.Image
11.Interoperability
12.Label
13.Layout
14.Legend
15.LineChart
16.PieChart
17.Plot
18.Renderer
19.Series
20.ToolTip
21.XYLineChart
JFreeChart Q&A » BarChart » gradient 

1. JFreeChart BarChart -> NO gradient    stackoverflow.com

my bar chart is always drawn with a gradient color by default. I just want a simple color without any styled effects. Can anyone help ? Code:

   final JFreeChart chart = ...

2. How to use a gradient color in a bar chart?    jfree.org

GradientPaint gp0 = new GradientPaint( 50.0f, 0.0f, Color.RED, 500.0f, 0.0f, Color.GREEN,false ); ganttRenderer.setSeriesPaint(0, gp0);

3. How to remove gradient from bars?    jfree.org

Hi, I have searched the API and forum but cannot find the function to remove the gradient from a bar renderer. I have tried to set the paint, the fillpaint, the gradient transformer (to null), but the gradient remains. All I want is a single color bar, with see-through effect (using series paint with alpha in the color), without the reflection ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.