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

custom tooltip formatter #26

Closed
LithMage opened this issue Jun 2, 2016 · 5 comments
Closed

custom tooltip formatter #26

LithMage opened this issue Jun 2, 2016 · 5 comments

Comments

@LithMage
Copy link

LithMage commented Jun 2, 2016

Hi,

i am trying to figure out the way to add custom tooltip formatter to the chart but if i am using typescript i cant access http://api.highcharts.com/highcharts#tooltip.formatter objects that 'this' poits to. while using plain JavaScript it works http://plnkr.co/edit/VkhPpxKlRtHKEyg2t5TS?p=preview (in maint.ts i added custom formatter).

it might be a stupid question, but i would appreciate the help :) or should i just use plain JavaScript and dont think about it?

@gevgeny
Copy link
Owner

gevgeny commented Jun 2, 2016

Hmm. Looks like it is question for created of the highcharts typings. May be this can help https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/highcharts/highcharts.d.ts#L5237.

@LithMage
Copy link
Author

LithMage commented Jun 2, 2016

thanks :) will try ask at typings git

@gevgeny
Copy link
Owner

gevgeny commented Jun 2, 2016

And to isolate the problem you can try to code an example with only Highcharts and typings

@LithMage
Copy link
Author

LithMage commented Jun 3, 2016

So it seems its intended that way
DefinitelyTyped/DefinitelyTyped#9533 (comment)

@gevgeny
Copy link
Owner

gevgeny commented Jun 3, 2016

Indeed. Thanks for investigation.

@gevgeny gevgeny closed this as completed Jun 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants