gpt4 book ai didi

apexcharts - 如何以角度删除图表的水平线及其轴线?

转载 作者:行者123 更新时间:2023-12-04 12:58:35 27 4
gpt4 key购买 nike

以下是一个带有由顶点图表组成的图表的角度应用程序
https://codesandbox.io/s/apx-column-distributed-d3ns7?from-embed
如何删除该图表的水平线及其轴线(这样看起来更干净)

    this.chartOptions = {
series: [
{
name: "distibuted",
data: [21, 22,]
}
],
chart: {
height: 350,
type: "bar",
events: {
click: function(chart, w, e) {
// console.log(chart, w, e)
}
}
},
colors: [
"#008FFB",
"#00E396",
],
plotOptions: {
bar: {
columnWidth: "45%",
distributed: true
}
},
dataLabels: {
enabled: false
},
legend: {
show: false
},
xaxis: {
categories: [
["John", "Doe"],
["Joe", "Smith"],
],
labels: {
style: {
colors: [
"#008FFB",
"#00E396",
],
fontSize: "12px"
}
}
}
};
以及如何格式化工具提示颜色?

最佳答案

现在你可以使用这个选项

chartOptions: {
chart: {
id: "basic-bar",
},
grid: {
show: true, // you can either change hear to disable all grids
xaxis: {
lines: {
show: true //or just here to disable only x axis grids
}
},
yaxis: {
lines: {
show: true //or just here to disable only y axis
}
},
},
}
有关更多详细信息,您可以使用 this reference

关于apexcharts - 如何以角度删除图表的水平线及其轴线?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62590738/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com