Okay
  Public Ticket #1400371
pie chart change slice color
Closed

Comments

  • Janice started the conversation

    Hi Milan,


    I need to change the colors on my 3D Google piechart. How do i do this pls? Can you assist to modify the script below so that it changes the color of the slices? This below only chnages the background color. Thanks so much.

    [wpdatachart id=6]

    <script type="text/javascript">
    jQuery(window).load(function(){ 
        if( typeof wpDataChartsCallbacks == 'undefined' ){ wpDataChartsCallbacks = {}; } 
        wpDataChartsCallbacks[6] = function(obj){ 
            obj.options.backgroundColor = '#022169'; 
    });
    </script>

     

  •  472
    Isidora replied

    HI Janice,
    Thank you for your purchase.

    Please note that customization questions like this one are not covered in the included support for the plugin. Included support covers help with bugs and general inquiries for the plugin features, but not writing custom code. As you're developing some custom solution if you need our assistance we can offer you our paid customization service.

    You can read in Google chart API how to use this feature and then apply it on wpdatachart callback like you do for background. The colors to use for the chart elements. An array of strings, where each element is an HTML color string, for example: colors:['red','#004411'].

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables