Skip to content

Commit 76ef6d9

Browse files
282764407@qq.com282764407@qq.com
authored andcommitted
feat(地图)
1 parent 9d4a4ad commit 76ef6d9

87 files changed

Lines changed: 3039 additions & 1217 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ UCharts 是一个基于 TypeScript 实现的类型丰富、高性能、模块化
3333
- **仪表盘 (gauge)**
3434
- **漏斗图 (funnel)**
3535
- **K线图 (candle)**
36+
- **地图 (map)**
3637
- **更多类型持续开发中...**
3738

3839
## 图表示例

adapters/platform/harmony/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,13 @@ UCharts 是一款类型丰富、高性能、可扩展、支持主题定制的图
3232
- **仪表盘 (gauge)**
3333
- **漏斗图 (funnel)**
3434
- **K线图 (candle)**
35+
- **地图 (map)**
3536
- **更多类型持续开发中...**
3637

38+
## 体验预览
39+
40+
升级到 HarmonyOS NEXT 的手机, 可在应用商店搜索 `best``ibest` 关键字, 下载第一个名为 `IBest-UI` 的应用, 即可体验。
41+
3742
## 下载安装
3843

3944
```ts
@@ -108,6 +113,14 @@ struct Index {
108113
- 本库专为 HarmonyOS 平台适配,充分利用鸿蒙 Canvas 绘图能力。
109114
- 如需自定义扩展,可参考 adapters/platform/harmony 目录下的适配代码。
110115

116+
## 官方生态
117+
118+
| 项目 | 描述 | |
119+
|:-------------------------|:-----------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------|
120+
| @ibestservices/ibest_ui | 一个**轻量、简单易用、可定制主题、支持深色模式和浅色模式**的鸿蒙开源UI组件库。 | <a style="color:#0366d6;" onclick="openPage('https://ohpm.openharmony.cn/#/cn/detail/@ibestservices%2Fibest-ui')">地址</a> |
121+
| @ibestservices/ibest_ui_v2 | 一个**轻量、简单易用、可定制主题、支持深色模式和浅色模式**的鸿蒙开源UI组件库,基于状态管理v2版本。 | <a style="color:#0366d6;" onclick="openPage('https://ohpm.openharmony.cn/#/cn/detail/@ibestservices%2Fibest-ui-v2')">地址</a> |
122+
| @ibestservices/area-data | 中国省市区数据,适用于鸿蒙 ArkUI 的 TextPicker 和 IBest-UI 的 IBestCascader 等组件。 | <a style="color:#0366d6;" onclick="openPage('https://ohpm.openharmony.cn/#/cn/detail/@ibestservices%2Farea-data')">地址</a> |
123+
111124
## 链接
112125
- [Github](https://github.com/junbin-yang/uCharts-v3)
113126
- [Gitee](https://gitee.com/uCharts/uCharts-v3)

adapters/platform/harmony/entry/src/main/ets/pages/ArcbarChart.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export struct ArcBarChart {
3838
}) {
3939
UCharts({controller: item.ctl, onReady: () => {
4040
item.ctl.updateData(item.opts)
41-
}}).height(260)
41+
}})
4242

4343
//CollapseAndExpand({ value: GetColumnDemoCodeStr(index) })
4444
}

adapters/platform/harmony/entry/src/main/ets/pages/AreaChart.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export struct AreaChart {
3838
}) {
3939
UCharts({controller: item.ctl, onReady: () => {
4040
item.ctl.updateData(item.opts)
41-
}}).height(260)
41+
}})
4242

4343
//CollapseAndExpand({ value: GetColumnDemoCodeStr(index) })
4444
}

adapters/platform/harmony/entry/src/main/ets/pages/BarChart.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export struct BarChart {
3838
}) {
3939
UCharts({controller: item.ctl, onReady: () => {
4040
item.ctl.updateData(item.opts)
41-
}}).height(260)
41+
}})
4242

4343
//CollapseAndExpand({ value: GetColumnDemoCodeStr(index) })
4444
}

adapters/platform/harmony/entry/src/main/ets/pages/BubbleChart.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export struct BubbleChart {
3838
}) {
3939
UCharts({controller: item.ctl, onReady: () => {
4040
item.ctl.updateData(item.opts)
41-
}}).height(260)
41+
}})
4242

4343
//CollapseAndExpand({ value: GetColumnDemoCodeStr(index) })
4444
}

adapters/platform/harmony/entry/src/main/ets/pages/CandleChart.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export struct CandleChart {
3838
}) {
3939
UCharts({controller: item.ctl, onReady: () => {
4040
item.ctl.updateData(item.opts)
41-
}}).height(260)
41+
}})
4242

4343
//CollapseAndExpand({ value: GetColumnDemoCodeStr(index) })
4444
}

adapters/platform/harmony/entry/src/main/ets/pages/ColumnChart.ets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export struct ColumnChart {
6363
wrap: FlexWrap.Wrap,
6464
space: { main: LengthMetrics.vp(12), cross: LengthMetrics.vp(12) }
6565
}) {
66-
UCharts({controller: this.easyChart}).height(260)
66+
UCharts({controller: this.easyChart})
6767
CollapseAndExpand({ value: GetColumnDemoCodeStr(-1) })
6868
}
6969
}
@@ -77,7 +77,7 @@ export struct ColumnChart {
7777
}) {
7878
UCharts({controller: item.ctl, onReady: () => {
7979
item.ctl.updateData(item.opts)
80-
}}).height(260)
80+
}})
8181

8282
CollapseAndExpand({ value: GetColumnDemoCodeStr(index) })
8383
}
@@ -121,7 +121,7 @@ const SetColumnChartDemo = () => {
121121
extra: {
122122
column: {
123123
type: "group",
124-
width: 30,
124+
width: 40,
125125
activeBgColor: "#000000",
126126
activeBgOpacity: 0.08
127127
}

adapters/platform/harmony/entry/src/main/ets/pages/FunnelChart.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export struct FunnelChart {
3838
}) {
3939
UCharts({controller: item.ctl, onReady: () => {
4040
item.ctl.updateData(item.opts)
41-
}}).height(260)
41+
}})
4242

4343
//CollapseAndExpand({ value: GetColumnDemoCodeStr(index) })
4444
}

adapters/platform/harmony/entry/src/main/ets/pages/GaugeChart.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export struct GaugeChart {
3838
}) {
3939
UCharts({controller: item.ctl, onReady: () => {
4040
item.ctl.updateData(item.opts)
41-
}}).height(260)
41+
}})
4242

4343
//CollapseAndExpand({ value: GetColumnDemoCodeStr(index) })
4444
}

0 commit comments

Comments
 (0)