mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 05:10:12 +00:00
51159db106d7d7bf2a811841cab47a7beafa48fa
XCharts
A powerful, easy-to-use, configurable charting and data visualization library for Unity. Support line charts, bar charts, pie charts, radar charts, scatter charts, heatmaps, gauge, ring charts and other common charts.
Features
- Rich built-in examples and templates, parameter visualization configuration, effect real-time preview, pure code drawing.
- Support line charts, bar charts, pie charts, radar charts, scatter charts, heatmaps, gauge charts, ring charts and other common charts.
- Support line graph, curve graph, area graph, step graph, etc.
- Support parallel bar chart, stack bar chart, stack percentage bar chart, zebra bar chart, etc.
- Support for ring chart, rose chart and other pie chart.
- Support broken line graph - bar graph, scatter graph - broken line graph, etc.
- Support solid line, curve, ladder line, dotted line, dot line, dot line, double point line and other lines.
- Support custom theme, built-in theme switching.
- support custom chart content drawing, drawing points, line, curve, triangle, quadrilateral, circle, ring, sector, border, arrow and other drawing API.
- support interactive operations such as data filtering, view zooming and detail display on PC and mobile terminals.
- support 10,000-level big data rendering.
Environment
- Unity2017.4.27f1
- .Net 3.5
- macOS 10.15.4
Usage
-
This project was developed under
Unity 2017.4.27f1and.net 3.5, tested normally onUnity 5,Unity 2018andUnity 2019. It can theoretically run on any version that supportsUGUI. -
Download the source code or
unitypackageto import into your project. IfUnityversion are2018.3or above, it is recommended to import packages throughPackage Manager:- Open the
manifest.jsonfile underPackagesdirectory and add underdependencies:
"com.monitor1394.xcharts": "https://github.com/monitor1394/unity-ugui-XCharts.git#package",- Going back to
Unity, it may take 3 to 5 minutes to download. - If you want to delete
XCharts, just delete the content added in step 1. - If you want to update
XCharts, openmanifest.jsonfile , delete the content aboutcom.monitor1394.xchartsunderlock, it will download anagain. Also can check For update incomponents-> XCharts -> Check For Update.
- Open the
-
Add a chart in Editor quickly:
- In
Hierarchy, right-click menuXChart->LineChart. - In unity menu bar,
Component->XCharts->LineChart. - In
Inspector,Add Component->LineChart. - Then a simple line chart is done.
- In
Inspectoryou can adjust the parameters of components, and inGamewill feedback the adjustment effect in realtime 。the detail of parameters go to see: XCharts配置项手册.
- In
-
See more examples of code dynamic control: 教程:5分钟上手XCharts .
Documents
- XCharts主页
- 常见问题看这里☞ XCharts问答
- 接口文档看这里☞ XChartsAPI手册
- 参数配置看这里☞ XCharts配置项手册
- 更新日志看这里☞ XCharts更新日志
- 新手教程看这里☞ 教程:5分钟上手XCharts
Languages
C#
100%