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.