提交 0fdf80e9 编写于 作者: zhentian.jia's avatar zhentian.jia

人最小精度为1

上级 584eecb9
...@@ -113,6 +113,7 @@ export function recordOption(legendData, xAxisData, seriesData) { ...@@ -113,6 +113,7 @@ export function recordOption(legendData, xAxisData, seriesData) {
}, },
}, },
yAxis: { yAxis: {
minInterval: 1,
type: "value", type: "value",
name: "人数 (个)", name: "人数 (个)",
axisLine: { //隐藏轴线 axisLine: { //隐藏轴线
...@@ -175,8 +176,8 @@ export function certificateOption(xAxisData, seriesJoin, seriesCert, seriesRate) ...@@ -175,8 +176,8 @@ export function certificateOption(xAxisData, seriesJoin, seriesCert, seriesRate)
data: ["参与人数", "获证人数", "获证比例"] data: ["参与人数", "获证人数", "获证比例"]
}, },
grid: { grid: {
left: 20, left: 30,
right: 20, right: 40,
containLabel: true containLabel: true
}, },
xAxis: [ xAxis: [
...@@ -200,6 +201,7 @@ export function certificateOption(xAxisData, seriesJoin, seriesCert, seriesRate) ...@@ -200,6 +201,7 @@ export function certificateOption(xAxisData, seriesJoin, seriesCert, seriesRate)
], ],
yAxis: [ yAxis: [
{ {
minInterval: 1,
type: "value", type: "value",
name: "人数(个)", name: "人数(个)",
axisLabel: { axisLabel: {
...@@ -287,20 +289,16 @@ export function durationOption(xAxisData, seriesData) { ...@@ -287,20 +289,16 @@ export function durationOption(xAxisData, seriesData) {
} }
}, },
color: ['#449284'], color: ['#449284'],
grid: {
left: "3%",
right: "4%",
bottom: "3%",
containLabel: true
},
dataZoom: { dataZoom: {
show: true, show: true,
start: 0, start: 0,
end: 100 end: 100,
right: 40,
}, },
grid: { grid: {
left: 20, left: 30,
right: 20, right: 40,
bottom: '10%',
containLabel: true containLabel: true
}, },
xAxis: [ xAxis: [
...@@ -481,8 +479,8 @@ export function knowledgeEffect(xAxisData, seriesBefore, seriesAfter) { ...@@ -481,8 +479,8 @@ export function knowledgeEffect(xAxisData, seriesBefore, seriesAfter) {
data: ["培训前正确率", "培训后正确率"] data: ["培训前正确率", "培训后正确率"]
}, },
grid: { grid: {
left: 20, left: 30,
right: 20, right: 40,
containLabel: true containLabel: true
}, },
xAxis: { xAxis: {
...@@ -559,8 +557,8 @@ export function examTimes(xAxisData, seriesData) { ...@@ -559,8 +557,8 @@ export function examTimes(xAxisData, seriesData) {
}, },
color: ['#449284'], color: ['#449284'],
grid: { grid: {
left: 20, left: 30,
right: 20, right: 40,
containLabel: true containLabel: true
}, },
dataZoom: { dataZoom: {
...@@ -588,6 +586,7 @@ export function examTimes(xAxisData, seriesData) { ...@@ -588,6 +586,7 @@ export function examTimes(xAxisData, seriesData) {
], ],
yAxis: [ yAxis: [
{ {
minInterval: 1,
splitLine: { splitLine: {
show: true show: true
}, },
...@@ -634,8 +633,8 @@ export function examScore(xAxisData, seriesData) { ...@@ -634,8 +633,8 @@ export function examScore(xAxisData, seriesData) {
}, },
color: ['#CAA861'], color: ['#CAA861'],
grid: { grid: {
left: 20, left: 30,
right: 20, right: 40,
containLabel: true containLabel: true
}, },
dataZoom: { dataZoom: {
...@@ -663,6 +662,7 @@ export function examScore(xAxisData, seriesData) { ...@@ -663,6 +662,7 @@ export function examScore(xAxisData, seriesData) {
], ],
yAxis: [ yAxis: [
{ {
minInterval: 1,
splitLine: { splitLine: {
show: true show: true
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册