相关统计图表中X坐标显示所有标签

This commit is contained in:
GoEdgeLab
2021-02-24 11:11:41 +08:00
parent e86ad0f4da
commit bfb5fa72b8
3 changed files with 12 additions and 3 deletions

View File

@@ -33,7 +33,10 @@ Tea.context(function () {
let chart = echarts.init(chartBox) let chart = echarts.init(chartBox)
let option = { let option = {
xAxis: { xAxis: {
data: stats.map(xFunc) data: stats.map(xFunc),
axisLabel: {
interval: 0
}
}, },
yAxis: { yAxis: {
axisLabel: { axisLabel: {

View File

@@ -38,7 +38,10 @@ Tea.context(function () {
let chart = echarts.init(chartBox) let chart = echarts.init(chartBox)
let option = { let option = {
xAxis: { xAxis: {
data: stats.map(xFunc) data: stats.map(xFunc),
axisLabel: {
interval: 0
}
}, },
yAxis: { yAxis: {
axisLabel: { axisLabel: {

View File

@@ -21,7 +21,10 @@ Tea.context(function () {
let chart = echarts.init(chartBox) let chart = echarts.init(chartBox)
let option = { let option = {
xAxis: { xAxis: {
data: stats.map(xFunc) data: stats.map(xFunc),
axisLabel: {
interval: 0
}
}, },
yAxis: { yAxis: {
axisLabel: { axisLabel: {