Effect:
Modification:
@Override
public void drawData(Canvas c) {
for (int i = 0; i < radarData.getDataSets().size(); i++) { IRadarDataSet set = radarData.getDataSets().get(i); drawDataSet(c, set, mostEntries, i); }}drawDataSet(Canvas c, IRadarDataSet dataSet, int mostEntries, int index) {
if (mChart.isWebDrawCircleDotEnable() && mChart.getData().getDataSets().size()
== mChart.getWebDrawCircleDotList().size()) {
// Enable the drawing of polyline dots with the same numberRadarDataSet radarDataSet = mChart.getWebDrawCircleDotList().get(index); drawHighlightCircle(c, pOut, radarDataSet.getHighlightCircleInnerRadius(), radarDataSet.getHighlightCircleOuterRadius(), radarDataSet.getHighlightCircleFillColor(), radarDataSet.getHighlightCircleStrokeColor(), radarDataSet.getHighlightCircleStrokeWidth()); }}Copy the code
/** * Set the web corner dot background color, etc@param mWebDrawCircleDotEnable
* @param dataSets* /
public void setWebDrawCircleDotEnable(boolean mWebDrawCircleDotEnable, ArrayList<RadarDataSet> dataSets) {
this.mWebDrawCircleDotEnable = mWebDrawCircleDotEnable;
this.mWebDrawCircleDotList = dataSets;
}
public ArrayList<RadarDataSet> getWebDrawCircleDotList() {
return mWebDrawCircleDotList;
}
public boolean isWebDrawCircleDotEnable() {
return mWebDrawCircleDotEnable;
}
Copy the code
The project address
Like please give a thumbs-up oh ~