Skip to content

LineGraph hangs for certain data points #126

@neutralino

Description

@neutralino

A LineGraph with the following points appears to hang indefinitely:

    let x: [Float] = [0, 1]
    let y: [Float] = [0, 2.01]

(e.g. replacing the points in testLineChartSingleSeries with the points above).
It looks like the issue is within LineGraph's calculateMarkers method (when computing xM), though it's not clear to me what the fix should be. Replacing the y point 2.01 with a value of 2.0 or less works as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions