/cchart

Android library providing an easy and flexible way to create charts in Jetpack Compose projects.

Primary LanguageKotlinApache License 2.0Apache-2.0

Compose chart

Flexible and simple library for creating charts using Jetpack Compose.

Note: currently this library is under development and is using some beta/alpha release components.

Image of the chart

How to use cchart

You can find the documentation here staakk.github.io/cchart/

Add the following dependencies to your project:

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}
dependencies {
        implementation "com.github.staakk:cchart:$version"
}

Where version can be either a tag or a commit hash.

Examples

For example usage check out the samples.

Features

Some of the notable features are:

  • Support for panning and zooming
  • Built in renderers for the following the following types of charts:
    • Line
    • Point
    • Bars (including grouping of different series)
  • Easy to extend
  • Easy to add animations
  • Support for user defined grids and axes
  • Support for zooming and panning
  • Clickable data
  • Showing arbitrary compose views on the chart