Thanks to visit codestin.com
Credit goes to github.com

Skip to content

highlightValue is throwing "fatal error: Index out of range" in Combined Chart #2076

Description

@vikramezhil

I am using the combined chart (Bar and line) and when I try to highlight the bar programatically using the below code, i get an index out of range error. I am trying to set the first bar in the chart highlighted, but it is not working as expected.

highlightValue(x: 0, dataSetIndex: 0)

There is no chance of count mismatch between the x and y values or empty count in my code as these checks are placed beforehand and only after the condition is satisfied the chart is set. I even tried setting this after notifyDataSetChanged, but still the issue remains the same.

Strange enough I never encountered this issue in v2.2.5 or before and this issue seems to have arisen in v3.0. Any help would be appreciated, Thanks!

Note: All the highlightValue functions throw this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions