-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- need to test the read API, and write a web UI would save the time for writing e2e tests
- Loading branch information
Showing
3 changed files
with
100 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Web UI | ||
|
||
A simple UI using echarts | ||
|
||
## Ref | ||
|
||
- Line stack http://gallery.echartsjs.com/editor.html?c=line-stack | ||
- Dynamic time series http://gallery.echartsjs.com/editor.html?c=dynamic-data2 | ||
- Heat map (like GitHub strike) http://gallery.echartsjs.com/editor.html?c=calendar-heatmap | ||
- http://gallery.echartsjs.com/editor.html?c=mix-timeline-finance | ||
- http://gallery.echartsjs.com/editor.html?c=candlestick-sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Xephon-K UI</title> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/3.4.0/echarts.min.js"></script> | ||
</head> | ||
<body> | ||
<div id="canvas" style="width: 600px;height:400px;"></div> | ||
<script type="text/javascript"> | ||
var onlyChart = echarts.init(document.getElementById('canvas')); | ||
|
||
var option = { | ||
title: { | ||
text: 'stack lines' | ||
}, | ||
tooltip: {}, | ||
toolbox: { | ||
feature: { | ||
dataView: {show: true, readOnly: true}, | ||
magicType: {show: true, type: ['line', 'bar']}, | ||
restore: {show: true}, | ||
saveAsImage: {show: true} | ||
} | ||
}, | ||
legend: { | ||
data: ['Xephon-K(Mem)', 'Xephon-K(Cassandra)', 'KairosDB', 'InfluxDB'], | ||
// orient: 'vertical', | ||
orient: 'horizontal', | ||
// left: 'right', | ||
top: 'bottom' | ||
}, | ||
xAxis: { | ||
name: 'number of concurrent clients', | ||
nameLocation: 'middle', | ||
nameGap: 20, | ||
data: ["10", "100", "1000", "5000"] | ||
}, | ||
yAxis: { | ||
name: 'total requests' | ||
}, | ||
series: [ | ||
{ | ||
name: 'Xephon-K(Mem)', | ||
type: 'line', | ||
data: [12327, 21099, 31791, 12279] | ||
}, { | ||
name: 'Xephon-K(Cassandra)', | ||
type: 'line', | ||
data: [7931, 11336, 14590, 8703] | ||
}, | ||
{ | ||
name: 'KairosDB', | ||
type: 'line', | ||
data: [15561, 26154, 26939, 16506] | ||
}, | ||
{ | ||
name: 'InfluxDB', | ||
type: 'line', | ||
data: [118, 139, 131, 130] | ||
} | ||
] | ||
}; | ||
|
||
onlyChart.setOption(option); | ||
</script> | ||
</body> | ||
</html> |