How to change legend color in pie chart
Summary
How to change legend color in pie chartContent
Hi,
I have a requirement where I need show the salary of an emp in a specific color in pie chart. If its Linda it should be green and like wise. I am able to achieve this in pie chart. But not able to show same color in legends. Legends are picking up their own color which is not same as color in pie chart
Version
Version: 21.04.0Code Snippet
<oj-chart type="pie" class="oj-sm-flex-initial oj-flex-item oj-sm-12 oj-md-6" style="max-width:100%;" data="[[$page.variables.employeeListSDP2]]" legend.title="Name" legend.rendered="on" > <template slot="itemTemplate"> <oj-chart-item value="[[ $current.data.salary ]]" series-id="[[ $current.data.name ]]" group-id="[[['name']]]" color="[[ $current.data.name === 'Linda Jones' ? 'green' : $current.data.name === 'James
0