-
Notifications
You must be signed in to change notification settings - Fork 263
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
annotations not working with node export server #591
Comments
Same here. When i use the HighCharts default server, there are annotations but when I use my own export server they are missing. |
Thanks for reporting @hassanhammady! I have added it to our backlog. Internal note: works as expected through exporting.js client-side export (SVG): https://jsfiddle.net/BlackLabel/c7dux9mp/ |
My pleasure @jszuminski and Thank you too for your response and the example you shared. I agree with you, solution works as expected when adding SVG code manually. However, this approach doesn’t support dynamically adding SVG code. In my case, I am sending my chart options as JSON through HTTP. I checked the code in your repository under samples/http/request_svg.json and found that the SVG is hardcoded. Since I need something dynamic, I decided to use the JSON example in samples/http/request_infile.json. However, if you add annotations to this JSON file, then it thought http , the chart is exported without the annotations. So, annotations are not visible in the exported image when using JSON for dynamic chart options. |
I've investigated the problem @hassanhammady and the good news is that there's a quick fix for it. The If you set up your own Export Server, you can simply add the node-export-server/lib/schemas/config.js Lines 16 to 27 in d61b462
I've checked it locally and it works when |
Are you sure that you have modified the config and that the |
Sorry you are right - I edited the wrong config. For others: the config.js is found here: Now the annotations are exported correctly. |
Great, good to hear, thanks! |
Hi @jszuminski , |
"I am using the Highcharts Node Export Server, and my chart contains annotations. However, when I export the chart using the Node module or the Highcharts server arguments , the exported image does not include any annotations.
I need a solution to fix this issue, please."
Expected behaviour
Chart image with annotations
Actual behaviour
Chart image without annotations
![options_phantom]
(https://github.com/user-attachments/assets/b8f833bf-f115-4ad2-90e1-cfdf6f6ac315)
Reproduction steps
### here is js code used
The text was updated successfully, but these errors were encountered: