Browse Source

Fix data label to be shown - #295

pull/310/head
Masayuki Tanaka 11 years ago
parent
commit
832d6c7034
  1. 6
      c3.js
  2. 6
      c3.min.js

6
c3.js

@ -1803,10 +1803,6 @@
function initialOpacity(d) {
return d.value !== null && withoutFadeIn[d.id] ? 1 : 0;
}
function initialOpacityForText(d) {
var targetOpacity = opacityForText(d);
return initialOpacity(d) * targetOpacity;
}
function opacityForCircle(d) {
return isValue(d.value) ? isScatterType(d) ? 0.5 : 1 : 0;
}
@ -4011,7 +4007,7 @@
.attr('x', xForText)
.attr('y', yForText)
.style("fill", color)
.style("fill-opacity", options.flow ? 0 : initialOpacityForText));
.style("fill-opacity", options.flow ? 0 : opacityForText));
waitForDraw.add(mainRegion.selectAll('rect').transition()
.attr("x", regionX)
.attr("y", regionY)

6
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save