Skip to content
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

Export is not respecting requested chart size #21187

Closed
tseever opened this issue May 17, 2024 · 3 comments
Closed

Export is not respecting requested chart size #21187

tseever opened this issue May 17, 2024 · 3 comments

Comments

@tseever
Copy link

tseever commented May 17, 2024

Expected behaviour

Export size should change according to width and height in exporting options. Currently it is not working correctly.

Actual behaviour

Chart exports with a default size and ignores the width override.

Live demo with steps to reproduce

The jsfiddle example for setting the width as linked in the API is exhibiting the problem. The exported chart is 1200x800, while it is supposed to be sized to 200px wide. For my own maps example it is similarly 1200px wide and appears to be portrait instead of my landscape map.

https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/exporting/width/

Product version

Highcharts/maps v11.4.1

Affected browser(s)

Chrome v124

@karolkolodziej
Copy link
Contributor

Hi @tseever!

As a workaround you can set the sourceWidth and scale to get a similar result to what the width does- demo.

@tseever
Copy link
Author

tseever commented May 21, 2024

Thanks! I had also tried that initially without success, but at your suggestion I tried again and realized my calculated sourceWidth was being set to NaN due to a timing issue.

@karolkolodziej
Copy link
Contributor

@tseever Please look at the issue linked by @jszuminski.
I'm going to close this one here as it is going to be resolved in the export server repository.

@karolkolodziej karolkolodziej closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants