Home > Mobile >  Android MPChart MarkerView special applications
Android MPChart MarkerView special applications

Time:10-14

How to create a chart when the default on the last point coordinates shows a tag

CodePudding user response:

I just finished this, ha ha
 
//set the default highlight data points, the x axis x said highlight data index, dataSetIndex I temporarily not understand is what to do, you have to do is set to 0
LineChart. HighlightValue (x: Float, dataSetIndex: Int)

CodePudding user response:

There are Marker Settings:
 
//set the Marker
Val mMarker=MyMarkerView (this, R.l ayout. Layout_chart_marker)
MMarker. ChartView=lineChart
LineChart. Marker=mMarker

CodePudding user response:

Thanks to the upstairs to append a problem
Create a chart how at the specified coordinates to the point to add a custom view is not set up a Marker, is displayed at the specified coordinates to the point, not to follow a moving

CodePudding user response:

refer to the third floor is in the pocket of reply:
thank upstairs and then add a question
Create a chart how at the specified coordinates to the point to add a custom view is not set up a Marker, is displayed at the specified coordinates to the point, not to follow a moving


I didn't do this
  • Related