-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Closed as not planned
Labels
staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
Description
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 [其他信息]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
