Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

柱状图在所有数值均相同的情况下,Y坐标轴的最大值和最小值会失效。 #2

Open
Cyrusky opened this issue Dec 19, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@Cyrusky
Copy link

Cyrusky commented Dec 19, 2019

配置项如:

options:
{
        legend: {
          data: [
            {
              name: '业务可用性',
              color: '#3de7c9'
            }
          ],
          y: 'top',
          textStyle: {
            fill: '#fff'
          }
        },
        xAxis: {
          data: [
            '2019-12-10', '2019-12-11',
            '2019-12-12', '2019-12-13',
            '2019-12-14', '2019-12-15',
            '2019-12-16', '2019-12-17',
            '2019-12-18', '2019-12-19'],
          axisLine: {
            style: {
              stroke: '#999'
            }
          },
          axisLabel: {
            style: {
              fill: '#999'
            }
          },
          axisTick: {
            show: false
          }
        },
        yAxis: {
          data: 'value',
          min: 80,
          splitLine: {
            show: false
          },
          axisLine: {
            style: {
              stroke: '#999'
            }
          },
          axisLabel: {
            style: {
              fill: '#999'
            }
          },
          axisTick: {
            show: false
          }
        },
        series: [
          {
            name: '业务可用性',
            data: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
            type: 'line',
            smooth: true,
            lineArea: {
              show: true,
              gradient: ['rgba(55, 162, 218, 0.6)', 'rgba(55, 162, 218, 0)']
            },
            lineStyle: {
              lineDash: [5, 5]
            },
            linePoint: {
              radius: 4,
              style: {
                fill: '#00db95'
              }
            }
          }
        ]
      }
@jiaming743 jiaming743 added the bug Something isn't working label Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants