Browse Source

Update c3 API:

Added 'c3chart.data.axes' function, it works similar to 'c3chart.data.colors' and it allows to change the data Y axes dynamically.
pull/631/head
Leonardo Bortoli 10 years ago
parent
commit
b93b77d0c1
  1. 9
      c3.js
  2. 2
      c3.min.js

9
c3.js

@ -6068,6 +6068,15 @@
$$.redraw({withLegend: true});
return config.data_colors;
};
c3_chart_fn.data.axes = function (axes) {
var $$ = this.internal, config = $$.config;
if (!arguments.length) { return config.data_axes; }
Object.keys(axes).forEach(function (id) {
config.data_axes[id] = axes[id];
});
$$.redraw({withLegend: true});
return config.data_axes;
};
c3_chart_fn.category = function (i, category) {
var $$ = this.internal, config = $$.config;

2
c3.min.js vendored

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