彻底改版2.0
This commit is contained in:
18
third/miniblink/file/demo.html
Normal file
18
third/miniblink/file/demo.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
function onClicked() {
|
||||
//alert('hello');
|
||||
document.getElementById('label').innerHTML = '确实不错哦';
|
||||
objName_receiveData('type','data');
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Hello World</h1>
|
||||
<p>Hello World</p>
|
||||
<label id='label'>今天天气真棒</label>
|
||||
<input type="button" value="发送数据给Qt" onclick="onClicked()" />
|
||||
</body>
|
||||
</html>
|
||||
32
third/miniblink/file/echarts.min.js
vendored
Normal file
32
third/miniblink/file/echarts.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
38
third/miniblink/file/gauge.html
Normal file
38
third/miniblink/file/gauge.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>ECharts</title>
|
||||
<script src="echarts.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main" style="height:500px;"></div>
|
||||
<script type="text/javascript">
|
||||
var myChart = echarts.init(document.getElementById('main'));
|
||||
function setGaugeValue(value){
|
||||
var option = {
|
||||
tooltip : {
|
||||
formatter: "{a} <br/>{b} : {c}%"
|
||||
},
|
||||
toolbox: {
|
||||
feature: {
|
||||
restore: {},
|
||||
saveAsImage: {}
|
||||
}
|
||||
},
|
||||
series: [
|
||||
{
|
||||
name: '业务指标',
|
||||
type: 'gauge',
|
||||
detail: {formatter:'{value}%'},
|
||||
data: [{value: value, name: '完成率'}]
|
||||
}
|
||||
]
|
||||
};
|
||||
myChart.setOption(option);
|
||||
}
|
||||
window.onresize = myChart.resize;
|
||||
setGaugeValue(68);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user