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.
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.
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.