Browse Source

Update c3.min.js and fix spec

pull/631/head
Masayuki Tanaka 10 years ago
parent
commit
2fb3d5f29e
  1. 2
      c3.js
  2. 2
      c3.min.js
  3. 2
      spec/legend-spec.js

2
c3.js

@ -3437,7 +3437,7 @@
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);
bgcolor = $$.levelColor ? $$.levelColor(d[i].value) : color(d[i].id);

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

2
spec/legend-spec.js

@ -19,7 +19,7 @@ describe('c3 chart legend', function () {
beforeEach(function (done) {
if (typeof chart === 'undefined') {
initDom();
window.initDom();
}
chart = window.c3.generate(args);
d3 = chart.internal.d3;

Loading…
Cancel
Save