Browse Source

Added posibility to update names in load API call

pull/1364/head
Michel Beloshitsky 9 years ago
parent
commit
51ccc4b4bd
  1. 6
      src/api.load.js

6
src/api.load.js

@ -20,6 +20,12 @@ c3_chart_fn.load = function (args) {
config.data_axes[id] = args.axes[id];
});
}
// update names if exists
if ('names' in args) {
Object.keys(args.names).forEach(function (id) {
config.data_names[id] = args.names[id];
});
}
// update colors if exists
if ('colors' in args) {
Object.keys(args.colors).forEach(function (id) {

Loading…
Cancel
Save