import Plotly from "plotly.js";
import createPlotlyComponent from "react-plotly.js/factory";
export const Plot = createPlotlyComponent(Plotly);
export function PieChart() {
return <Plot data={data} layout={layout} config={{ displaylogo: false }} useResizeHandler={true} style={{ width: '100%' }} />;
}
我想更改 Piechart 切片的颜色,我参考了 plotly 的文档并添加了
marker: {
color: 'rgba(255,153,51,0.6)',
width: 1
}
也是,但它不工作