Browse Source

Added chart export button

Dmitry Yu Okunev 3 years ago
parent
commit
c2607ddd75

+ 3 - 0
.gitmodules

@@ -7,3 +7,6 @@
 [submodule "server/httpsite/public/3rdparty/amcharts3"]
 	path = server/httpsite/public/3rdparty/amcharts3
 	url = https://github.com/amcharts/amcharts3
+[submodule "server/httpsite/public/3rdparty/amcharts-export"]
+	path = server/httpsite/public/3rdparty/amcharts-export
+	url = https://github.com/amcharts/export

+ 2 - 0
server/httpsite/app/views/header.html

@@ -8,10 +8,12 @@
 		<link rel="stylesheet" type="text/css" href="/public/css/bootstrap-3.3.6.min.css">
 		<link rel="stylesheet" type="text/css" href="/public/css/dc-sensors.css">
 		<link rel="shortcut icon" type="image/png" href="/public/img/favicon.ico">
+		<link type="text/css" href="/public/3rdparty/amcharts-export/export.css" rel="stylesheet">
 		<script src="/public/js/jquery-2.2.4.min.js"></script>
 		<script src="/public/js/bootstrap-3.3.6.min.js"></script>
 		<script src="/public/3rdparty/amcharts3/amcharts/amcharts.js"></script>
 		<script src="/public/3rdparty/amcharts3/amcharts/serial.js"></script>
+		<script src="/public/3rdparty/amcharts-export/export.min.js"></script>
 		{{range .moreStyles}}
 			<link rel="stylesheet" type="text/css" href="/public/{{.}}">
 		{{end}}

+ 1 - 0
server/httpsite/public/3rdparty/amcharts-export

@@ -0,0 +1 @@
+Subproject commit d8ba795619e5b207fb0fd7d046e3a2a5ae43f0b1