Jetpack Compose Doughnut Chart with Source Code

jetpack compose charts

This is a doughnut chart made with Android Jetpack Compose. It utilizes the power of Canvas API to draw the arc segments. You can download the source code for free below. Each arc contains a different color. I have also added a legend below the chart. You can pass the colors using the colors parameter. … Read more

Jetpack Compose Circular Chart with Source Code

jetpack compose circular chart

This is a custom circular chart made with Android Jetpack Compose. It is made with Canvas API for drawing arcs. It also displays legend using Box and Text APIs. The Jetpack Compose circular chart takes multiple parameters. They are values, colors, and legend. values are the actual chart values. colors are used to display the … Read more

Jetpack Compose Pie Chart with Source Code

jetpack compose pie chart

This is a pie chart designed with Android Jetpack Compose. It doesn’t use any chart library like MPAndroidChart. Instead, it is made with Canvas API. Pie chart is nothing but a combination of arcs. I have drawn them using the drawArc method of Canvas API. I set the different colors to different arcs. It also … Read more