qmetrics.net

MPAndroidChart

Android and Compose charting library for mobile apps

MPAndroidChart screenshot

MPAndroidChart is a Kotlin charting library for Android apps. It draws line, bar, pie, radar, bubble, candlestick, and related chart types in traditional views or Jetpack Compose.

Overview

MPAndroidChart gives Android developers embeddable chart and graph views for line, bar, pie, scatter, candlestick, bubble, radar, and combined layouts. The product was rebuilt in Kotlin with a property-based API and optional Jetpack Compose composables that mirror each chart type.

Charts share one mental model: entries hold values, data sets style a series, and a data object binds series to a chart. You can pinch-zoom, drag, highlight entries, show markers, animate updates, and format axes, legends, and grids. Large line datasets are intended to stay responsive through buffered drawing and viewport culling, and entries can carry custom typed payloads for selection callbacks.

Integration is a library dependency distributed via JitPack, with separate artifacts for classic views and Compose. Java callers can use the view module without Kotlin in their own code, while Compose setups use chart state for selection, zoom, and animation helpers. Charts can export to bitmaps or the device gallery when the app needs sharing or offline copies.

Compared with using only platform drawing code, MPAndroidChart concentrates chart-specific interaction and styling in one package. A sibling Charts library on iOS provides the iOS counterpart; MPAndroidChart is the Android library.

Key features

  • Nine chart types with shared data model
  • Jetpack Compose module with chart state
  • Zoom, drag, highlight, and markers
  • Property-based Kotlin styling API
  • Animations on axes and data changes
  • Handles large point counts on line charts
  • Typed payloads on chart entries
  • Bitmap and gallery export

Use cases

  • Sales and metrics dashboards in Android apps
  • Financial candlestick and trend views
  • In-app analytics without custom canvas code
  • Compose-first mobile UIs needing charts
  • Example-driven learning from bundled demo app

Tags

Similar software

Mermaid

Text-defined diagrams from Markdown-like syntax

Mermaid turns plain-text diagram definitions into flowcharts, sequence charts, Gantt charts, and many other diagram types. It renders in browsers, documentation tools, and GitHub Markdown.

  • Twenty-plus diagram types
  • Markdown-inspired text syntax
  • Themes and layout customization
TypeScriptCLIDetails →
★ 91.3k⟳ todayMIT
Open Source Alternative to:Google DrawingsVisio

Chart.js

Flexible JavaScript charting library for HTML5 canvas

Chart.js draws animated, customizable charts in the browser using JavaScript and the canvas element, aimed at designers and developers.

  • Multiple animated chart types
  • HTML5 canvas rendering
  • Responsive resize handling
JavaScriptDetails →
★ 67.9k⟳ 4 days agoMIT

xyflow

Node-based UI libraries for React, Svelte, and Vue

xyflow maintains React Flow, Svelte Flow, and Vue Flow—libraries for building customizable node-based editors and interactive diagrams in those frameworks.

  • React, Svelte, and Vue graph libraries
  • Shared @xyflow/system utilities
  • Customizable nodes and edges
TypeScriptDetails →
★ 39.3k⟳ yesterdayMIT

Recharts

Composable React chart library built on SVG and D3

Recharts helps React apps render charts from declarative components such as axes, grids, legends, and series. It targets native SVG output with a small D3 footprint and installs via npm, Deno, or UMD.

  • Declarative React chart components
  • SVG-based rendering
  • Lightweight D3 submodule usage
TypeScriptDetails →
★ 27.9k⟳ todayMIT

Motion Canvas

TypeScript animation library with web sync editor

Motion Canvas pairs a TypeScript animation library with a browser editor for live previews. It targets informative vector animations timed to voice-overs.

  • Generator-based animation API
  • Real-time preview in editor
  • Voice-over synchronization
TypeScriptWebDetails →
★ 20.7k⟳ 5 months agoMIT

Bokeh

Python library for interactive browser-based charts and dashboards

Bokeh builds interactive plots, layouts, and data apps in Python that render in modern browsers, with streaming updates, widgets, and optional server callbacks.

  • High- and low-level plotting APIs
  • Pan, zoom, hover, and linked brushing
  • Streaming and patched data sources
TypeScriptWebDetails →
★ 20.5k⟳ todayBSD-3-Clause