You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to select the last data point programmatically and draw gradient background, but i get the highLight is NAN so I cant get the coordinate to draw the gradient.
I used : chartView.highlightValue(Highlight(x: lastEntry.x, y: lastEntry.y, dataSetIndex: 0), callDelegate: true)
to select the last entry, and draw the gradient in the delegate function: func chartValueSelected(_ chartView: ChartViewBase, entry: ChartDataEntry, highlight: Highlight) but the highlight is NAN.
I also tried using "valueToPixelMatrix" way to get the coordinate, but the results are different from the highlight.xPx and highlight.yPx,
i would like to ask how can i get the correct coordinate of data point on Chart View,
Thank you guys.
The text was updated successfully, but these errors were encountered:
I'd like to select the last data point programmatically and draw gradient background, but i get the highLight is NAN so I cant get the coordinate to draw the gradient.
I used :
chartView.highlightValue(Highlight(x: lastEntry.x, y: lastEntry.y, dataSetIndex: 0), callDelegate: true)
to select the last entry, and draw the gradient in the delegate function:
func chartValueSelected(_ chartView: ChartViewBase, entry: ChartDataEntry, highlight: Highlight)
but the highlight is NAN.I also tried using "
valueToPixelMatrix
" way to get the coordinate, but the results are different from thehighlight.xPx
andhighlight.yPx
,i would like to ask how can i get the correct coordinate of data point on Chart View,
Thank you guys.
The text was updated successfully, but these errors were encountered: