Skip to content Skip to sidebar Skip to footer

Nvd3 Multibar Chart: Toggle Default Values To Show

I'm new to d3 and am trying to learn using nvd3. Right now, I'm playing with the multibar chart here. I'm trying to set it so that on the page load, 'Stream #1' and 'Stream #2' are

Solution 1:

set 'disabled' to true in the json for the series.

ex:

[
  {
      key:'Stream#0',
      values:data
  },
  {
      key:'Stream#1',
      disabled:true,
      values:data
  }
]

Post a Comment for "Nvd3 Multibar Chart: Toggle Default Values To Show"