Skip to content

Setting fixed size of cells in cartesian heatmap #8252

@janz1

Description

@janz1

One-line summary [问题简述]

Setting fixed size of cells in cartesian heatmap

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 3.0
  • Browser version [浏览器类型和版本]: Any
  • OS Version [操作系统类型和版本]: Any

Now, size of the whole chart is fixed, so the more values on the chart I have, the smaller each cell/square is. Is there a way to change that?

ECharts option [ECharts配置项]

option = {
tooltip: {
        position: 'top'
    },
    animation: false,
    grid: {
        height: '50%',
        y: '10%'
    },
    xAxis: {
        type: 'category',
        data: hours
    },
    yAxis: {
        type: 'category',
        data: days
    },
    visualMap: {
        min: 1,
        max: 10,
        calculable: true,
        orient: 'horizontal',
        left: 'center',
        bottom: '15%'
    },
    series: [{
        name: 'Punch Card',
        type: 'heatmap',
        data: data,
        label: {
            normal: {
                show: true
            }
        },
        itemStyle: {
            emphasis: {
                shadowBlur: 10,
                shadowColor: 'rgba(0, 0, 0, 0.5)'
            }
        }
    }]
};

Other comments [其他信息]

zaznaczenie_186

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions