fun updateLineChart(chart: LineChart, entryList: List<Entry>, label: String, locale: Locale, referenceTimestamp: Long = 0, xAxisValueFormatter: ValueFormatter = TimestampValueFormatter(
referenceTimestamp,
locale
), axisLeftValueFormatter: ValueFormatter = CurrencyValueFormatter("$")): Unit
Fills a line chart with entries (/data).
chart
- The chart that is to be filled with data.
entryList
- The entries that are to be shown.
label
- The LineDataSet's label.
locale
- The locale to use for ValueFormatters.
referenceTimestamp
- The timestamp to subtract as a workaround for the graph library's float usage. Optional.
xAxisValueFormatter
- The x axis value formatter to use. Optional.
axisLeftValueFormatter
- The left axis value formatter to use. Optional.