@nikogu
@sahar922 when Pie in percent type, the color property will change the Circel color, but when Pie in default mode, you need use colors property, this will be a array.
we will replenish to the docs.
<Pie
hasLegend
subTitle="销售额"
colors={['#001122', '#003322', '#004422', '#005522', '#006622', '#007722', '#008822' ]}
total={() => (
<span
dangerouslySetInnerHTML={{
__html: yuan(salesPieData.reduce((pre, now) => now.y + pre, 0)),
}}
/>
)}
data={salesPieData}
valueFormat={val => <span dangerouslySetInnerHTML={{ __html: yuan(val) }} />}
height={248}
lineWidth={4}
/>
Most helpful comment
@sahar922 when Pie in
percenttype, thecolorproperty will change the Circel color, but when Pie indefaultmode, you need usecolorsproperty, this will be a array.we will replenish to the docs.