Browse Source

Set name individually by data.name API - #100

pull/110/head
Masayuki Tanaka 11 years ago
parent
commit
b1e7a8c3de
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

@ -3895,7 +3895,9 @@
};
c3.data.names = function (names) {
if (!arguments.length) { return __data_names; }
__data_names = names;
Object.keys(names).forEach(function (id) {
__data_names[id] = names[id];
});
updateLegend(c3.data.targets, {withTransition: true});
return __data_names;
};

2
c3.min.js vendored

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