score:1

Accepted answer

You can add the HIPoint class object to the data:

let options = HIOptions()

let chart = HIChart()
chart.type = "line"
options.chart = chart

let title = HITitle()
title.text = "Demo chart"
options.title = title

let line = HILine()

let point = HIPoint()
point.y = 71.5

line.data = [29.9, point, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]

options.series = [line]

And refer to the point in this way:

let point = self.chartView.options.series[0].data[1] as! HIPoint
point.select()

Related Query

More Query from same tag