Browse Source

Fix legend append animation

pull/1220/merge
Masayuki Tanaka 9 years ago
parent
commit
86d0bf880c
  1. 1
      c3.js
  2. 2
      c3.min.js
  3. 1
      src/legend.js

1
c3.js

@ -4167,6 +4167,7 @@
.attr('y', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendRect); .attr('y', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendRect);
l.append('line') l.append('line')
.attr('class', CLASS.legendItemTile) .attr('class', CLASS.legendItemTile)
.style('stroke', $$.color)
.style("pointer-events", "none") .style("pointer-events", "none")
.attr('stroke-width', config.legend_item_tile_height); .attr('stroke-width', config.legend_item_tile_height);

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

1
src/legend.js

@ -268,6 +268,7 @@ c3_chart_internal_fn.updateLegend = function (targetIds, options, transitions) {
.attr('y', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendRect); .attr('y', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendRect);
l.append('line') l.append('line')
.attr('class', CLASS.legendItemTile) .attr('class', CLASS.legendItemTile)
.style('stroke', $$.color)
.style("pointer-events", "none") .style("pointer-events", "none")
.attr('stroke-width', config.legend_item_tile_height); .attr('stroke-width', config.legend_item_tile_height);

Loading…
Cancel
Save