How to Hide Series 2 Legend in the Chart
<p><span style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Hi</span></p>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">I have a report where I have two series Bar and line in the same chart. I'm showing total count against each application for the last 7 weeks.</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> </div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">The first 3 application names,we are showing in bar chart and the last 3 application names in line series like below.</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> </div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">//bar series</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">if (dataSetRow["Application"] == 'A1')</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">{</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> row["Count"]</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">}</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">else if (dataSetRow["Application"] == 'A2')</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">{</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> row["Count"]</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">}</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">else if (dataSetRow["Application"] == 'A3')</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">{</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> row["Count"]</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">}</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> </div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">//line series</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">if (dataSetRow["Application"] == 'A4')</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">{</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> row["Count"]</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">}</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">else if (dataSetRow["Application"] == 'A5')</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">{</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> row["Count"]</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">}</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">else if (dataSetRow["Application"] == 'A6')</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">{</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> row["Count"]</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">}</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> </div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">But the legend values are showing for all the application names as below</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 1 - A1</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 1 - A2</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 1 - A3</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 1 - A4</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 1 - A5</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 1 - A6</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> </div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 2 - A1</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 2 - A2</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 2 - A3</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 2 - A4</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 2 - A5</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Series 2 - A6</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> </div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">I want series 1 to display only the first 3 application names and series 2 to display only the last 3 applications.</div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);"> </div>
<div style="background-color:rgb(255,255,255);color:rgb(38,39,43);">Please help if anyone has worked on the above scenario.</div>