Permalink
Browse files

added a toggle

  • Loading branch information...
1 parent f644f70 commit d5961d9aea849776d3ca59232f62efb048365652 @tarekziade tarekziade committed Feb 28, 2013
Showing with 6 additions and 1 deletion.
  1. +1 −1 monolith/media/index.html
  2. +5 −0 monolith/media/lib/monolith.js
@@ -58,7 +58,7 @@
<div class="span6">
<chart title="Downloads and Daily Users"
id="chart1"
- fields="visits"
+ fields="pageviews,visits"
type="series"/>
</div>
</div> <!-- end of span12 -->
@@ -158,6 +158,11 @@ _init_datepicker: function(selector) {
element: document.getElementById('legend-' + this.id)
} );
+
+ var shelving = new Rickshaw.Graph.Behavior.Series.Toggle( {
+ graph: chart,
+ legend: legend
+ } );
// hover window
var hoverDetail = new Rickshaw.Graph.HoverDetail( {

0 comments on commit d5961d9

Please sign in to comment.