Commit f53dff3f authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix generateColor for arc chart - #874

parent 7bb7cb99
......@@ -5388,7 +5388,7 @@
ids = [];
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 (colors[id] instanceof Function) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6,7 +6,7 @@ c3_chart_internal_fn.generateColor = function () {
ids = [];
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 (colors[id] instanceof Function) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment