-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple-yaxis-scales, 3 series with 2 scales demo was broken by 3.47.0 #4331
Conversation
Multiple-yaxis-scales, 3 series with 2 scales demo was broken by 3.47.0 after the introduction of the new yaxis:seriesName as an array feature. Refactored some of that code. Miscellaneous: Remove yaxis.min: 0 from the bar axes in sample as not required.
This replaces the previous PR #4329 that was incorrectly based. |
Multiple-yaxis-scales, 3 series with 2 scales demo was broken by 3.47.0 after the introduction of the new yaxis:seriesName as an array feature. Refactored some of that code. Fixes relating to yaxis.seriesName array feature added to 3.47.0. Anything that indexes into minYArr[], maxYArr[], baseLineY[], xyRatios.yRatio[] that doesn't derive from realIndex needed to go through w.globals.seriesYAxisMap. Primarily affected y-axis annotations and possibly some other positioned features in multi-axis charts. Miscellaneous: Remove yaxis.min: 0 from the bar axes in sample as not required.
1961859
to
9361838
Compare
@junedchhipa Can you give me a clue re the baseLineY value that is used in translating into SVG grid coordinate space. I haven't been able to determine how that value is derived but it throws out the alignment of logarithmic plots and yet is ok for linear plots. At the moment I'm just substituting zero for log plots. Update: It's ok. I've got it, and have fixed the root problem. baseLineY is now adjusted for logarithmic yaxes. |
9361838
to
30f2b30
Compare
by 3.47.0 after the introduction of the new yaxis:seriesName as an array feature. Refactored some of that code. Fixes relating to yaxis.seriesName array feature added to 3.47.0. Anything that indexes into minYArr[], maxYArr[], baseLineY[], xyRatios.yRatio[], etc, that doesn't derive from realIndex needed to map the index through w.globals.seriesYAxisMap[seriesIndex]. Fix historical issue with goals and annotations being drawn when the axis is hidden or drawn outside the grid area when zoomed or panned, or where rect area annotation should be clipped. apexcharts#3073 apexcharts#3553 apexcharts#2757 Fix historical baseLineY not being scaled correctly for logarithmic yaxis. Miscellaneous: 1) Remove yaxis.min: 0 from the bar axes in sample as not required. 2) Fix sample syntax not parsed by e2e test harness. 3) Fix several calls to CoreUtils.getLogVal(b,d,seriesIndex) that were missing the 'b' (base) argument. 4) in getYLogValue(): return zero if 'd' <= 0 (was 'd' == 0). This may fix apexcharts#4241. 5) wrong point annotation x position in sparkline chart fix apexcharts#4081.
30f2b30
to
686266c
Compare
New Pull Request
Fixes relating to yaxis.seriesName array feature added at revision 3.47.0:
Fix historical issue with goals and annotations being drawn when the axis is hidden or outside the grid area when zoomed or panned, or where rectangular area annotation should be clipped.
Fix historical issue: baseLineY calculation not adjusted for logarithmic y axes.
Miscellaneous:
Fixes #2757
Fixes #3073
Fixes #3421
Fixes #3553
Fixes #4081
Fixes #4241 (maybe)
Fixes #4323
Type of change
Checklist: