How to manually add marker in swift charts at fixed point

前端 未结 1 594
太阳男子
太阳男子 2021-01-29 07:48

I am using https://github.com/danielgindi/Charts

I am trying to add marker manually on launch of Scatter graph.

I am using chartView.highlightValue(x: 7, y

相关标签:
1条回答
  • 2021-01-29 08:23

    dataSetIndex is index of entries inside the ScatterChartDataSet

    ScatterChartDataSet(entries: [dataSet0, dataSet1, dataSet2])
    

    you need to call the right dataSetIndex that have x:7 and y:9 value

    0 讨论(0)
提交回复
热议问题