22
33## 项目简介
44
5- UCharts 是一款高性能、易用的图表库 ,现已适配 HarmonyOS 平台。支持多种常用图表类型,满足鸿蒙应用的数据可视化需求。
5+ UCharts 是一款类型丰富、高性能、可扩展、支持主题定制的图表库 ,现已适配 HarmonyOS 平台。支持多种常用图表类型,满足鸿蒙应用的数据可视化需求。
66
77## 特性
88
@@ -26,6 +26,8 @@ UCharts 是一款高性能、易用的图表库,现已适配 HarmonyOS 平台
2626- ** 饼状图 (pie)**
2727- ** 环形图 (ring)**
2828- ** 玫瑰图 (rose)**
29+ - ** 雷达图 (radar)**
30+ - ** 词云图 (word)**
2931- ** 更多类型持续开发中...**
3032
3133## 图表示例
@@ -34,33 +36,41 @@ UCharts 是一款高性能、易用的图表库,现已适配 HarmonyOS 平台
3436
3537- 柱状图
3638
37- ![ 柱状图] ( ./example/ column.png) ![ 柱状图] ( ./example /column3.png)
39+ ![ 柱状图] ( https://junbin-yang.github.io/uCharts-v3/docs/image/ column.png) ![ 柱状图] ( https://junbin-yang.github.io/uCharts-v3/docs/image /column3.png)
3840
3941- 区域图
4042
41- ![ 区域图] ( ./example/ area1.png) ![ 区域图] ( ./example /area2.png)
43+ ![ 区域图] ( https://junbin-yang.github.io/uCharts-v3/docs/image/ area1.png) ![ 区域图] ( https://junbin-yang.github.io/uCharts-v3/docs/image /area2.png)
4244
4345- 山峰图
4446
45- ![ 山峰图] ( ./example/ mount1.png) ![ 山峰图] ( ./example /mount2.png)
47+ ![ 山峰图] ( https://junbin-yang.github.io/uCharts-v3/docs/image/ mount1.png) ![ 山峰图] ( https://junbin-yang.github.io/uCharts-v3/docs/image /mount2.png)
4648
4749- 散点图
4850
49- ![ 散点图] ( ./example /scatter.png)
51+ ![ 散点图] ( https://junbin-yang.github.io/uCharts-v3/docs/image /scatter.png)
5052
5153- 气泡图
5254
53- ![ 气泡图] ( ./example /bubble.png)
55+ ![ 气泡图] ( https://junbin-yang.github.io/uCharts-v3/docs/image /bubble.png)
5456
5557- 饼图
5658
57- ![ 饼图] ( ./example /piepng.png)
59+ ![ 饼图] ( https://junbin-yang.github.io/uCharts-v3/docs/image /piepng.png)
5860
5961- 玫瑰图
6062
61- ![ 玫瑰图] ( ./example /rose.png)
63+ ![ 玫瑰图] ( https://junbin-yang.github.io/uCharts-v3/docs/image /rose.png)
6264
63- (更多类型和样式可参考 example 目录)
65+ - 雷达图
66+
67+ ![ 雷达图] ( https://junbin-yang.github.io/uCharts-v3/docs/image/radar.png )
68+
69+ - 词云图
70+
71+ ![ 词云图] ( https://junbin-yang.github.io/uCharts-v3/docs/image/word1.png ) ![ 词云图] ( https://junbin-yang.github.io/uCharts-v3/docs/image/word2.png )
72+
73+ (更多类型和样式可参考 docs 目录)
6474
6575## 下载安装
6676
@@ -127,6 +137,25 @@ struct Index {
127137}
128138```
129139
140+ ## 状态管理V2
141+
142+ ``` typescript
143+ import { UChartsV2 , UChartsControllerV2 } from ' @ibestservices/ucharts'
144+
145+ @Entry
146+ @ComponentV2
147+ struct Index {
148+ @Local chart : UChartsControllerV2 = new UChartsControllerV2 (this .opts );
149+ build () {
150+ Column (){
151+ UChartsV2 ({ controller: this .chart })
152+ }
153+ .height (' 100%' )
154+ .width (' 100%' )
155+ }
156+ }
157+ ```
158+
130159## API 文档
131160
132161详见[ 文档] ( https://github.com/junbin-yang/uCharts-v3/tree/master/docs ) 目录。
0 commit comments