Closed xsvato01 closed 6 months ago
scale: {
color: {
range: ['red', 'blue']
}
}
OR
style: { fill: callback }
Sweet, thank you! Can I ask where did you find this? I do not see it at https://ant-design-charts.antgroup.com/en/options/plots/scale/
I am using the funnel chart and same issue I am not able to change the color
Here is my config code and I am using latest version of this library @ant-design/plots
data: data,
xField: "stage",
yField: "number",
height: 325,
isTransposed: false,
colorField: "stage",
color: ["#3b82f6", "#8b5cf6", "#FFBF00", "#8F00FF", "#50C878", "#FFC0CB"],
can anyone help me resolving this issue ?
@lxfu1
Hi, I am unable to simply change the default colors for Pie chart:
From what I found, the color could be set as an array or as a callback. None of those options work for me.. https://antv-g2plot-v1.gitee.io/zh/examples/pie/basic/API#%E5%9B%BE%E5%BD%A2%E6%A0%B7%E5%BC%8F
I am also getting many parsing errors like: