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
Hide legend for a series with grouping
Migrateduser
<p>As described elsewhere in this forum, the code:</p>
<p> </p>
<div>function beforeDrawLegendItem( lerh, bounds, icsc )</div>
<div>{</div>
<div>if(lerh.getLabel().getCaption().getValue() == "series_name"){</div>
<div>lerh.getLabel().setVisible(false);</div>
<div>bounds.set(0,0,0,0);</div>
<div>} else {</div>
<div>lerh.getLabel().setVisible(true);</div>
<div>}</div>
<div> </div>
<div>}</div>
<div> </div>
<div>will hide the legend for the series with "series_name", IF that series does not have optional Y-series grouping selected. If optional Y-series grouping is selected, the group category legend entries can be hidden with this code but not the series legend as a whole. In the attached report, the group category "Ships" is hidden in both series legends, but I am looking for a solution that hides Series 2 as a whole, whilst nothing of Series 1 should be hidden.</div>
<div> </div>
<div>Has anyone done this?</div>
<div>
Find more posts tagged with
Comments
There are no comments yet