有人可以帮我,我需要省/市的fillPattern在我从世界到每个国家的drillDown之后,然后图像将显示在省/市的国家
我想要的例子:在这里输入图像描述
实例:https://codesandbox.io/s/highcharts-react-demo-forked-1f04sp?file=/demo.jsx
发布于 2022-03-03 16:24:42
我为美国准备了一个演示,在那里你可以看到如何应用填充模式的钻孔系列。
events: {
drilldown(e) {
const chart = this;
chart.addSeriesAsDrilldown(e.point, {
data: data,
name: 'USA',
dataLabels: {
enabled: true,
format: '{point.properties.postal-code}'
},
color: {
pattern: {
aspectRatio: 3 / 2
}
},
});
// this part is a workaround for the bug
chart.setSize(void 0, void 0, false);
setTimeout(()=>{
// try set size in here to keep the initial animation and change the fill
// after the set timeout time
}, 500);
}
}https://stackoverflow.com/questions/71332130
复制相似问题