Browse Source

Fix legend tile animation

pull/1177/merge
Masayuki Tanaka 10 years ago
parent
commit
f3e56c5805
  1. 4
      c3.js
  2. 6
      c3.min.js
  3. 4
      src/legend.js

4
c3.js

@ -4198,6 +4198,10 @@
.attr('class', CLASS.legendItemTile)
.style('stroke', $$.color)
.style("pointer-events", "none")
.attr('x1', $$.isLegendRight || $$.isLegendInset ? x1ForLegendTile : -200)
.attr('y1', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendTile)
.attr('x2', $$.isLegendRight || $$.isLegendInset ? x2ForLegendTile : -200)
.attr('y2', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendTile)
.attr('stroke-width', config.legend_item_tile_height);
// Set background for inset legend

6
c3.min.js vendored

File diff suppressed because one or more lines are too long

4
src/legend.js

@ -274,6 +274,10 @@ c3_chart_internal_fn.updateLegend = function (targetIds, options, transitions) {
.attr('class', CLASS.legendItemTile)
.style('stroke', $$.color)
.style("pointer-events", "none")
.attr('x1', $$.isLegendRight || $$.isLegendInset ? x1ForLegendTile : -200)
.attr('y1', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendTile)
.attr('x2', $$.isLegendRight || $$.isLegendInset ? x2ForLegendTile : -200)
.attr('y2', $$.isLegendRight || $$.isLegendInset ? -200 : yForLegendTile)
.attr('stroke-width', config.legend_item_tile_height);
// Set background for inset legend

Loading…
Cancel
Save