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 have a CombinedChartView with multiple linegraphs and a scatter graph.
let data: CombinedChartData = CombinedChartData(xVals: xAxisdateTimeArr)
data.lineData = self.setLineData(foreCastData,highlightTime: highlightTime)
data.scatterData = self.getScatterData(foreCastData,highlightTime: highlightTime)
chartView.data = data
DataSource for line graph is as below
func setLineData() ->LineChartData{
..........
var dataSets : [LineChartDataSet] = [LineChartDataSet]()
dataSets.append(set1)
dataSets.append(set2)
dataSets.append(set3)
let data: LineChartData = LineChartData(xVals: xAxisdateTimeArr, dataSets: dataSets)
return data
}
I need to show a popup only when 1st line graph is selected.
But the delegate method is called for each line graph in chartView. func chartValueSelected(chartView: ChartViewBase, entry: ChartDataEntry, dataSetIndex: Int, highlight: ChartHighlight){}
how do i distinguish the callback of a line graph?
The text was updated successfully, but these errors were encountered:
i have a
CombinedChartView
with multiple linegraphs and a scatter graph.DataSource for line graph is as below
I need to show a popup only when 1st line graph is selected.
But the delegate method is called for each line graph in chartView.
func chartValueSelected(chartView: ChartViewBase, entry: ChartDataEntry, dataSetIndex: Int, highlight: ChartHighlight){}
how do i distinguish the callback of a line graph?
The text was updated successfully, but these errors were encountered: