Browse Source

Add data.hide option - #151

pull/200/merge
Masayuki Tanaka 11 years ago
parent
commit
97beb21a33
  1. 6
      c3.js
  2. 6
      c3.min.js

6
c3.js

@ -137,6 +137,7 @@
__data_regions = getConfig(['data', 'regions'], {}),
__data_color = getConfig(['data', 'color']),
__data_colors = getConfig(['data', 'colors'], {}),
__data_hide = getConfig(['data', 'hide'], false),
__data_selection_enabled = getConfig(['data', 'selection', 'enabled'], false),
__data_selection_grouped = getConfig(['data', 'selection', 'grouped'], false),
__data_selection_isselectable = getConfig(['data', 'selection', 'isselectable'], function () { return true; }),
@ -2546,6 +2547,11 @@
c3.data.xs = {};
c3.data.targets = convertDataToTargets(data);
// Set targets to hide if needed
if (__data_hide) {
addHiddenTargetIds(__data_hide === true ? mapToIds(c3.data.targets) : __data_hide);
}
// Init sizes and scales
updateSizes();
updateScales();

6
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save