react-apexcharts
react-apexcharts copied to clipboard
When using rangeArea, the line and rangeArea properties are not applied to the series. Even if you add the stroke property, the rangeArea covers the line.
When using rangeArea, the line and rangeArea properties are not applied to the series. Even if you add the stroke property, the rangeArea covers the line.
export default function ClusterChart() {
const options = {
chart: {
height: 350,
},
};
const series2 = [
{
name: "Cluster 2 Medium",
type: "line",
data: [
{ x: 6, y: 9 },
{ x: 7, y: 1 },
{ x: 8, y: 4 },
],
stroke: {
curve: "smooth", // λλ λ€λ₯Έ μ΅μ
colors: ["#FF4560"], // μνλ μμμΌλ‘ μ€μ
},
},
{
name: "Cluster 2",
type: "rangeArea",
data: [
{ x: 6, y: [8, 10] },
{ x: 7, y: [0, 2] },
{ x: 8, y: [2, 6] },
],
fill: {
opacity: 0.1, // ν¬λͺ
λ μ‘°μ
},
stroke: {
curve: "smooth", // λλ λ€λ₯Έ μ΅μ
colors: ["#FF4560"], // μνλ μμμΌλ‘ μ€μ
},
},
];
return (
<div>
<ApexChart
height={500}
options={options}
series={series2}
type="rangeArea"
/>
</div>
);
}