This demo shows how to customize the legend in a morrisjs plot, created using rCharts. If you hover over the line, you will observe that the order of the variables traj1
and traj2
in the legend switches based on which value is greater. This demo was created in response to a question posed on github.
Modified http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js to a secure url
Modified http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js to a secure url
Modified http://cdn.oesmith.co.uk/morris-0.4.2.min.js to a secure url
Modified http://cdnjs.cloudflare.com/ajax/libs/prettify/188.0.0/prettify.js to a secure url
https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js
https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js
https://cdn.oesmith.co.uk/morris-0.4.2.min.js
https://cdnjs.cloudflare.com/ajax/libs/prettify/188.0.0/prettify.js