Type of Chart
-
- Posts: 16
- Joined: Wed Jun 17, 2009 5:00 pm
Type of Chart
Hello!
I have a problem with choosing the type of chart, that I need.
and it needs to create almost the same in JFreeChart (TickLabels can be sample).
Thank you very much for give me your opinion.
I have a problem with choosing the type of chart, that I need.
and it needs to create almost the same in JFreeChart (TickLabels can be sample).
Thank you very much for give me your opinion.
Last edited by Pellegrino on Thu Nov 12, 2009 11:38 am, edited 1 time in total.
Re: Type of Chart
Can't see image, needs uid/pw
-
- Posts: 16
- Joined: Wed Jun 17, 2009 5:00 pm
Re: Type of Chart
Excuse me, now you can access there...
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Type of Chart
I still see the login page.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 16
- Joined: Wed Jun 17, 2009 5:00 pm
Re: Type of Chart
You can do that with a CandleStick or a HighLowChart.
-
- Posts: 16
- Joined: Wed Jun 17, 2009 5:00 pm
Re: Type of Chart
1) for CandleStickChart:
1. Can I make the top and bottom line for every "candle" (see my picture for example...)? (it's necessary)
2. Is it possible to add the graphic of Constant (or horizontal line) ? and dotted line?
2) for HighLowChart:
1. (see 1.1)
2. It needs to have a small rectangle on every "stick"...
I saw YIntervalChart, but I cannot change the position of rectangle in center...
1. Can I make the top and bottom line for every "candle" (see my picture for example...)? (it's necessary)
2. Is it possible to add the graphic of Constant (or horizontal line) ? and dotted line?
2) for HighLowChart:
1. (see 1.1)
2. It needs to have a small rectangle on every "stick"...
I saw YIntervalChart, but I cannot change the position of rectangle in center...
Re: Type of Chart
You mean the high water and low water mark? Than yes you can.
-
- Posts: 16
- Joined: Wed Jun 17, 2009 5:00 pm
Re: Type of Chart
Evrika!!!!
Almost the same!!!
Almost the same!!!
Code: Select all
// CategoryAxis
CategoryAxis valueAxis1 = new CategoryAxis();
valueAxis1.setLabelFont(labelFont);
valueAxis1.setTickLabelFont(tickLabelFont);
// NumberAxis
ValueAxis valueAxis2 = new NumberAxis();
valueAxis2.setTickLabelsVisible(false);
MinMaxCategoryRenderer renderer = new MinMaxCategoryRenderer();
renderer.setMaxIcon(new ImageIcon("transparent.jpg"));
renderer.setMinIcon(new ImageIcon("transparent.jpg"));
renderer.setSeriesStroke(1, new BasicStroke (7.0F, BasicStroke.CAP_BUTT,
BasicStroke.JOIN_BEVEL));
renderer.setSeriesPaint(0, Color.black);
renderer.setSeriesPaint(1, Color.black);
renderer.setSeriesPaint(2, Color.black);
final CategoryPlot plot = new CategoryPlot(dataset, valueAxis1, valueAxis2, renderer);//chart.getCategoryPlot();