sycshk

Anyway to merge categories and dataset in MariMekko Chart?

Recommended Posts

Due to a system limitation, I can only produce "dataset":[{"label":"Desktop","seriesname":"A","value":"335000"}] instead of the below in the documentation. Anyway to configure it so that it will take the figures similar to my ideal case? Can someone suggest a workaround for me? I'm new to FusionCharts. Thanks in advance.

 

"categories":[{
      "category":[{
          "label":"Desktop"
        },
        {
          "label":"Laptop"
        },
        {
          "label":"Notebook"
        }
      ]
    }
  ],
  "dataset":[{
      "seriesname":"A",
      "data":[{
          "value":"335000"
        },
        {
          "value":"225100"
        },
        {
          "value":"164200"
        }
      ]
    },
    {
      "seriesname":"B",
      "data":[{
          "value":"245000"
        },
        {
          "value":"198000"
        },
        {
          "value":"120000"
        }
      ]
    },
    {
      "seriesname":"C",
      "data":[{
          "value":"298000"
        },
        {
          "value":"109300"
        },
        {
          "value":"153600"
        }

Share this post


Link to post
Share on other sites

Hi,

 

Do you want to show just one category and one series on the Marimekko chart? If yes, then you may use it in the following way:

 

Eg.
 
  "categories": [
    {
      "category": [
        {
          "label": "Desktop"
        }
      ]
    }
  ],
  "dataset": [
    {
      "seriesname": "A",
      "data": [
        {
          "value": "335000"
        }
      ]
    }
  ]
}
 
Hope this helps.

Share this post


Link to post
Share on other sites

Hi Haritha,

 

No actually. I need multiple categories and multiple series. But somehow I need it in 1 single line of string/data. So it goes {"label":"Desktop","seriesname":"A","value":"335000"},{"label":"Notebook","seriesname":"B","value":"5000"} etc...

 

Instead of having categories and dataset split up.

 

 

Hi,

 

Do you want to show just one category and one series on the Marimekko chart? If yes, then you may use it in the following way:

 

Eg.
 
  "categories": [
    {
      "category": [
        {
          "label": "Desktop"
        }
      ]
    }
  ],
  "dataset": [
    {
      "seriesname": "A",
      "data": [
        {
          "value": "335000"
        }
      ]
    }
  ]
}
 
Hope this helps.

 

Share this post


Link to post
Share on other sites

Anyway to change the source code to do this?

 

Hi,

 

It is not possible to obtain the JSON data in the desired format, as of now.

 

Hope this helps.

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