// 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.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.github.mikephil.charting.charts.ScatterChart;
import com.github.mikephil.charting.components.Legend;
import com.github.mikephil.charting.components.XAxis;
import com.github.mikephil.charting.components.YAxis;
import com.github.mikephil.charting.components.XAxis.XAxisPosition;
import com.xxmassdeveloper.mpchartexample.R;
import com.xxmassdeveloper.mpchartexample.custom.MyMarkerView;
package com.xxmassdeveloper.mpchartexample.fragments;



public class ScatterChartFrag extends SimpleFragment {

    public static Fragment newInstance() {
        return new ScatterChartFrag();
    }

    private ScatterChart mChart;
    
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.frag_simple_scatter, container, false);
        
        mChart = (ScatterChart) v.findViewById(R.id.scatterChart1);
        mChart.setDescription("");
        
        Typeface tf = Typeface.createFromAsset(getActivity().getAssets(),"OpenSans-Light.ttf");
        
// 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/fragments/ScatterChartFrag.java
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.github.mikephil.charting.charts.ScatterChart;
import com.github.mikephil.charting.components.Legend;
import com.github.mikephil.charting.components.XAxis;
import com.github.mikephil.charting.components.YAxis;
import com.github.mikephil.charting.components.XAxis.XAxisPosition;
import com.xxmassdeveloper.mpchartexample.R;
import com.xxmassdeveloper.mpchartexample.custom.MyMarkerView;

package com.xxmassdeveloper.mpchartexample.fragments;



public class ScatterChartFrag extends SimpleFragment {

    public static Fragment newInstance() {
        return new ScatterChartFrag();
    }

    private ScatterChart mChart;
    
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.frag_simple_scatter, container, false);
        
        mChart = (ScatterChart) v.findViewById(R.id.scatterChart1);
        mChart.setDescription("");
        
        Typeface tf = Typeface.createFromAsset(getActivity().getAssets(),"OpenSans-Light.ttf");
        
        MyMarkerView mv = new MyMarkerView(getActivity(), R.layout.custom_marker_view);