Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
chart.width and chart.height, options.legend.x and options.legend.y
Jeremy Beta
<p>Hi Forum<br>
<br>
I am creating HTML5 graphs.<br>
<br>
Please can you help me with these questions?<br>
<br>
(1) Do chart.width and chart.height give sizes in pixels?<br>
(2) If they do give sizes in pixels, why my graph is about .85 x the pixel size in the Y direction (is it a margin thing)?<br>
(3) Do options.legend.x and options.legend.y give the position in pixels?<br>
(4) Why my legend disappears when it looks like there's still space for the legend on the graph<br>
<br>
Thank you<br>
</p>
<p>Jeremy Beta.</p>
Find more posts tagged with
Comments
Jeremy Beta
<p>Dear Forum</p>
<p> </p>
<p>It looks like the answer to (1) is that chart.width and chart.height do specify sizes in pixels.</p>
<p> </p>
<p>I guess that the answer to (3) is that options.legend.x and options.legend.y give position in pixels.</p>
<p> </p>
<p>I am still interested in answers to the other 2 questions!
</p>
<p> </p>
<p>Kind regards</p>
<p> </p>
<p>JB.</p>
Clement Wong
<p>Do you have any examples which illustrates the issues?</p>
<p> </p>
<p>I'm assuming you're using commercial BIRT. What version? The HTML5 charts are based on HighCharts. There might be out of the box settings (e.g. margins) that were overridden in our implementation of HighCharts' packagin. </p>
<p> </p>
<p>You can overwrite the behavior using the chart script within the HTML5 report item. If need be, it is possible to even overwrite our implementation in the html5charts.js.</p>