以下是一个有角度的应用程序,其中的图表由顶点图表组成
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: …Run Code Online (Sandbox Code Playgroud) 以下是具有重复属性的深度嵌套对象。
如何转换以下深度嵌套的对象
const obj = {
prop1: {
properties: { value: {} },
},
prop2: {
properties: { subProp: { properties: { value: {} } } },
},
prop3: {
properties: { subProp: { properties: { subSubProp: { properties: { value: {} } } } } },
},
};
Run Code Online (Sandbox Code Playgroud)
进入这个:
const obj = {
prop1: { value: {} },
prop2: { subProp: { value: {} } },
prop3: { subProp: { subSubProp: { value: {} } } },
};
//if …Run Code Online (Sandbox Code Playgroud)