You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by prasad6779 <pr...@gmail.com> on 2011/07/08 10:33:21 UTC
How to pass dynamic values to barchart
hi all,
can any tell me hoe to pass dynamic values to bar chart,
thanks
prasad6779
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/How-to-pass-dynamic-values-to-barchart-tp3151202p3151202.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: How to pass dynamic values to barchart
Posted by Greg Brown <gk...@verizon.net>.
Currently, the examples are only available in BXML. However, if you read the BXML Primer you should have a good idea of how markup maps back to Java code:
http://pivot.apache.org/tutorials/bxml-primer.html
On Jul 11, 2011, at 1:25 AM, prasad6779 wrote:
> hi,
>
> thanks for replay,
> I need some example how to get barChart.getChartData().add()
> and how to set the data barChart.setChartdata()
>
>
> can u please provide an example code..........
>
> Thanks
> prasad6779
>
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/How-to-pass-dynamic-values-to-barchart-tp3151202p3158158.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: How to pass dynamic values to barchart
Posted by prasad6779 <pr...@gmail.com>.
hi,
thanks for replay,
I need some example how to get barChart.getChartData().add()
and how to set the data barChart.setChartdata()
can u please provide an example code..........
Thanks
prasad6779
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/How-to-pass-dynamic-values-to-barchart-tp3151202p3158158.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Re: How to pass dynamic values to barchart
Posted by Greg Brown <gk...@verizon.net>.
Charts use the same collections as other data-driven components in Pivot. In this example, markup is used to add three CategorySeries instances to the chart's data (an instance of List<?>):
http://code.google.com/a/apache-extras.org/p/pivot-jfree/source/browse/trunk/demos/src/biz/ixnay/pivot/demos/charts/jfree/bar_charts.bxml
You can do the same thing by calling barChart.getChartData().add() with your CategorySeries instances. You can also call barChart.setChartData() with your own List instance.
G
On Jul 8, 2011, at 4:33 AM, prasad6779 wrote:
> hi all,
>
> can any tell me hoe to pass dynamic values to bar chart,
>
> thanks
> prasad6779
>
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/How-to-pass-dynamic-values-to-barchart-tp3151202p3151202.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.