Skip to content

fixed the issue of bar height and labels when all data are 0#58

Merged
olegberman merged 1 commit into
chart-kit:masterfrom
daniel0128:master
Nov 1, 2018
Merged

fixed the issue of bar height and labels when all data are 0#58
olegberman merged 1 commit into
chart-kit:masterfrom
daniel0128:master

Conversation

@daniel0128

Copy link
Copy Markdown
Contributor

move calcScaler = data => (Math.max(...data) - Math.min(...data)) || 1 to abstract-chart.js so that it can be used by more components

using calcScaler to prevent 0

@olegberman olegberman merged commit 4dae63e into chart-kit:master Nov 1, 2018
@Hermanya

Hermanya commented Nov 2, 2018

Copy link
Copy Markdown
Contributor

Congrats on the merge, good job 👍

@olegberman

Copy link
Copy Markdown
Member

Thank you @daniel0128 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants