Skip to content

min和max是否可以不用写死? #24

@ZemanQuim

Description

@ZemanQuim
yAxis: [
      {
        name: '曝光数',
        nameTextStyle: {
          fill: '#b1afc6',
          fontSize: 14,
        },
        data: 'value',
        min: 0,
        axisLabel: {
          style: {
            fill: '#b1afc6',
            fontSize: 14,
            rotate: 0,
          },
        },
        axisTick: {
          show: false,
          style: {
            stroke: '#b1afc6',
          },
        },
        axisLine: {
          show: false,
          style: {
            stroke: '#B9B8CE',
          },
        },
        splitLine: {
          style: {
            stroke: '#484753',
          },
        },
      },
      {
        name: '千次成本',
        nameTextStyle: {
          fill: '#b1afc6',
          fontSize: 14,
        },
        data: 'value',
        position: 'right',
        min: 0,
        max: 160,
        splitLine: {
          show: false,
        },
        axisLabel: {
          style: {
            fill: '#b1afc6',
            fontSize: 14,
            rotate: 0,
          },
          formatter: '{value} 元',
        },
        axisTick: {
          show: false,
        },
        axisLine: {
          show: false,
        },
      },
    ],

min和max是否可以不用写死?
使用'dataMin'和'dataMax'或者使用funtion(value){retrun value.min*0.8}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions