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.
You 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.com/docs/options/stroke/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With