Skip to content

[BUG]Chart.elements.Rectangle.getArea() is NaN when Horizontal Bar Chart case #4480

@nicenicenicerice

Description

@nicenicenicerice

ver: 2.6.0
bug: Chart.elements.Rectangle.getArea() is NaN when Horizontal Bar Chart case
code:

getArea: function() {
  var vm = this._view;
  return vm.width * Math.abs(vm.y - vm.base);
} 

ref: Chart.controllers.bar.updateElementGeometry: function(rectangle, index, reset)
desc:
must consider Horizontal case

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions