Echarts pie chart has a total of 11 colors, resulting in overlap.

as shown in the figure below, when 12 parameters are set in echarts, the colors begin to overlap. After research, it is found that echarts has 11 colors by default, and when the 12th starts, it will recycle from the first color (red).
Development: dynamic data interface, so the color configuration option has been dropped by pass
clipboard.png

Mar.20,2021

solution: modify the value in the config configuration item data colors in the u-charts.js file. The default is 6, and you can add several more.

Menu