Skip to content

[Bug] sequence chart左侧的坐标轴内容过长时,不会自动调整区域宽度,或者隐藏内容,而会直接伸入表格内部(如官方文档案例中的NBA球员上场时间表) #3703

Closed
@Black-Zhong

Description

@Black-Zhong
Image

如上图所示,sequence chart左侧的坐标轴内容过长时,不会自动调整区域宽度,或者隐藏内容,而会直接伸入表格内部。
(link:https://www.visactor.io/vchart/demo/sequence-chart/NBA-player-event?keyword=axis

希望可以像下图这样,自动调整坐标轴区域宽度,或者隐藏过长的文本内容

Image

(link:https://www.visactor.io/vchart/demo/axis/style

尝试自行添加一个orient: 'left'的坐标轴(如下图),只会造成格式混乱,但其实是可以看到成功添加上了一个坐标轴

Image

axes: [
{
orient: 'top',
type: 'time',
range: {
min: -2209017943000,
max: -2209015063000
},
layers: [
{
tickStep: 28800,
timeFormat: '%Y%m%d'
},
{
tickStep: 28800,
timeFormat: '%H:%M'
}
]
},
{ // 以下新增一个左侧的坐标轴
orient: 'left',
type: 'band',
},
],

Metadata

Metadata

Assignees

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