Skip to content

Togglable Legend, line on AreaRenderer

Pre-release
Pre-release

Choose a tag to compare

@jtlan jtlan released this 04 Jun 04:39
· 8365 commits to master since this release

"What if I want to call callback() to get the callback back?"

Good evening,

New features! Togglable Legend:
screen shot 2014-06-03 at 9 26 22 pm
Instantiate using new Plottable.ToggleLegend(). You can supply a callback that gets called when a legend item is clicked. Please see quicktests/legendToggle-quicktest.html for an example.

In addition, AreaRenderer can now draw a line above the shaded area:
screen shot 2014-06-03 at 9 28 19 pm
Set the stroke by calling project("stroke", function() { return COLOR; })

IMPORTANT! The next release will feature a major re-arranging of the Plottable module space (almost certainly breaking all uses of the current API). You have been warned.