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 · 3 comments

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Contributor

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

This comment has been minimized.

MuraliKaliappan commented Mar 6, 2018

Hi @pawelfus

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

@pawelfus

This comment has been minimized.

Contributor

pawelfus commented Mar 9, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment