Saturday, 15 August 2015

javascript - Highcharts Image Renderer Auto Height -


I am trying to install a logo on the top left corner of the graph and the code below is working fine, But did I want to know that any of their direct is the way I can height or width automatically such as we can do in CSS?

  function (chart) {chart.renderer.image ("http://i.imgur.com/mX5qRdP.png", 5, 5, 30, 30) .add (); }  

I know that I can do this by calculating the height and width.

But is he a more sophisticated way?

Highlight a SVG library, and width for the SVG 1.1 specification and < Code> height attributes & lt; Image & gt; is required for element

See the feature definitions to see.

What I wanted to know is any direct way of them, from which I can make the height or width auto as if we do in CSS?

Actually, I do not think there is a way of automatic shapes like CSS because the SVG features width and & lt; Image & gt; element height .


No comments:

Post a Comment