Skip to content

Commit

Permalink
feat: 레벨 증가 그래프 disable zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
yoopark committed Nov 24, 2023
1 parent 7438a6c commit ff37b2a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/src/Calculator/dashboard-contents/LevelRecords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ const LevelCalculatorChart = ({ series }: LevelCalculatorChartProps) => {
const subjectLength = series[0].data.length;

const options: ApexCharts.ApexOptions = {
chart: {
toolbar: {
show: false,
tools: {
zoom: false,
},
},
},
xaxis: {
overwriteCategories: series[0].data.map((item) => {
if (subjectLength > MAX_XAXIS_COUNT) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ const LevelRecordsChart = ({ series }: LevelRecordsChartProps) => {
};

const options: ApexCharts.ApexOptions = {
chart: {
toolbar: {
show: false,
tools: {
zoom: false,
},
},
},
colors: [
theme.colors.chart.primary.default,
theme.colors.mono.gray500,
Expand Down
8 changes: 8 additions & 0 deletions app/src/Profile/dashboard-contents/Versus/LevelRecords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ const LevelRecordsChart = ({ series }: LevelRecordsChartProps) => {
};

const options: ApexCharts.ApexOptions = {
chart: {
toolbar: {
show: false,
tools: {
zoom: false,
},
},
},
colors: [
theme.colors.chart.primary.default,
theme.colors.chart.accent.default,
Expand Down

0 comments on commit ff37b2a

Please sign in to comment.