admin管理员组文章数量:1305272
I am using Apex charts in the angular project, I have implemented a time series chart there I am not able to decrease the "thickness of a line" in the line chart.
here is my config.
public initChartData(): void {
this.series = this.response_data['data']
this.chart = {
type: "area",
stacked: true,
height: 350,
zoom: {
type: "x",
enabled: true,
autoScaleYaxis: false
},
toolbar: {
autoSelected: "zoom",
show: true,
tools: {
zoomin: false,
zoomout: false,
}
},
},
this.dataLabels = {
enabled: false
};
this.markers = {
size: 0
};
this.stroke ={
width: 1,
curve: 'smooth',
},
this.fill = {
type: "gradient",
gradient: {
shadeIntensity: 1,
opacityFrom: 0.7,
opacityTo: 0.9,
stops: [0, 90, 100]
},
pattern: {
strokeWidth: 0.5
}
};
this.yaxis = {
labels: {
formatter: function(val) {
return (val / 1).toFixed(0);
}
}
};
this.xaxis = {
type: "datetime"
};
this.tooltip = {
shared: false,
y: {
formatter: function(val) {
return (val / 1).toFixed(0);
}
}
};
}
can anyone help me with this code, I have tried other ways also but it didn't worked.
I am using Apex charts in the angular project, I have implemented a time series chart there I am not able to decrease the "thickness of a line" in the line chart.
here is my config.
public initChartData(): void {
this.series = this.response_data['data']
this.chart = {
type: "area",
stacked: true,
height: 350,
zoom: {
type: "x",
enabled: true,
autoScaleYaxis: false
},
toolbar: {
autoSelected: "zoom",
show: true,
tools: {
zoomin: false,
zoomout: false,
}
},
},
this.dataLabels = {
enabled: false
};
this.markers = {
size: 0
};
this.stroke ={
width: 1,
curve: 'smooth',
},
this.fill = {
type: "gradient",
gradient: {
shadeIntensity: 1,
opacityFrom: 0.7,
opacityTo: 0.9,
stops: [0, 90, 100]
},
pattern: {
strokeWidth: 0.5
}
};
this.yaxis = {
labels: {
formatter: function(val) {
return (val / 1).toFixed(0);
}
}
};
this.xaxis = {
type: "datetime"
};
this.tooltip = {
shared: false,
y: {
formatter: function(val) {
return (val / 1).toFixed(0);
}
}
};
}
can anyone help me with this code, I have tried other ways also but it didn't worked.
Share Improve this question asked Jan 21, 2021 at 12:18 baba vossbaba voss 531 gold badge1 silver badge5 bronze badges1 Answer
Reset to default 6You need to change the stroke of the line to make it more thicker or thinner.
Try changing the stroke object's width to see a variation in the same.
this.stroke ={ width: 0.5, // to make it half of the present or default thickness. curve: 'smooth', }
Refer the link for further info: https://apexcharts./docs/options/stroke/
本文标签: javascripthow to decrease line thickness of a line chart in apex chartsStack Overflow
版权声明:本文标题:javascript - how to decrease line thickness of a line chart in apex charts - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741797810a2398041.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论