Commit 2fb3d5f2 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Update c3.min.js and fix spec

parent 272e4070
...@@ -3437,7 +3437,7 @@ ...@@ -3437,7 +3437,7 @@
text = "<table class='" + CLASS.tooltip + "'>" + (title || title === 0 ? "<tr><th colspan='2'>" + title + "</th></tr>" : ""); text = "<table class='" + CLASS.tooltip + "'>" + (title || title === 0 ? "<tr><th colspan='2'>" + title + "</th></tr>" : "");
} }
name = nameFormat(d[i].name); name = nameFormat(d[i].name, d[i].ratio, d[i].id, d[i].index);
value = valueFormat(d[i].value, d[i].ratio, d[i].id, d[i].index); value = valueFormat(d[i].value, d[i].ratio, d[i].id, d[i].index);
bgcolor = $$.levelColor ? $$.levelColor(d[i].value) : color(d[i].id); bgcolor = $$.levelColor ? $$.levelColor(d[i].value) : color(d[i].id);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -19,7 +19,7 @@ describe('c3 chart legend', function () { ...@@ -19,7 +19,7 @@ describe('c3 chart legend', function () {
beforeEach(function (done) { beforeEach(function (done) {
if (typeof chart === 'undefined') { if (typeof chart === 'undefined') {
initDom(); window.initDom();
} }
chart = window.c3.generate(args); chart = window.c3.generate(args);
d3 = chart.internal.d3; d3 = chart.internal.d3;
......
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