Sign in to follow this  
MatsSoft

FC 3.7.0 - Pie 2D chart - "palette" setting does not work

Recommended Posts

Hi,

 

"palette" setting for 2D pie chart is documented here: http://docs.fusioncharts.com/tutorial-attr-pie2d.html

 

Even though it works perfectly on other chart types, it does not seem to have the desired effect on the 2D pie chart.

 

Changing this setting only changes the colors of labels, but not chart's slices.

 

Here's JSON data that I'm using:

{
    "chart": {
        "palette": "5"
    },
    "data": [
        {
            "label": "Elastic laces",
            "value": "42"
        },
        {
            "label": "Goggles",
            "value": "49"
        },
        {
            "label": "Number belt",
            "value": "87"
        },
        {
            "label": "Triathlon suit",
            "value": "88"
        },
        {
            "label": "Test",
            "value": "44"
        }
    ]
}

Share this post


Link to post
Share on other sites

Hi,

 

"palette" setting for 2D pie chart is documented here: http://docs.fusioncharts.com/tutorial-attr-pie2d.html

 

Even though it works perfectly on other chart types, it does not seem to have the desired effect on the 2D pie chart.

 

Changing this setting only changes the colors of labels, but not chart's slices.

 

Here's JSON data that I'm using:

{

    "chart": {

        "palette": "5"

    },

    "data": [

        {

            "label": "Elastic laces",

            "value": "42"

        },

        {

            "label": "Goggles",

            "value": "49"

        },

        {

            "label": "Number belt",

            "value": "87"

        },

        {

            "label": "Triathlon suit",

            "value": "88"

        },

        {

            "label": "Test",

            "value": "44"

        }

    ]

}

Hi,

 

Please note that the "palette" attribute allows to select a palette theme that applies to chart background, canvas, font and tool-tips, it does not change the colors of data items, i.e, pie slices.

 

Using `paletteColors` attribute, you can specify your custom list of hex colors for the data items. The list of colors have to be separated by comma e.g., `"paletteColors": "#FF0000, #0372AB, #FF5904..."` and this will be displayed on the slices.

 

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