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)
Chart legend wrapping not updated when pdf DPI is changed
paqman
Not sure if this is the right place to post this as it deals with PDF generation. For our application we are manually setting the DPI option of a generated PDF to 600 (to improve image quality) using:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>IPDFRenderOption pdfOptions = new PDFRenderOption(options);
pdfOptions.setOption(IPDFRenderOption.DPI, Integer.valueOf(600));</pre>
<br />
For a chart in this report, we have set the legend wrapping to 60. When this report generates as a PDF the legend items wrap for every character. It would seem that setting the DPI to a higher value does not scale up the wrapping value as it should (if the image becomes 10 times wider, the wrapping should be updated to be 600, but remains as 60 instead). <br />
<br />
Is this a known issue? Or is there any kind of workaround?
Find more posts tagged with
Comments
JasonW
In the beforeGeneration you can change the wrapping size dynamically:
function beforeGeneration( chart, icsc )
{
chart.getLegend().setWrappingSize(600);
}
Jason