Sign in to follow this  
killerface

Issue with colour not showing up on line graph.

Recommended Posts

Hey,
 
I'm hoping someone will know what's causing this. After the fist set of data being plotted the rest only show up as a single line. (See attached pics)
 
Here is the JSON that is being used (as I'm assuming it probably is a setting in there). I have truncated some of the data to make it more readable. Let me know if you need any more info. (Note we are using JS versions of the charts.)
 
{
   "chart":{
      "palettecolors":"8DC63F, 00B5CC, 11175E, 9398CC, EEB111, E36F1E",
      "bordercolor":"F0F0F0",
      "exportenabled":"1",
      "xaxisname":"Seconds",
      "exportatclient":"0",
      "showValues":0,
      "html5exporthandler":"https://export.api3.fusioncharts.com/",
      "showlabels":1,
      "exporthandler":"fcExporter1",
      "bgcolor":"F0F0F0",
      "backgroundColor":"F0F0F0",
      "showborder":"0",
      "yaxisname":"Calls"
   },
   "categories":[
      {
         "category":[
            {
               "label":0
            },
            {
               "label":1
            },
            {
               "label":2
            },
            {
               "label":3
            },
            {
               "label":4
            },
            {
               "label":5
            },
            {
               "label":6
            },
            {
               "label":7
            },
            {
               "label":8
            },
            {
               "label":9
            }
         ]
      }
   ],
   "dataset":[
      {
         "seriesname":"VIP Promotion ",
         "alpha":60,
         "data":[
            {
               "value":211643.0
            },
            {
               "value":1540.0
            },
            {
               "value":1993.0
            },
            {
               "value":1314.0
            },
            {
               "value":2795.0
            },
            {
               "value":7122.0
            },
            {
               "value":11844.0
            },
            {
               "value":17918.0
            },
            {
               "value":22307.0
            }
         ]
      },
      {
         "seriesname":"TestCampaign ",
         "alpha":60,
         "data":[
            {
               "value":143735.0
            },
            {
               "value":1103.0
            },
            {
               "value":1532.0
            },
            {
               "value":1019.0
            },
            {
               "value":1814.0
            },
            {
               "value":4955.0
            },
            {
               "value":8401.0
            },
            {
               "value":12014.0
            },
            {
               "value":17895.0
            }
         ]
      }
   ]
}

 

 

post-57028-0-97426700-1385579661_thumb.png

post-57028-0-89757800-1385579662_thumb.png

Share this post


Link to post
Share on other sites
Guest Sumedh

Hello,

 

What FusionCharts version you have used?

 

Did you try using the latest version? FusionCharts XT v3.3.1 Service Release 3 is the latest version.

 

We have tested your JSON using this latest version and we are unable to replicate the same.

 

Please find attached screen-shot for your reference.

 

You can get the trial version from here:

http://www.fusioncharts.com/download/trials/

 

Hope this helps!

post-24802-0-20152200-1385642336_thumb.png

Share this post


Link to post
Share on other sites

Thanks for the reply.

 

We are currently using Version fusioncharts/3.3.1-sr2.19840. I'll see about possibly updating it, though this graph had been previously working with this version. I just can't seem to pinpoint what has changed between when it was and now. 
 

Is it possible for you to upload a screen-shot with the green VIP promotion section turned off? I didn't realize when I had truncated the data but the test campaign ends up being covered for the entire dataset.

 

Thanks.

Share this post


Link to post
Share on other sites

Thanks for the reply.

 

We are currently using Version fusioncharts/3.3.1-sr2.19840. I'll see about possibly updating it, though this graph had been previously working with this version. I just can't seem to pinpoint what has changed between when it was and now. 

 

Is it possible for you to upload a screen-shot with the green VIP promotion section turned off? I didn't realize when I had truncated the data but the test campaign ends up being covered for the entire dataset.

 

Thanks.

Hi,

 

Could you please try provide the Hex color codes in the respective <dataset> element instead of the "paletteColors" and see if this helps?

Ex: 

<dataset seriesname="TestCampaign " alpha="60" scolor="00B5CC">

There seems to be an issue with "paletteColors" attribute in the JavaScript chart and we would look into the same and confirm you.

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi,

 

Could you please try provide the Hex color codes in the respective <dataset> element instead of the "paletteColors" and see if this helps?

Ex: 

<dataset seriesname="TestCampaign " alpha="60" scolor="00B5CC">

There seems to be an issue with "paletteColors" attribute in the JavaScript chart and we would look into the same and confirm you.

 

Hope this helps. :)

Hi,

 

Thank you for your patience.

 

Please note that you would need to mention the color codes in the "paletteColors" attribute without any space in between to display the color in the order you want to.

Ex: 

{     "chart": {
    "palettecolors": "8DC63F,00B5CC,11175E,9398CC,EEB111,E36F1E",
     ....

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi,

 

Thank you for your patience.

 

Please note that you would need to mention the color codes in the "paletteColors" attribute without any space in between to display the color in the order you want to.

Ex: 

{     "chart": {
    "palettecolors": "8DC63F,00B5CC,11175E,9398CC,EEB111,E36F1E",
     ....

Hope this helps. :)

 

Hey, this was totally the problem.

Thanks a lot for the help!

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
Sign in to follow this