XCharts

A charting and data visualization library for Unity. Unity数据可视化图表插件。

MIT License

Downloads
87
Stars
3K
Committers
9

Overview

A powerful and easy-to-use data visualization library for Unity. It supports more than ten built-in charts, including line, bar, pie, radar, scatter, heatmap, ring, candlestick, polar, parallel coordinates, as well as extended charts such as 3d pie, 3d bar, 3d pyramid, funnel, gauge, liquid, pictorialbar, gantt, treemap, sankey, line3d and graph chart.

Key Features

  • Pure Code Rendering: Charts are rendered with pure code, eliminating the need for extra texture or shader resources.
  • Visual Configuration: Configure parameters visually with real-time preview and support for dynamic configuration and data adjustments at runtime.
  • High Customizability: Themes and configuration parameters can be adjusted as needed, with support for custom drawing and callbacks.
  • Built-in and Extended Charts: Supports a variety of chart types, including 3D charts and special chart types like gauges and treemaps.
  • Multiple Chart Combinations: Combine multiple charts of the same or different types within a single instance.
  • Various Coordinate Systems: Supports different coordinate systems such as Cartesian, polar, and single axes.
  • Rich Components: Includes titles, legends, tooltips, and more.
  • Custom Drawing: Utilize a powerful API for custom drawing of points, lines, and other graphics.
  • Large Data Rendering: Capable of rendering tens of thousands of data points with support for sampling rendering.
  • Custom Themes: Customize themes and use the included light and dark default themes.
  • Animations and Interactions: Supports various animations and interactions for a dynamic user experience.
  • Third-Party Extensions: Integrates with TextMeshPro and the New Input System.
  • Version and Compatibility: Compatible with all Unity versions above 5.6 and runs on all platforms.

Documentation

Screenshots

Important Notes

  • XCharts3.0 is not fully compatible with XCharts2.0. Upgrading to 3.0 may require code adjustments and reconfiguration of some charts.
  • XCharts2.0 is in the maintenance phase with only critical bug fixes applied.
  • While XCharts supports Unity 5.6 and above, compatibility issues may arise due to limited testing.
  • This repository contains only the XCharts source code. For demos, visit the XCharts-Demo repo or the Online Demo.

Getting Started

  1. Import the XCharts unitypackage or source code into your Unity project.
  2. Create a chart by right-clicking in the Hierarchy view and selecting UI->XCharts->LineChart.
  3. Adjust component parameters in the Inspector to see real-time effects in the Game view.
  4. For more details, refer to the 5-minute tutorial.

Branch Information

  • master indicates the development branch. The latest changes and new features are first committed to the master branch, and after some time from the master branch merge to the 3.0 branch, and the release version.
  • 3.0 Stable branch of XCharts 3.0. It is generally updated once a month, with the latest changes from the master branch merge, and the release version is released.
  • 2.0 A stable branch of XCharts 2.0. With Demo, currently no longer maintenance, only to modify serious bugs.
  • 2.0-upm Stable UMP branch of XCharts 2.0. Only the Package part is included without Demo. It is dedicated to the UMP and is not maintained.
  • 1.0 Stable branch of XCharts 1.0. With Demo, no maintenance.
  • 1.0-upm stable UMP branch of XCharts 1.0. No Demo, no maintenance.

FAQ

  • Is XCharts free to use? Yes, XCharts is free under the MIT license and includes value-added VIP services.
  • Does XCharts support dynamic data addition and modification? Yes, but data must be parsed or retrieved by the user.
  • Does this plugin work on platforms other than Unity? No, it is designed for Unity only.

Changelog

Licenses

Contact

Package Rankings
Top 16.15% on Npmjs.org