Newer
Older
MonCalc / app / src / main / kotlin / jackall / moncalc / model / LineChartModel.kt
KeijuMatsumoto on 5 Nov 2017 558 bytes [fix] NaN
package jackall.moncalc.model

import com.github.mikephil.charting.components.AxisBase
import com.github.mikephil.charting.data.Entry
import com.github.mikephil.charting.data.LineData
import com.github.mikephil.charting.data.LineDataSet
import com.github.mikephil.charting.formatter.IAxisValueFormatter

/**
 * Created by matsumoto_k on 2017/11/05.
 */
class LineChartModel(entries: ArrayList<Entry>, label: String) {
    val dataSets = LineDataSet(entries, label)
    val lineData by lazy {
        val lineData = LineData(dataSets)
        lineData
    }
}