Skip to content

Commit

Permalink
Merge pull request #31 from Kusitms-28th-Kobaco-B/fix/#27
Browse files Browse the repository at this point in the history
[fix] RadialChart 오류 해결
  • Loading branch information
uiop5809 authored Mar 8, 2024
2 parents 64e6bfb + f603702 commit 502543f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/trend/RadialChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import Chart from "react-apexcharts";
import styled from "styled-components";

const RadialChart = () => {
const [series, setSeries] = useState([56, 44]);
const [series, setSeries] = useState<number[]>([56, 44]);

const options = {
colors: [colors.main, colors.secondary],
labels: [` 여성 ${series[0]}%`, ` 남성 ${series[1]}%`],
legend: {
show: true,
position: "left",
position: "left" as "left",
floating: true,
fontSize: 14,
fontSize: "14px",
fontFamily: "Noto Sans KR",
fontWeight: 400,
labels: {
Expand Down Expand Up @@ -70,7 +70,7 @@ const RadialChart = () => {
// },
// },
stroke: {
lineCap: "round",
lineCap: "round" as "round",
},
};

Expand Down

0 comments on commit 502543f

Please sign in to comment.