It is currently Wed Dec 17, 2014 9:56 pm Advanced search

External images inside of tooltips

Technical support for the Highcharts Stock package

External images inside of tooltips

Postby dlb » Thu Feb 16, 2012 1:00 pm

Hello,

I was wandering if it is possible to insert external images inside of a flag tooltip ?

From what I've found in the documentation, the formatter only handles a few HTML tags and <img> isn't among them.

"A subset of HTML is supported. The HTML of the tooltip is parsed and converted to SVG, therefore this isn't a complete HTML renderer. The following tabs are supported: <b>, <strong>, <i>, <em>, <br/>, <span>. Spans can be styled with a style attribute, but only text-related CSS that is shared with SVG is handled. "

Is there any way to do this using the renderer ?

Thanks,
David
dlb
 
Posts: 1
Joined: Thu Feb 16, 2012 12:52 pm

Re: External images inside of tooltips

Postby hfrntt » Wed Feb 22, 2012 4:54 pm

You can use renderer.image, but it's not possible to put rendered inside the flag and automatically expand its bounding box.
Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am


Return to Highstock Usage

Who is online

Users browsing this forum: No registered users and 2 guests