Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
feature(Dashboard): Stick minimum to 0 on y axis
Browse files Browse the repository at this point in the history
  • Loading branch information
sim authored and hanjukim committed Sep 18, 2019
1 parent 8838873 commit f376ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/dashboard/ChartCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const ChartCard = ({ url, title, ...props }: Props) => {
const defaultOptions: ChartOptions = {
scales: {
xAxes: [{ time: { unit: 'day' } }],
yAxes: [{ ticks: { callback: formatTickY } }]
yAxes: [{ ticks: { min: 0, callback: formatTickY } }]
},
tooltips: {
callbacks: {
Expand Down

0 comments on commit f376ad2

Please sign in to comment.