Browse Source

质量检测

master
songguoqiang 11 months ago
parent
commit
bb9783fe0a
  1. 12
      src/views/tjanalysis/zlanalysis/components/ztfbview.vue

12
src/views/tjanalysis/zlanalysis/components/ztfbview.vue

@ -132,7 +132,7 @@ const getYArr = async (maxX,xMax , xMin , mean , stdev,pingjun,max:number) => {
}
let beishu =Math.floor((max+25)/(Number(pingjun)));//线+42/ 线
var distance = xMax - xMin //线
for (var j = xMin + distance / 4; j < maxX-distance / 4; j += jj) {
for (var j = xMin + distance / 4; j < maxX; j += jj) {
//for (var j = xMin + distance / 4; j < xMax-distance / 4; j += 0.01) {
var xy = [j, func(j, mean, stdev)*beishu]
//var xy = [j, pdf(j, mean, stdev)]
@ -209,7 +209,7 @@ function setEchartData(xMin , xMax , yArr , fArr , threeSigLow , threeSigUp,thre
yAxis: [
{
type: "value", //
name: "正态分布",
// name: "",
position: "right",
axisTick: { show: true },
axisLine: {
@ -231,7 +231,7 @@ function setEchartData(xMin , xMax , yArr , fArr , threeSigLow , threeSigUp,thre
},
{
type: "value",
name: "频数",
// name: "",
position: "left",
axisLabel: {
//formatter: '{value} %'
@ -354,7 +354,11 @@ function setEchartData(xMin , xMax , yArr , fArr , threeSigLow , threeSigUp,thre
xAxis: avgXs,
label: {
show: true,
formatter: "平均:"+avgXs
color:'green',
formatter: "均值:"+avgXs
},
lineStyle:{
color:'green'
}
}

Loading…
Cancel
Save