Browse Source

Fix bug

pull/1/head
Masayuki Tanaka 12 years ago
parent
commit
daed47a85c
  1. 2
      c3.js

2
c3.js

@ -231,7 +231,7 @@
var x0, y0 var x0, y0
if (isLineType(d)) { if (isLineType(d)) {
isSplineType(d) ? line.interpolate("cardinal") : line.interpolate("linear") isSplineType(d) ? line.interpolate("cardinal") : line.interpolate("linear")
return __data_regions.length > 0 ? lineWithRegions(d.values, x, getYScale(d.id), __data_regions[d.id]) : line(d.values) return Object.keys(__data_regions).length > 0 ? lineWithRegions(d.values, x, getYScale(d.id), __data_regions[d.id]) : line(d.values)
} else { } else {
x0 = x(d.values[0].x) x0 = x(d.values[0].x)
y0 = getYScale(d.id)(d.values[0].value) y0 = getYScale(d.id)(d.values[0].value)

Loading…
Cancel
Save