|
@@ -44,7 +44,7 @@ export default {
|
|
color: ['#3AA1FF'],
|
|
color: ['#3AA1FF'],
|
|
tooltip: { trigger: 'axis', axisPointer: { type: 'line' }}, // 默认为直线,可选为:'line' | 'shadow'
|
|
tooltip: { trigger: 'axis', axisPointer: { type: 'line' }}, // 默认为直线,可选为:'line' | 'shadow'
|
|
grid: { left: '0', right: '0', top: '5%', bottom: '0', containLabel: true },
|
|
grid: { left: '0', right: '0', top: '5%', bottom: '0', containLabel: true },
|
|
- xAxis: [{ type: 'category', data: this.chartData.xaxis, axisLabel: { interval: 0, rotate: 15 }, axisTick: { alignWithLabel: true }}],
|
|
|
|
|
|
+ xAxis: [{ type: 'category', data: this.chartData.xaxis, axisLabel: { interval: this.chartData.xaxis.length > 15 ? 1 : 0, rotate: 15 }, axisTick: { alignWithLabel: true }}],
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, splitLine: { lineStyle: { type: 'dashed' }}}],
|
|
yAxis: [{ type: 'value', axisLine: { show: false }, splitLine: { lineStyle: { type: 'dashed' }}}],
|
|
series: [
|
|
series: [
|
|
{
|
|
{
|