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.



"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?


Edited by rl888

Share this post

Link to post
Share on other sites



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




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