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

how to set custom image button's height width #7957

Closed
MuraliKaliappan opened this issue Mar 5, 2018 · 6 comments
Closed

how to set custom image button's height width #7957

MuraliKaliappan opened this issue Mar 5, 2018 · 6 comments
Assignees

Comments

@MuraliKaliappan
Copy link

@MuraliKaliappan MuraliKaliappan commented Mar 5, 2018

try to make custom height width for custom image button

Live demo with steps to reproduce

http://jsfiddle.net/Murali_Kaliappan/2F4pJ/1029/

Product version

Highchart 6.0.7

Affected browser(s)

Chrome

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Mar 5, 2018

Hi @MuraliKaliappan

Thank you for reporting this issue. I'm not sure if it's a bug, according to our docs: https://api.highcharts.com/highcharts/exporting.buttons.contextButton.symbol - string should point to SVG collection of shapes. However, it's almost supported, just symbolSize is not properly handled for images.

Workaround:
Use the image that has the same size as expected output or try to define cached values in the Highcharts: http://jsfiddle.net/BlackLabel/2F4pJ/1067/ (may not work with all sizes though..)

@MuraliKaliappan
Copy link
Author

@MuraliKaliappan MuraliKaliappan commented Mar 6, 2018

Hi @pawelfus

wanna to know the possibility of image resize that's all , thank you any way ,cheers

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Mar 9, 2018

Added scaling for image symbols. Note: symbolX and symbolY still needs to be applied per image to center it.

@skuske
Copy link

@skuske skuske commented Sep 2, 2019

@pawelfus

I cannot find the symbolX and symbolY properties in the iOS wrapper... Also: images don't rescale there at all...

@pawelfus
Copy link
Contributor

@pawelfus pawelfus commented Sep 11, 2019

It works in JS version: http://jsfiddle.net/BlackLabel/egcmu4to/

However, it seems that options are missing, API: https://api.highcharts.com/highcharts/exporting.buttons.contextButton (no symbolX, symbolY and symbolSize descriptions), so probably iOS wrapper can not use these options..

Reported as #11941

Thanks!

@sebastianbochan
Copy link
Contributor

@sebastianbochan sebastianbochan commented Sep 11, 2019

The issue will be fixed in the next iOS wrapper release 7.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants