Skip to content

Offset argument contained a NaN value, happens when maxPrice and minPrice are equal #14

Description

@siva2204
'dart:ui/painting.dart':
Failed assertion: line 52 pos 10: '<optimized out>'

ig this happens when maxPrice and minPrice are the same in a set of data.
this happens in fitPrice function

  double fitPrice(double y) =>
      priceHeight * (maxPrice - y) / (maxPrice - minPrice);

and thanks for the amazing package!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions