apexcharts - 如何以角度删除图表的水平线及其轴线?
问题描述
以下是一个角度应用程序,其图表由顶点图表组成
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
}
},
},
}
有关更多详细信息,您可以使用此参考
推荐阅读
- regex - 正则表达式 - 压缩空格并删除名称中的点
- c# - 有没有办法在代码隐藏中设置容器的第 n 个孩子的样式?
- azure-web-app-service - 使用 ARM 模板添加插槽
- c++ - 管理每个对象的静态计数器变量
- automation - 使用 AppleScript 或 JAX 从 macOS Finder 复制 iPhone 文件
- bash - 需要使用 bash 脚本将存储在 2 个不同变量中的值导出到 csv 文件中的两个单独列
- c - 交叉编译 aws webrtc 库失败
- php - 数组默认值插入不正确的插入数据?
- javascript - 保持 `textarea` 高度为 `100%` 不起作用
- django - 如何将当前活动用户作为外键添加到 djangorestframework 中的创建帖子模型?