Hi, ECharts uses a default palette that contains 9 colors [1]. If the data
count is not certain, you may try to use the `itemStyle.color` callback
function [2] to determine the color of each pie piece in the way you prefer.

[1] https://echarts.apache.org/option.html#color
[2] https://echarts.apache.org/option.html#series-pie.itemStyle.color

On Sun, Mar 10, 2024 at 3:03 AM Tanmay H Pappu Leo Taurus <
tanmay.hpa...@gmail.com> wrote:

> Hello, I am having problem from a limitation on chart. There is same
> colore repeating problem at pie chart, my client complaint about that.
>
> In pie chart series data is coming via Ajax, and I don't know how many
> data is coming, so I can't implement colore for it, I am depending on auto
> color. It seems echart have limited colour range , it should be auto color
> for long range data. As like google chart have that features.
> So can you help me what I should do?
>
> Here is the problem example.
>
>
>
>
>
>
> https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWsA2BTA5l6AJgFzJrqzABOE-YJARAG5aWQDGAhhvQDRnrYAZnVj0hYXv1gEOYDiQDa9AIIgQ2XqIDilDiCwBnTfQAKEaFj3rDxgPK7oeIz1EAhDtA8cjAXTIBfPnQDFhoDRVRyWDAAT30GEBpJKJk5CKl0Ri4AVywSAGZ8gFYgqNhPAFs80VVreilA0jLYLIxcgoBGAAZSqMrq-h09GwaXSLLW9tgAJnyAFl7yfoZGRnqoxvGoyeqO4sX0ZdFV9fJNjJac3aK5gA4D8o4qhjZT9ECpLfIdkgB2X4eR3oAA9gW9YOdmj9YPkOoCngMTqMmhMriRpgsLkDBIJwZDUW1rvDnqI2K9kV9MmjYDd7liEQwDEYGn53n5_EA&_source=echarts-doc-preview
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
> For additional commands, e-mail: dev-h...@echarts.apache.org

Reply via email to