use renderer to set the color
renderer.setSeriesPaint(seriesIndex, Color.black);
plot.setRenderer(seriesIndex, renderer);
Search found 10 matches
- Mon Mar 19, 2012 8:09 am
- Forum: JFreeChart
- Topic: Set same color for different series
- Replies: 1
- Views: 3581
- Tue Jun 28, 2011 7:57 am
- Forum: JFreeChart - Stockmarket
- Topic: (Stock) How to create Parabolic SAR line use JFreeChart ?
- Replies: 1
- Views: 15088
Re: (Stock) How to create Parabolic SAR line use JFreeChart ?
You have to create a timeseries and change the renderer to XYDotRenderer.......
ChartRenderer = new XYDotRenderer();
((XYDotRenderer) ChartRenderer).setDotHeight(4);
((XYDotRenderer) ChartRenderer).setDotWidth(4);
ChartRenderer = new XYDotRenderer();
((XYDotRenderer) ChartRenderer).setDotHeight(4);
((XYDotRenderer) ChartRenderer).setDotWidth(4);
- Tue Apr 26, 2011 12:53 pm
- Forum: JFreeChart - Stockmarket
- Topic: candlestick and MondayThroughFridayTimeline
- Replies: 4
- Views: 21958
Re: candlestick and MondayThroughFridayTimeline
I also wanted to apply MondayThroughFridayTimeline in my project but when i use it hangs.
and if i remove it everything works fine.
Is there any solution to it?
and if i remove it everything works fine.
Is there any solution to it?
- Mon Apr 25, 2011 7:17 am
- Forum: JFreeChart
- Topic: how to put JFreeChart INSIDE a JFrame?
- Replies: 2
- Views: 11008
Re: how to put JFreeChart INSIDE a JFrame?
import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Collections; import java...
- Mon Apr 25, 2011 7:00 am
- Forum: JFreeChart - Stockmarket
- Topic: Combine Candlestick and Line Charts
- Replies: 6
- Views: 35696
Re: Combine Candlestick and Line Charts
The exception that usually comes is "timeseries cannot be converted to ohlcseries". to overcome this you have to set renderer for that series as XYLineAndShapeRenderer. XYDataset collec = createMADataset(); xyplot.setDataset(2, collec); xyplot.setRenderer(2, new XYLineAndShapeRenderer()); The above ...
- Fri Apr 22, 2011 10:48 am
- Forum: JFreeChart - Stockmarket
- Topic: how to draw...
- Replies: 4
- Views: 94118
Re: how to draw...
you can do one thing (If you can): make the chart window a dialog. and for EMA,SMA ,.... here is another example which will show you all the important points, which you will need ..... /** * Simple program showing : - * 1) candlestick chart with TimeSeries() * and dynamically add a time series * 2) ...
- Wed Apr 20, 2011 11:53 am
- Forum: JFreeChart - Stockmarket
- Topic: dynamic add plot,timeseries,change renderer,dynamic update
- Replies: 1
- Views: 21813
dynamic add plot,timeseries,change renderer,dynamic update
Simple program showing : - 1) candlestick chart with TimeSeries() and dynamically add a time series 2) Dynamic update 3) change the renderer of the series 4) dynamically add a new plot /** * Simple program showing : - * 1) candlestick chart with TimeSeries() * and dynamically add a time series * 2)...
- Tue Apr 19, 2011 3:04 pm
- Forum: JFreeChart - Stockmarket
- Topic: Combine Candlestick and Line Charts
- Replies: 6
- Views: 35696
Re: Combine Candlestick and Line Charts
the below example will show u to combine Candlestick and Line Charts in same chart and also to change the renderer of the series plus how you can update the timeseries [/b] import java.awt.BasicStroke; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; import java.awt.event....
- Tue Apr 19, 2011 1:02 pm
- Forum: JFreeChart - Stockmarket
- Topic: how to draw...
- Replies: 4
- Views: 94118
Re: how to draw...
1)window closing You must implement window listener and dispose it safely. 2)how do i add additional lines to the candlestick chart? eg. EMA, SMA, etc etc. can i add points (coordinates) on the candlestick chart? plot.setDataset(plot.getDatasetCount(), dataset);//dataset should be a timeseries plot...
- Tue Feb 15, 2011 12:41 pm
- Forum: JFreeChart
- Topic: JFreeChart in a SplitPane does not resize
- Replies: 2
- Views: 4797
Re: JFreeChart in a SplitPane does not resize
Hi,
I also have the same problem.
I have a splitpane with charts inside the jtabbedpane.
i don't want to scroll the chart, I want the chart to resize according to the splitpane.
Does any one know how to overcome this problem?
thanks
Maneesh
I also have the same problem.
I have a splitpane with charts inside the jtabbedpane.
i don't want to scroll the chart, I want the chart to resize according to the splitpane.
Does any one know how to overcome this problem?
thanks
Maneesh