2020-03-07 19:53:58 +08:00
|
|
|
|
# DataGear
|
2020-01-30 17:59:55 +08:00
|
|
|
|
|
2020-09-17 09:18:57 +08:00
|
|
|
|
DataGear是一款数据可视化分析平台,使用Java语言开发,采用浏览器/服务器架构,支持SQL、CSV、Excel、HTTP接口、JSON等多种数据源,
|
2020-02-08 13:48:26 +08:00
|
|
|
|
主要功能包括数据管理、SQL工作台、数据导入/导出、数据集管理、图表管理、看板管理等。
|
2020-01-30 17:59:55 +08:00
|
|
|
|
|
2020-10-12 11:33:49 +08:00
|
|
|
|
## [DataGear 1.13.0 已发布,欢迎官网下载使用!](http://www.datagear.tech)
|
2020-02-19 10:55:20 +08:00
|
|
|
|
|
2020-05-30 19:17:59 +08:00
|
|
|
|
## 系统特点
|
2020-05-30 19:04:50 +08:00
|
|
|
|
|
2020-05-30 19:17:59 +08:00
|
|
|
|
- 可管理数据库驱动
|
2020-09-13 19:19:15 +08:00
|
|
|
|
<br>可通过驱动程序管理功能添加数据库驱动程序,无需重启,即可支持连接新数据库。
|
2020-05-30 19:04:50 +08:00
|
|
|
|
|
2020-09-13 19:19:15 +08:00
|
|
|
|
- 多种格式的数据集
|
|
|
|
|
<br>支持SQL、CSV、Excel、HTTP接口、JSON等多种格式的数据集。
|
2020-05-30 19:04:50 +08:00
|
|
|
|
|
2020-09-13 19:19:15 +08:00
|
|
|
|
- 多数据集聚合图表
|
|
|
|
|
<br>一个图表可添加多个不同格式的数据集,将它们聚合展示。
|
2020-05-30 19:04:50 +08:00
|
|
|
|
|
2020-05-30 19:17:59 +08:00
|
|
|
|
- 插件式图表类型
|
2020-09-13 19:19:15 +08:00
|
|
|
|
<br>每一种类型的图表都以图表插件形式提供,并内置了大量图表插件,管理员也可上传自定义图表插件,丰富系统图表类型。
|
2020-05-30 19:04:50 +08:00
|
|
|
|
|
2020-07-13 10:23:34 +08:00
|
|
|
|
- 可自由编辑的HTML看板模板
|
2020-06-05 09:56:48 +08:00
|
|
|
|
<br>看板使用原生的HTML网页作为模板,可自由编辑、绑定、异步加载图表,并支持将任意HTML网页导入为看板。
|
2020-05-30 19:04:50 +08:00
|
|
|
|
|
2020-07-13 10:23:34 +08:00
|
|
|
|
- 丰富的看板API
|
|
|
|
|
<br>看板页面内置了大量的页面端API,可用于个性化扩展看板功能。
|
|
|
|
|
|
2020-08-15 15:57:29 +08:00
|
|
|
|
## 架构图
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/architecture.png](https://gitee.com/datagear/datagear/raw/master/screenshot/architecture.png)
|
2020-08-15 15:57:29 +08:00
|
|
|
|
|
2020-01-30 17:59:55 +08:00
|
|
|
|
## 官网
|
|
|
|
|
|
|
|
|
|
[http://www.datagear.tech](http://www.datagear.tech)
|
|
|
|
|
|
|
|
|
|
## 文档
|
|
|
|
|
|
|
|
|
|
[http://www.datagear.tech/documentation](http://www.datagear.tech/documentation)
|
|
|
|
|
|
2020-06-07 17:08:32 +08:00
|
|
|
|
## 交流
|
|
|
|
|
|
2020-10-04 14:55:00 +08:00
|
|
|
|
QQ群:[916083747(已满)](https://jq.qq.com/?_wv=1027&k=ODxiKOOy)、[1128360199](https://jq.qq.com/?_wv=1027&k=XkQ4ARMY)
|
2020-06-07 17:08:32 +08:00
|
|
|
|
|
2020-06-07 17:11:55 +08:00
|
|
|
|
留言板:[http://www.datagear.tech/messageboard](http://www.datagear.tech/messageboard/)
|
|
|
|
|
|
2020-01-30 17:59:55 +08:00
|
|
|
|
## 界面
|
|
|
|
|
|
|
|
|
|
数据管理
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/datamanage.png](https://gitee.com/datagear/datagear/raw/master/screenshot/datamanage.png)
|
2020-01-30 17:59:55 +08:00
|
|
|
|
|
|
|
|
|
SQL工作台
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/sqlpad.png](https://gitee.com/datagear/datagear/raw/master/screenshot/sqlpad.png)
|
2020-02-13 14:19:15 +08:00
|
|
|
|
|
|
|
|
|
图表
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/chart.png](https://gitee.com/datagear/datagear/raw/master/screenshot/chart.png)
|
2020-02-13 14:19:15 +08:00
|
|
|
|
|
2020-07-29 22:15:19 +08:00
|
|
|
|
图表-数据集参数
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/chart-interaction.png](https://gitee.com/datagear/datagear/raw/master/screenshot/chart-interaction.png)
|
2020-07-29 19:29:12 +08:00
|
|
|
|
|
2020-02-13 14:19:15 +08:00
|
|
|
|
看板
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-simple.png](https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-simple.png)
|
2020-01-30 17:59:55 +08:00
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-darkblue.png](https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-darkblue.png)
|
2020-02-19 10:55:20 +08:00
|
|
|
|
|
2020-07-29 19:29:12 +08:00
|
|
|
|
看板-图表联动
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-map-chart-link.gif](https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-map-chart-link.gif)
|
2020-07-29 19:29:12 +08:00
|
|
|
|
|
2020-08-18 13:52:23 +08:00
|
|
|
|
看板-时序图表
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-time-series-chart.gif](https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-time-series-chart.gif)
|
2020-08-18 13:52:23 +08:00
|
|
|
|
|
2020-08-25 16:19:13 +08:00
|
|
|
|
看板-钻取
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-map-chart-hierarchy.gif](https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-map-chart-hierarchy.gif)
|
2020-08-25 16:19:13 +08:00
|
|
|
|
|
2020-07-29 19:29:12 +08:00
|
|
|
|
看板-表单
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-form.gif](https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-form.gif)
|
2020-07-29 19:29:12 +08:00
|
|
|
|
|
2020-10-12 19:28:17 +08:00
|
|
|
|
看板-表格轮播
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-table-carousel.gif](https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-table-carousel.gif)
|
2020-10-12 19:28:17 +08:00
|
|
|
|
|
|
|
|
|
看板-联动异步加载图表
|
|
|
|
|
|
2020-10-16 17:16:06 +08:00
|
|
|
|
![https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-link-load-chart.gif](https://gitee.com/datagear/datagear/raw/master/screenshot/dashboard-link-load-chart.gif)
|
2020-10-12 19:28:17 +08:00
|
|
|
|
|
|
|
|
|
[更多示例...](https://my.oschina.net/u/4035217)
|
|
|
|
|
|
2020-01-30 17:59:55 +08:00
|
|
|
|
## 依赖
|
|
|
|
|
|
2020-03-11 18:54:53 +08:00
|
|
|
|
Java 8+
|
2020-01-30 17:59:55 +08:00
|
|
|
|
Servlet 3.0+
|
|
|
|
|
|
|
|
|
|
## 编译
|
|
|
|
|
|
|
|
|
|
(执行单元测试编译,需要预先配置单元测试环境)
|
|
|
|
|
mvn clean package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(不执行单元测试编译,无需预先配置单元测试环境)
|
|
|
|
|
mvn clean package -DskipTests
|
|
|
|
|
|
|
|
|
|
## 运行
|
|
|
|
|
|
|
|
|
|
cd datagear-webappembd/target/datagear-[version]
|
|
|
|
|
|
|
|
|
|
(Linux环境)
|
|
|
|
|
./startup.sh
|
|
|
|
|
|
|
|
|
|
(windows环境)
|
|
|
|
|
startup.bat
|
2020-05-15 18:35:17 +08:00
|
|
|
|
|
|
|
|
|
## 调试
|
|
|
|
|
|
|
|
|
|
1. 将datagear以maven工程导入至IDE工具;
|
|
|
|
|
2. 将datagear-webapp作为Web应用添加至servlet容器(比如Tomcat);
|
|
|
|
|
3. 以调试模式运行Servlet容器。
|
2020-08-13 17:45:00 +08:00
|
|
|
|
|
|
|
|
|
## 调试注意
|
|
|
|
|
|
2020-09-04 10:05:09 +08:00
|
|
|
|
在调试开发分支前(`dev-*`),建议先备份DataGear工作目录(`[用户主目录]/.datagear`),
|
2020-08-13 17:45:00 +08:00
|
|
|
|
因为开发分支程序启动时会修改DataGear工作目录,可能会导致先前使用的正式版程序、以及后续发布的正式版程序无法正常启动。
|
|
|
|
|
|
|
|
|
|
调试时,系统仅会在第一次启动时升级内置数据库(Derby),如果遇到内置数据库访问异常,需要查看
|
|
|
|
|
|
|
|
|
|
datagear-management/src/main/resources/org/datagear/management/ddl/datagear.sql
|
|
|
|
|
|
|
|
|
|
文件,从中查找需要更新的SQL语句,手动更新至内置数据库。
|
|
|
|
|
|
|
|
|
|
系统自带了一个可用于为内置数据库执行SQL语句的简单工具类`org.datagear.web.util.DerbySqlClient`,可以在IDE中直接运行。注意:运行前需要先停止DataGear程序。
|