DataUtils

object DataUtils

Functions

Link copied to clipboard
fun getBarChartData(listSize: Int, maxRange: Int, barChartType: BarChartType, dataCategoryOptions: DataCategoryOptions): List<BarData>
Link copied to clipboard
fun getBubbleChartDataWithGradientStyle(points: List<Point>, minDensity: Float = 10.0f, maxDensity: Float = 100.0f): List<Bubble>

Returns list of points

Link copied to clipboard
fun getBubbleChartDataWithSolidStyle(points: List<Point>, minDensity: Float = 10.0f, maxDensity: Float = 100.0f): List<Bubble>

Returns list of points

Link copied to clipboard

Returns the sample colors list for given size

Link copied to clipboard

Returns sample donut chart data

Link copied to clipboard
fun getGradientBarChartData(listSize: Int, maxRange: Int): List<BarData>

Return the sample gradient bar chart data

Link copied to clipboard
fun getGroupBarChartData(listSize: Int, maxRange: Int, barSize: Int): List<GroupBar>

Returns the sample gradient bar chart data.

Link copied to clipboard

Returns the legends config for given pie chart data

Link copied to clipboard
fun getLegendsLabelData(colorPaletteList: List<Color>): List<LegendLabel>

Returns the sample stackLabelList data

Link copied to clipboard
fun getLineChartData(listSize: Int, start: Int = 0, maxRange: Int): List<Point>

Returns list of points

Link copied to clipboard

Returns sample pie chart data

Link copied to clipboard

Returns sample pie chart data

Link copied to clipboard
fun getRandomPoints(listSize: Int, start: Int = 0, maxRange: Int): List<Point>

Returns list of points

Link copied to clipboard
fun getWaveChartData(duration: Double, sampleRate: Double, frequency: Double): List<Point>

Return the sample bar chart data