如何在蚂蚁设计图表中的悬停柱上删除背景颜色?
我想删除蚂蚁图表的悬停列的背景。在这里找不到适当的属性 - https://charts.ants.ant.ant.ant.ant.ant.ant.ant.ant.and.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.and.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.ant.an时候/- en/示例/列/基本#基本
这是我的组件:
import { Column } from '@ant-design/plots';
const Chart = () => {
const data = [
{
"date": "6/21",
"volume": 9900
},
{
"date": "7/21",
"volume": 12100
},
{
"date": "8/21",
"volume": 12100
},
{
"date": "9/21",
"volume": 14800
},
{
"date": "10/21",
"volume": 18100
}
];
const config = {
data,
autoFit: true,
xField: 'date',
yField: 'volume',
columnStyle: {
fill: '#DBE7FD',
},
};
return (
<Column {...config} />
)
});
export { Chart }
我想删除悬停的背景,如下:
I want to remove the background on hover columns of ant charts. Could not find the appropriate property here- https://charts.ant.design/en/examples/column/basic#basic
here is my component:
import { Column } from '@ant-design/plots';
const Chart = () => {
const data = [
{
"date": "6/21",
"volume": 9900
},
{
"date": "7/21",
"volume": 12100
},
{
"date": "8/21",
"volume": 12100
},
{
"date": "9/21",
"volume": 14800
},
{
"date": "10/21",
"volume": 18100
}
];
const config = {
data,
autoFit: true,
xField: 'date',
yField: 'volume',
columnStyle: {
fill: '#DBE7FD',
},
};
return (
<Column {...config} />
)
});
export { Chart }
I want to remove the background on hover like below:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过设置图表的
交互来实现
这一
目标
: //codesandbox.io/s/dark-dew-6olxvi?fontsize=14&; hidenAvigation=1&theme=dark“ rel =“ nofollow noreferrer”>
You could achieve that by setting
interactions
of your chart like so:So your component will be:
Working sample: