Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Unit type
sendu
Hi,
I am trying to change the chart size dynamically. I have to set the height and width in pixels(Inside the function beforeGeneration)
Is there a way that i can set these values in inch ? or how to change the default unit ?
(because i have to set a maximum and minimum according to my master page size, I am not clear to change the master page size in pixels)
thanks in advance,
Find more posts tagged with
Comments
mwilliams
You could do a conversion of pixels to inches, but you'd need to know the dpi on the display.
sendu
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="83849" data-time="1318013283" data-date="07 October 2011 - 11:48 AM"><p>
You could do a conversion of pixels to inches, but you'd need to know the dpi on the display.<br /></p></blockquote>
<br />
Hi<br />
Thanks Michael.<br />
I have this equation <strong class='bbc'>Inches = Pixels/DPI</strong><br />
<br />
What is the value for dpi, i can give ?<br />
(if the value is depended on my screen resolution, it'll be better if i can change it dynamically)<br />
really need ur help
mwilliams
You could probably use client side script in a text box to grab the resolution of the screen, then resize the chart based on this. This would only work for HTML outputs. For fixed page size outputs, you should just be able to set the chart width using the property editor.
sendu
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="83906" data-time="1318259412" data-date="10 October 2011 - 08:10 AM"><p>
You could probably use client side script in a text box to grab the resolution of the screen, then resize the chart based on this. This would only work for HTML outputs. For fixed page size outputs, you should just be able to set the chart width using the property editor.<br /></p></blockquote>
<br />
Thanks Michael,<br />
I'll try something like this
mwilliams
Alright, let me know.