This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate chart options from ChartPage component
- Loading branch information
1 parent
a7486ec
commit b69b5ed
Showing
3 changed files
with
59 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
const ChartOptions = { | ||
responsive: true, | ||
maintainAspectRatio: false, | ||
legend:{ | ||
position: 'top', | ||
labels:{ | ||
fontColor: "white", | ||
} | ||
}, | ||
tooltips: { | ||
mode: 'index', | ||
intersect: false, | ||
}, | ||
hover: { | ||
mode: 'nearest', | ||
intersect: true | ||
}, | ||
scales: { | ||
xAxes: [{ | ||
display: true, | ||
scaleLabel: { | ||
// display: true, | ||
// labelString: 'Tanggal update', | ||
}, | ||
ticks: { | ||
fontSize: 10, | ||
autoSkip: true, | ||
maxTicksLimit: 10 | ||
}, | ||
gridLines: { | ||
display: false, | ||
color: '#182025' | ||
} | ||
}], | ||
yAxes: [{ | ||
ticks: { | ||
fontSize: 10, | ||
autoSkip: true, | ||
maxTicksLimit: 7 | ||
}, | ||
gridLines: { | ||
display: true, | ||
color: '#182025', | ||
height: 200 | ||
} | ||
}] | ||
}, | ||
elements: { | ||
point:{ | ||
radius: 0 | ||
} | ||
} | ||
} | ||
|
||
export default ChartOptions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -475,6 +475,5 @@ p > a:hover { | |
} | ||
|
||
canvas { | ||
/* width:1000px !important; */ | ||
height:225px !important; | ||
height:210px !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters