explaingit

xcharts-team/xcharts

Analysis updated 2026-07-03

3,744C#Audience · developerComplexity · 3/5LicenseSetup · moderate

TLDR

XCharts is a Unity data visualization library that draws charts entirely through code, line, bar, pie, radar, candlestick, and more, all configurable in the Unity editor inspector with real-time preview and no image assets required.

Mindmap

mindmap
  root((xcharts))
    Chart types
      Line and bar
      Pie and radar
      Candlestick K-line
      Scatter and heatmap
    Extension charts
      3D pie and bar
      Sankey and treemap
      Gantt and gauge
    Configuration
      Unity inspector
      Real time preview
      Runtime code API
    Features
      20k data points
      Downsampling
      Zoom and tooltips
      Themes and animations
    Licensing
      MIT core library
      Paid extension VIP
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add live line charts, bar charts, or pie charts to a Unity UI dashboard without any image files or custom shaders

USE CASE 2

Display large data sets with up to 20,000 points per chart, zoom controls, and hover detail tooltips

USE CASE 3

Build a data dashboard in a Unity app using tables, stat counters, gauge dials, and Gantt charts from one library

USE CASE 4

Configure chart colors, labels, legends, and animations entirely from the Unity inspector and preview changes instantly

What is it built with?

C#UnityUGUITextMeshPro

How does it compare?

xcharts-team/xchartsunity-technologies/postprocessingyck1509/confuserex
Stars3,7443,7413,750
LanguageC#C#C#
Setup difficultymoderateeasymoderate
Complexity3/52/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires an existing Unity project (5.6 or newer), 3D charts, Sankey diagrams, treemaps, and other advanced visuals need a paid VIP or SVIP subscription.

The core library is MIT and free for commercial use, advanced extension charts (3D, Sankey, Gantt, treemap) require a paid VIP or SVIP subscription.

In plain English

XCharts is a data visualization library for Unity, written in C#. It lets developers add charts and graphs directly to Unity applications without needing image files or special shaders: everything is drawn through code using Unity's built-in UI system (UGUI). The library includes more than ten chart types out of the box, covering line charts, bar charts, pie charts, radar charts, scatter plots, heat maps, ring charts, K-line (candlestick) charts, polar coordinates, and parallel coordinates. A separate set of extension charts adds more complex visuals like 3D pie and bar charts, funnel charts, gauge dials, water-level indicators, Gantt charts, treemaps, Sankey diagrams, and relational graphs. Additional UI components include tables, stat counters, sliders, and progress bars. Configuration happens inside the Unity editor with real-time preview. Developers can adjust colors, labels, legends, tooltips, zoom regions, and visual mappings from the inspector panel, and can also change everything at runtime through code. The library handles large data sets, supporting around 20,000 data points per line chart with optional downsampling for smoother performance on slower machines. Themes, animations, and interaction behaviors are all included. Charts can fade in, respond to data filtering, allow view zooming, and show detail tooltips on hover. Multiple chart types can share a single component, and the library works with Unity's TextMeshPro text system and the newer Input System added in recent Unity versions. The core library uses an MIT license and is free for commercial use. Extension chart types and advanced UI components are available through a paid VIP or SVIP subscription. The library supports Unity 5.6 and above on all platforms that Unity targets. Demo examples live in a separate GitHub repository rather than this one.

Copy-paste prompts

Prompt 1
Add a real-time line chart to my Unity UI using XCharts that updates with a new data point every second, shows 100 points at a time, and displays a tooltip on hover.
Prompt 2
Show me how to set up an XCharts pie chart in the Unity inspector with custom slice colors, percentage labels, and a click-to-filter legend.
Prompt 3
I have 15,000 data points for an XCharts line chart. Show me how to enable downsampling so it stays smooth on low-end mobile devices.
Prompt 4
Write a Unity C# script that creates an XCharts bar chart at runtime, populates it from a data array, and animates the bars fading in on scene start.
Prompt 5
How do I apply a custom color theme to all XCharts charts in my Unity project so they match my game's UI palette and use a specific font?

Frequently asked questions

What is xcharts?

XCharts is a Unity data visualization library that draws charts entirely through code, line, bar, pie, radar, candlestick, and more, all configurable in the Unity editor inspector with real-time preview and no image assets required.

What language is xcharts written in?

Mainly C#. The stack also includes C#, Unity, UGUI.

What license does xcharts use?

The core library is MIT and free for commercial use, advanced extension charts (3D, Sankey, Gantt, treemap) require a paid VIP or SVIP subscription.

How hard is xcharts to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is xcharts for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub xcharts-team on gitmyhub

Verify against the repo before relying on details.