Skip to content

Commit

Permalink
Add padding for y-axis by 20%
Browse files Browse the repository at this point in the history
When drawing the chart, if the minimum and maximum values of the y-axis
are the same as the actual minimum and maximum values, the transition of
the chart tends to be extreme. To avoid this, allow margins for the
minimum and maximum values on the y-axis.
  • Loading branch information
yykamei committed Apr 9, 2024
1 parent b8597ef commit e9f02fb
Show file tree
Hide file tree
Showing 5 changed files with 279 additions and 54 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ config:
xychart-beta
title "CI (.github/workflows/ci.yml for status=success)"
x-axis ["Mar 6", "Mar 9", "Mar 10", "Mar 11", "Mar 12", "Mar 13", "Mar 14", "Mar 15", "Mar 16", "Mar 17", "Mar 21", "Mar 23", "Mar 24", "Mar 28", "Mar 29", "Mar 30", "Apr 3"]
y-axis "Duration (average in seconds)"
bar [38, 39, 37, 42,41, 43, 37, 46, 38,41, 43, 38, 39, 54,41, 42, 69]
y-axis "Duration (average in seconds)" 29 --> 82
bar [38, 39, 37, 42,41, 43, 37, 46, 38,41, 43, 38, 39, 54, 41, 42, 69]
```

## Motivation
Expand Down
Loading

0 comments on commit e9f02fb

Please sign in to comment.