react-apexcharts icon indicating copy to clipboard operation
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.

Open choichangseo opened this issue 1 year ago β€’ 1 comments

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>
  );
}
스크란샷 2024-01-31 11 13 40

choichangseo avatar Jan 31 '24 02:01 choichangseo