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)
How to remove the frame of chart legend
eric2000
<p>I've a special case. For some legends I want only keep texts, not symbols. Attached please find the example.</p>
<p>In the example I only want to keep text "white" not the symbol. So put the color in white (background) in code. </p>
<p> </p>
<div>function beforeDrawLegendItem( lerh, bounds, icsc )</div>
<div>{</div>
<div> <span> </span>var seriesValue = lerh.getLabel().getCaption().getValue();</div>
<div> <span> </span>var fill = lerh.getFill();</div>
<div> if( seriesValue == "white" )</div>
<div> <span> </span>fill.set( 255,255,255 ); </div>
<div>}</div>
<div> </div>
<div>But how to remove the frame?</div>
Find more posts tagged with
Comments
mwilliams
<p>Try just doing this:</p>
<p> </p>
<div><pre class="_prettyXprint _linenums:0">bounds.setWidth(0);
bounds.setHeight(0);</pre></div>
eric2000
<p>It works very well. Thank you.</p>
mwilliams
<p>You're welcome!
</p>