Is there sample source code to build Price and volume chart? I have found some but all are related to old version of Jfreechart.
Thank you in advance.
Price and volume chart demo
This was written for version 1.0.10
http://www.jfree.org/phpBB2/viewtopic.php?t=23534
What version are you using?
http://www.jfree.org/phpBB2/viewtopic.php?t=23534
What version are you using?
The answer does not come from thinking outside the box, rather the answer comes from realizing the truth; There is no Box. my js site
Hi,
I would like to ask two questions:
1) is there some way how to draw two chart into one plot? One chart will be bars (volume) and second will be line (price). In mentioned example there are two charts but painted in two plots.
2) What renderer is suitable for drawing line chart? I tried XYLineAndShapeRenderer but the line seems to be too wide.
Thanks.
I would like to ask two questions:
1) is there some way how to draw two chart into one plot? One chart will be bars (volume) and second will be line (price). In mentioned example there are two charts but painted in two plots.
2) What renderer is suitable for drawing line chart? I tried XYLineAndShapeRenderer but the line seems to be too wide.
Thanks.
What you want is a combined line and bar chart. Search the forum for "line AND bar"
XYLineAndShapeRenderer is the renderer for drawing lines. You should be able to set the series stroke (which defines the width). Check the JavaDoc.
XYLineAndShapeRenderer is the renderer for drawing lines. You should be able to set the series stroke (which defines the width). Check the JavaDoc.
The answer does not come from thinking outside the box, rather the answer comes from realizing the truth; There is no Box. my js site