| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I think #5480 is trying to do too much in a single PR. It'd be much easier to review if we added the new border functionality and separated the gridline functionality as a plugin in separate PRs, so I'm okay moving forward with this PR separately. |
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm.
I might consider splitting _computeItemsToDraw into _computeGridLineItems and _computeLabelItems as it's getting pretty big and it looks like there's essentially no shared code between them. It'd also mean you wouldn't need the extra variable anymore
Sorry, something went wrong.
|
@benmccann I like that idea. It will give some performance improvement if either grid lines or labels are hidden. |
Sorry, something went wrong.
|
@nagix lgtm, but this PR will need to be rebased |
Sorry, something went wrong.
|
Rebased |
Sorry, something went wrong.
* Draw the rightmost grid line when offsetGridLines is true * Refactor based on feedback * Replace helpers.each with for loop * Minor refactoring * Refactor _computeItemsToDraw
| Back | FazBrowse Home | New Git URL |
With this PR, the rightmost grid line in bar charts, where offset and gridLines.offsetGridLines are true by default, will be drawn. It also fixes the following minor issue.
I'm aware of #5480 trying to solve this by a new plugin, but there have been many changes in the core scale code since it was opened, and a lot of effort would be needed to rebase it. This PR doesn't prevent to introduce a separate grid line plugin, but proposes a simpler approach to address the issue based on the latest code base.
Master: https://jsfiddle.net/nagix/9ak5L48q/

This PR: https://jsfiddle.net/nagix/dLv84ujs/

Fixes #3804