Browse Source

Fix generateColor for arc chart - #874

pull/938/head
Masayuki Tanaka 10 years ago
parent
commit
f53dff3f6a
  1. 2
      c3.js
  2. 2
      c3.min.js
  3. 2
      src/color.js

2
c3.js

@ -5388,7 +5388,7 @@
ids = []; ids = [];
return function (d) { return function (d) {
var id = d.id || d, color; var id = d.id || (d.data && d.data.id) || d, color;
// if callback function is provided // if callback function is provided
if (colors[id] instanceof Function) { if (colors[id] instanceof Function) {

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
src/color.js

@ -6,7 +6,7 @@ c3_chart_internal_fn.generateColor = function () {
ids = []; ids = [];
return function (d) { return function (d) {
var id = d.id || d, color; var id = d.id || (d.data && d.data.id) || d, color;
// if callback function is provided // if callback function is provided
if (colors[id] instanceof Function) { if (colors[id] instanceof Function) {

Loading…
Cancel
Save