// Path: app/libs/MPAndroidChart-2.2.3/MPAndroidChart-2.2.3/MPChartExample/src/com/xxmassdeveloper/mpchartexample/custom/MyMarkerView.java
// public class MyMarkerView extends MarkerView {
// 
//     private TextView tvContent;
// 
//     public MyMarkerView(Context context, int layoutResource) {
//         super(context, layoutResource);
// 
//         tvContent = (TextView) findViewById(R.id.tvContent);
//     }
// 
//     // callbacks everytime the MarkerView is redrawn, can be used to update the
//     // content (user-interface)
//     @Override
//     public void refreshContent(Entry e, Highlight highlight) {
// 
//         if (e instanceof CandleEntry) {
// 
//             CandleEntry ce = (CandleEntry) e;
// 
//             tvContent.setText("" + Utils.formatNumber(ce.getHigh(), 0, true));
//         } else {
// 
//             tvContent.setText("" + Utils.formatNumber(e.getVal(), 0, true));
//         }
//     }
// 
//     @Override
//     public int getXOffset(float xpos) {
//         // this will center the marker-view horizontally
//         return -(getWidth() / 2);
//     }
// 
//     @Override
//     public int getYOffset(float ypos) {
//         // this will cause the marker-view to be above the selected value
//         return -getHeight();
//     }
// }


import android.graphics.Typeface;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.WindowManager;
import android.widget.Toast;
import com.github.mikephil.charting.animation.Easing;
import com.github.mikephil.charting.charts.RadarChart;
import com.github.mikephil.charting.components.Legend;
import com.github.mikephil.charting.components.Legend.LegendPosition;
import com.github.mikephil.charting.components.XAxis;
import com.github.mikephil.charting.components.YAxis;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.data.RadarData;
import com.github.mikephil.charting.data.RadarDataSet;
import com.github.mikephil.charting.interfaces.datasets.IDataSet;
import com.github.mikephil.charting.interfaces.datasets.IRadarDataSet;
import com.github.mikephil.charting.utils.ColorTemplate;
import com.xxmassdeveloper.mpchartexample.custom.MyMarkerView;
import com.xxmassdeveloper.mpchartexample.notimportant.DemoBase;
import java.util.ArrayList;

package com.xxmassdeveloper.mpchartexample;




public class RadarChartActivitry extends DemoBase {

    private RadarChart mChart;
    private Typeface tf;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_radarchart);

        mChart = (RadarChart) findViewById(R.id.chart1);

        tf = Typeface.createFromAsset(getAssets(), "OpenSans-Regular.ttf");

        mChart.setDescription("");

        mChart.setWebLineWidth(1.5f);
        mChart.setWebLineWidthInner(0.75f);
        mChart.setWebAlpha(100);

        // create a custom MarkerView (extend MarkerView) and specify the layout
        // to use for it
// Path: app/libs/MPAndroidChart-2.2.3/MPAndroidChart-2.2.3/MPChartExample/src/com/xxmassdeveloper/mpchartexample/custom/MyMarkerView.java
// public class MyMarkerView extends MarkerView {
// 
//     private TextView tvContent;
// 
//     public MyMarkerView(Context context, int layoutResource) {
//         super(context, layoutResource);
// 
//         tvContent = (TextView) findViewById(R.id.tvContent);
//     }
// 
//     // callbacks everytime the MarkerView is redrawn, can be used to update the
//     // content (user-interface)
//     @Override
//     public void refreshContent(Entry e, Highlight highlight) {
// 
//         if (e instanceof CandleEntry) {
// 
//             CandleEntry ce = (CandleEntry) e;
// 
//             tvContent.setText("" + Utils.formatNumber(ce.getHigh(), 0, true));
//         } else {
// 
//             tvContent.setText("" + Utils.formatNumber(e.getVal(), 0, true));
//         }
//     }
// 
//     @Override
//     public int getXOffset(float xpos) {
//         // this will center the marker-view horizontally
//         return -(getWidth() / 2);
//     }
// 
//     @Override
//     public int getYOffset(float ypos) {
//         // this will cause the marker-view to be above the selected value
//         return -getHeight();
//     }
// }


// Path: app/libs/MPAndroidChart-2.2.3/MPAndroidChart-2.2.3/MPChartExample/src/com/xxmassdeveloper/mpchartexample/RadarChartActivitry.java
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.WindowManager;
import android.widget.Toast;
import com.github.mikephil.charting.animation.Easing;
import com.github.mikephil.charting.charts.RadarChart;
import com.github.mikephil.charting.components.Legend;
import com.github.mikephil.charting.components.Legend.LegendPosition;
import com.github.mikephil.charting.components.XAxis;
import com.github.mikephil.charting.components.YAxis;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.data.RadarData;
import com.github.mikephil.charting.data.RadarDataSet;
import com.github.mikephil.charting.interfaces.datasets.IDataSet;
import com.github.mikephil.charting.interfaces.datasets.IRadarDataSet;
import com.github.mikephil.charting.utils.ColorTemplate;
import com.xxmassdeveloper.mpchartexample.custom.MyMarkerView;
import com.xxmassdeveloper.mpchartexample.notimportant.DemoBase;
import java.util.ArrayList;


package com.xxmassdeveloper.mpchartexample;




public class RadarChartActivitry extends DemoBase {

    private RadarChart mChart;
    private Typeface tf;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_radarchart);

        mChart = (RadarChart) findViewById(R.id.chart1);

        tf = Typeface.createFromAsset(getAssets(), "OpenSans-Regular.ttf");

        mChart.setDescription("");

        mChart.setWebLineWidth(1.5f);
        mChart.setWebLineWidthInner(0.75f);
        mChart.setWebAlpha(100);

        // create a custom MarkerView (extend MarkerView) and specify the layout
        // to use for it
        MyMarkerView mv = new MyMarkerView(this, R.layout.custom_marker_view);