Skip to content

Old method of getting zoomed in minIndex and maxIndex of visible points no longer works. #837

@twilson90

Description

@twilson90

I have a zoomable line chart and I need to know the visible dataset indices.
According to old answers on stackoverflow chart.scales.x.minIndex and chart.scales.x.maxIndex were available in older versions, but they no longer appear to exist in the latest version of chartjs.
I can get the value range with _range but I would need to process the entire dataset to find the indices from that, and my dataset is rather massive (which is why I'm using zoom)

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