Fix bar width calculation #7

Merged
rozetko merged 3 commits from fix-bar-width-calculation into main 3 months ago
rozetko commented 3 months ago
Owner

This PR fixes an issue that bars are not rendered with an updated version of @chartwerk/core (0.6.26)

Issue reason: we've been using timeInterval option to calculate bar width but there is no such option since @chartwerk/core@0.6.24

Changes:

  • update @chartwerk/core
  • calculate timeInterval using first x-axis value, last x-axis value and values count

Before:

image

After:

image

This PR fixes an issue that bars are not rendered with an updated version of `@chartwerk/core` (0.6.26) Issue reason: we've been using `timeInterval` option to calculate bar width but there is no such option since `@chartwerk/core@0.6.24` ### Changes: - update `@chartwerk/core` - calculate `timeInterval` using first x-axis value, last x-axis value and values count ### Before: ![image](/attachments/468a7362-3f6f-4006-bd59-2b7dab0cbee5) ### After: ![image](/attachments/51206140-9ece-49a3-9649-38ceec8c06cc)
7.5 KiB
7.3 KiB
rozetko added 2 commits 3 months ago
rozetko added 1 commit 3 months ago
rozetko merged commit 3b837a94a5 into main 3 months ago
rozetko deleted branch fix-bar-width-calculation 3 months ago
The pull request has been merged as 3b837a94a5.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.