Package-level declarations

Functions

Link copied to clipboard
fun DrawScope.drawHighLightOnSelectedPoint(dragLocks: MutableMap<Int, Pair<Point, Offset>>, columnWidth: Float, paddingRight: Dp, yBottom: Float, selectionHighlightPoint: SelectionHighlightPoint?)

DrawScope.drawHighLightOnSelectedPoint extension method used for drawing and highlight the selected point when dragging.

Link copied to clipboard
fun DrawScope.drawHighlightText(identifiedPoint: Point, selectedOffset: Offset, selectionHighlightPopUp: SelectionHighlightPopUp?)

Used to draw the highlighted text

Link copied to clipboard
fun DrawScope.drawShadowUnderLineAndIntersectionPoint(cubicPath: Path, pointsData: MutableList<Offset>, yBottom: Float, line: Line)

DrawScope.drawShadowUnderLineAndIntersectionPoint extension method used for drawing a shadow below the line graph points and also drawing intersection points on the line graph.

Link copied to clipboard
fun DrawScope.drawStraightOrCubicLine(pointsData: MutableList<Offset>, cubicPoints1: MutableList<Offset>, cubicPoints2: MutableList<Offset>, lineStyle: LineStyle): Path

DrawScope.drawStraightOrCubicLine extension method used for drawing a straight/cubic line for a given Point(x,y).

Link copied to clipboard

getCubicPoints method provides left and right average value for a given point to get a smooth curve.

Link copied to clipboard
fun getMappingPointsToGraph(lineChartPoints: List<Point>, xMin: Float, xOffset: Float, xLeft: Float, scrollOffset: Float, yBottom: Float, yMin: Float, yOffset: Float): MutableList<Offset>

returns the list of transformed points supported to be drawn on the container using the input points .

Link copied to clipboard
fun getMaxElementInYAxis(offset: Float, steps: Int): Float

returns total offset for given no of steps and offset .

Link copied to clipboard
fun getMaxScrollDistance(columnWidth: Float, xMax: Float, xMin: Float, xOffset: Float, paddingRight: Float, canvasWidth: Float, containerPaddingEnd: Float = 0.0f): Float

returns the max scrollable distance based on the points to be drawn along with padding etc.

Link copied to clipboard
fun getYAxisScale(points: List<Point>, steps: Int): Triple<Float, Float, Float>

returns Triple value with minY,maxY and scale of each Y-Axis step.

Link copied to clipboard
fun Offset.isTapped(tapOffset: Float, xOffset: Float): Boolean

Returns true if the given tap offset is selected point or not else false

Link copied to clipboard
fun LineChart(modifier: Modifier, lineChartData: LineChartData)

LineChart compose method used for drawing a Line Chart.