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

Issue when scaling chart #9871

Closed
sruchot opened this issue Jan 14, 2019 · 5 comments
Closed

Issue when scaling chart #9871

sruchot opened this issue Jan 14, 2019 · 5 comments

Comments

@sruchot
Copy link

sruchot commented Jan 14, 2019

Hello,

I don't know if it's an issue or a change due to Highcharts 7 (like a new property to set up maybe?) but since we updated to the new version we have a weird behavior with our charts.

In some cases we have to scale the container of chart/charts and in those cases the charts are not scale properly (Highcharts v7.0.1) =>

image

The same chart before we update (Highcharts v6.1.4) =>

image

On both example with have a 'transform: scale(0.535789)' applied to the container of the chart.

I have been able to reproduce it on a live example:
here

So I don't know if it's due to a change in the properties of highcharts or something we're doing wrong, but it's quite unexpected.

Thanks for your help,
Sylvain Ruchot.

@sebastianbochan
Copy link
Contributor

Hi @sruchot,
Thank you for reporting.

Simplified demos:

Workaround
Set the width by the chart.width option.

Demo:

Internal note
The width of .highcharts-container should not be divided by ratio of scale.

Default CSS functionality:

As you can observe, all is rescaled but internal width is not changed.

@TorsteinHonsi
Copy link
Collaborator

Bisected to 02b559d.

@TorsteinHonsi TorsteinHonsi self-assigned this Jan 14, 2019
@TorsteinHonsi
Copy link
Collaborator

Original demo with the fix applied: https://jsfiddle.net/highcharts/0he47rn2/

@ashwiniIot
Copy link

i am also getting an issue with auto-scaling.. when I changing the unit chart not showing proper scaling line is showing on 0..but when I zoomed in it will show the proper chart in 0 the range.
Screenshot from 2020-11-10 17-26-15

@PaulDalek
Copy link
Contributor

Hi @ashwiniIot

Thank you for contacting us. Please provide us with a simplified live example (e.g. JSFiddle) where the unwanted effect occurs along with steps to reproduce it. Thanks.

@highsoft-bot highsoft-bot added this to To do in Development-Flow via automation Nov 11, 2020
@pawelfus pawelfus moved this from To do to Done in Development-Flow Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

5 participants