rl888

More than 1 dataset

Recommended Posts

In my paga.jsp i received 1, 2 or dataSets (diferent Strings).

So, depends how much dataSets i received i want to put 1, 2 or 3 dataSet in my chart.

Example:

 

"dataset": [
                {
                  "seriesname": "1|2|3|2",
                  "data": "1|10|20"

               },
                

              {
                  "seriesname": "11|12|13",
                  "data": "10|100|200"

               },

              ]

And i want to put in automatic, and to depends how much dataSets i received.

Its that posible?

Thanks

Edited by rl888
Mistake

Share this post


Link to post
Share on other sites

Hi,

 

FusionCharts render charts with the provided dataSource by the user in the FusionCharts constructor.

Now to include the dataset in the dataSource based on your fetched or received data, you need to generate the dataSource dynamically in the prescribed format accordingly, before providing it to the FusionCharts constructor.

If you want to change the chart data, check this documentation for reference : https://www.fusioncharts.com/dev/getting-started/plain-javascript/configure-your-chart-using-plain-javascript

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now