I cannot seem to get the Bars series to appear in the legend on my chart. Both line charts appear in the Legend OK. I have a JSFiddle here.
I then want to allow the user to click on individual legends and have these lines / bars appear/disappear from the chart as a transition, but have not found any examples of this other than NVD3.js, which I do not want to use. Could you point me to an example you may know of so I can learn from it.
Please click on the "Create Chart button first, so you can see the chart generated.
HTML code is:
<input id="clickMe1" type="button" value="Create Chart" onclick='createMainPerfChart()' />
<input id="clickMe2" type="button" value="Update Chart" onclick='updateMainPerfChart()' />
<div id="msg"></div>
<div style="margin-top:120px;">
<svg id="mainchart"></svg>
</div>
Thank you!