function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Matt CowellMatt Cowell 

Apex code for chart color palette

I'm trying to update the chart colors in our company dashboard to match our brand palette.

So, in Sandbox, Developer Mode I've selected Visualforce Component and inserting the following code:

    <apex:chart><colorSet="#37241E,#94B3C8,#4D4E24,#BD8025,#816A4A,#F0E68C"/>
    </apex:chart>

But when I try to save I'm getting an error (problem!) message every single time.

What am I doing wrong??!!

Thanks
LakshmanLakshman
The colorset tag is followed as below-
 
<apex:pieSeries labelField="name" dataField="data1"            colorSet="#37241E,#94B3C8,#4D4E24,#BD8025,#816A4A,#F0E68C"/>

where labelField and dataField are binded to Apex controller.