Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #574

Open
choichangseo opened this issue Jan 31, 2024 · 0 comments

Comments

@choichangseo
Copy link

choichangseo commented Jan 31, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant