Posted 5 March 2019, 8:05 pm EST
I am trying to set the palette of my pie chart to “cocoa” using this code
theChart.palette = wijmo.chart.Palettes[cocoa];
I was following an example at https://demos.wijmo.com/5/PureJS/LearnWijmo/LearnWijmo/#aszrs9ho
When I run the application I get an error in the console saying
Invoices:174 Uncaught ReferenceError: cocoa is not defined
at onload
Is ‘cocoa’ still a valid palette choice or do I have to create a custom palette?
Also, I have this code to add the chart;
var chart = new wijmo.chart.FlexPie(‘#theChart’, {
isAnimated: true,
selectionMode: wijmo.chart.SelectionMode.Point,
selectedItemPosition: wijmo.chart.Position.Auto,
selectedItemOffset: 0.3,
innerRadius: 0.5,
});
How can I set the palette color here?
Thanks, Ed
