New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugfix/20166-columns-gridLines-and-pointPlacement #20414
bugfix/20166-columns-gridLines-and-pointPlacement #20414
Conversation
File size comparisonSizes for compiled+gzipped (bold) and compiled files.
|
Visual test results - Differences foundFound 1 diffing sample(s). Please review the differences. |
Good news: It works here with Firefox ESR (v115). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far. This fixes the second issue example.
Things that should be improved:
- broaden the scope of the fix
- a visual test is needed, this properly can be part of an existing sample
ts/Core/Axis/Axis.ts
Outdated
if ( | ||
!axis.series.find( // #20166 | ||
(series): string | number | false | undefined => ( | ||
series.is('column') && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should fix this for all cartesian series types. Instead of series.is(...
check series.xAxis
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
It now checks for series.xAxis
and unit-test has been altered to check for this as well.
Might not have come out clearly in the issue but this is the only example which I was able to replicate both in jsfiddle as well as utils.
I have however uncovered a similar issue for the bar series, but it does seem to arise from the same conditions (tick[-1]
being rendered for cartesian series using pointPlacement
)
Should I create a seperate issue for the bar series bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bar series is cartesian, but it has inverted axis. This needs taken into account and is probably related.
See https://api.highcharts.com/highcharts/chart.inverted
Instead of looking for series with the For the grid line, we have a For the tick mark we don't seem to have that kind of overflow protection, but we should probably have something similar. Anything that is not between |
When running |
Yeah you are right, I think gulp "got stale" or something and did not actually track my changes, allowing a failing commit. |
The work will be continued in this PR: #20467 Due to many |
Fixed #20166, columns with
pointPlacement
had a superfluous tick to the left of the chart, visible withgridLineWidth
.Note: Firefox headless broke at me so this was committed with
--no-verify
so I could review github-side checks 馃槵This could be a messy addition to otherwise clean code but I am unsure if i should:
axis.render
function which checks for column series withpointPlacement