Skip to content

Commit

Permalink
statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
LogCreative committed Mar 3, 2021
1 parent d03716b commit c661bf5
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
<div>
<tr>
<td>增补参数</td>
<td><input type="text" class="param" v-model="param" @keyup="onpachange" placeholder="参数" @focus="param_focused" @blur="param_losefocus"></td>
<td><input type="text" class="surparam" v-model="param" @keyup="onpachange" placeholder="参数" @focus="param_focused" @blur="param_losefocus"></td>
</tr>
<parambar ref="subparambar" :global="true" v-show="paramfoc" :command="command" :etd="ontd"></parambar>
</div>
Expand Down
14 changes: 14 additions & 0 deletions lang/sparamdic_cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,18 @@ var plotmarksDic = {
"ball": ["球","url",""],
"cube": ["方块","url",""],
"cube*": ["填充方块","url",""],
};

// 统计库增补字典
var statisticsDic = {
"boxplot": ["箱形图"],
"boxplot prepared": ["有标定的箱型图",{
"{lower whisker=,lower quartile=,median=,upper quartile=,upper whisker=}": ["下界,下四分位点,中位数,上四分位点,上界","url",""],
}],
"hist": ["直方图",{
"{bins=}": ["直方箱数","url",""],
"{data=}": ["数据列","none",""],
"cumulative": ["累积直方图","url",""],
"density": ["密度直方图","url",""],
}],
};
8 changes: 8 additions & 0 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ footer{
width: 60px;
}

.surparam{
width: 150px;
}

.coord{
width: 80px;
}
Expand Down Expand Up @@ -316,6 +320,10 @@ input[type=text]{
width: 150px;
}

.surparam:focus{
width: 250px;
}

.matchkey,.matchnote {
display: inline-table;
}
Expand Down
8 changes: 7 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,18 @@ Vue.component('lib',{
if(this.id==1)
for(var key in plotmarksDic)
sparamDic["mark"][1][key] = plotmarksDic[key];
else if (this.id==4)
for(var key in statisticsDic)
sparamDic[key] = statisticsDic[key];
}
else{
delete app.packages[this.id];
if(this.id==1)
for(var key in plotmarksDic)
delete sparamDic["mark"][1][key];
else if(this.id==4)
for(var key in statisticsDic)
delete sparamDic[key];
}
updatePkg();
if(this.id)
Expand Down Expand Up @@ -77,7 +83,7 @@ var updateSeries = function(){

var getUnwrappedCommand = function (_wrap_comm) {
return _wrap_comm.replace(/<\/?.+?\/?>/g,'');
}
};

// 参数工具栏(子组件)
var parambar = Vue.component('parambar',{
Expand Down

0 comments on commit c661bf5

Please sign in to comment.