-
Notifications
You must be signed in to change notification settings - Fork 117
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
Upgrade causes error when using multiple addSeriesAsDrilldown() #383
Comments
See the Highcharts definition: ` |
Hi @pthomasjoby! |
@karolkolodziej I have tried to create the stackblitz based on my component with the stack that you had created for me (https://stackblitz.com/edit/highcharts-angular-line-u8rfrs): It worked like a charm in the following version: |
I simplified your demo and it turned out that you are not using |
HighChartBug3.mov |
@karolkolodziej Thank you for refactoring the code. I have updated the dataset to add one more sub series to the top series "54000 INTERDEPARTMENTAL". They are "54051 User Credits" and "54051 User Credits1". So, when you click on the top series "54000 INTERDEPARTMENTAL" the chart should drilldown to another stacked column with two series "54051 User Credits" and "54051 User Credits1". However the second series is failed to add. See the attached video and the code - https://stackblitz.com/edit/highcharts-angular-line-4m6yxp |
@karolkolodziej This functionality worked like a charm in the following version:
|
@pthomasjoby I checked that with 6.2.0 and it works the same. Also there is a lot of custom code and it's difficult for me to go through it. |
@karolkolodziej I have recreated the issue based on your template: |
Your data isn't declared properly, there should be only one series for each category (animals and fruits) and the drilldowns = {
Animals: {
name: 'Animals',
data: [
['Cows', 2],
['Sheep', 3]
]
},
Fruits: {
name: 'Fruits',
data: [
['Apples', 5],
['Oranges', 7],
]
},
}, |
@karolkolodziej well, my need is to have multiple series in each category. Having the ability to call multiple times "addSeriesAsDrilldown()" enabled this functionality in version (Angular 13, highcharts: "^6.2.0", highcharts-angular: "^2.10.0"). When upgraded the ability to add multiple series was blocked thus causing this regression (functionally). I dont know what goes into the code, but I lost a key functionality with this upgrade (Angular 16 "highcharts": "^9.3.3", "highcharts-angular": "^3.1.2") |
@karolkolodziej I am using this for timeseries chart (y-axis is time) with drilldown (Category [multiple] >> Types [multiple]). The application is broken after the upgrade. |
I'm not sure if I follow your use case. Could you please create a working demo with the version of Highcharts that works? |
@karolkolodziej can you please advise, how can I use previous versions in jfiddle? DOES NOT WORK WORKS: If possible, please scaffold a a jfidddle project for me with the version there this functionality works? Please see attached the screenshot of Jfiddle Thanks, Joby |
Here is v9: https://jsfiddle.net/BlackLabel/yw36t097/ But as far as I see it behaves the same in both examples. But I didn't adjust the demo |
@karolkolodziej I tried with 6.2.2 vs 9.3.3 and adding multiple series does not work in either versions. However, I noticed that in a loop in the drilldown callback, only the first record is printed whereas the second and on the records are not printed when the call Separately, I am wondering if the wrapper angular component "highcharts-angular" is making a difference. In the working version, I have Is it possible to create jsfiddle with the above versions of "highcharts-angular" to figure it out? |
@karolkolodziej found a workaround (not neat, but works). Instead of calling Working prototype is avaialble here - https://jsfiddle.net/jobythomas/Lwam849t/132/ |
Describe the bug
As part of the Angular tech stack upgrade, due to dependency to Ivy, I was forced to upgrade the Highcharts and Highcharts-Angular as follows:
highcharts: 6.2.0 >> 9.3.3
highcharts-angular: 2.10.0 >> 3.1.2
This resulted in a bug which does not allow calling addSeriesAsDrilldown() multiple times in a look. It worked in the previous version.
Expected behavior
Expected the drill down continue to work with multiple series.
Demo
Please provide live demo of the problem or provide any other way to recreate the problem.
Steps required to recreate the problem in the demo:
Setup used
etc.
The text was updated successfully, but these errors were encountered: