Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Setting a Chart Legend Size
Migrateduser
<p>I am attempting to size the legend for a scatter plot. It is within the chart area pinned to the upper right corner. My axes are running through the middle of the scatter plot and regardless if I set the legend to run horizontally or vertically, it crossed an axis. I tried using the script below to size the legend, but while the legend size changes, the legend elements just run outside the legend (I turned on the legend outline which is how I know the size is changing).</p>
<p> </p>
<div>function beforeComputations( chart, plotComputation )</div>
<div>{ plotComputation.getRunTimeContext().getLegendLayoutHints().getLegendSize().setHeight(200)</div>
<div> plotComputation.getRunTimeContext().getLegendLayoutHints().getLegendSize().setWidth(200)</div>
<div>}</div>
<div> </div>
<div>Does anyone have any suggestions as to how I can change the size of a chart legend such that the legend elements form nice columns and stay within the legend boundaries?</div>
Find more posts tagged with
Comments
There are no comments yet