8000 时序图如何让x轴 位于坐标系下方 · Issue #2927 · VisActor/VChart · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
时序图如何让x轴 位于坐标系下方  #2927
Closed
YuvrajKaushal/one-apiSecure
#5
@tangguo13

Description

@tangguo13

What problem does this feature solve?

如下代码 当我绘制出点时序图是 图表位于坐标系的第四象限右下,我期望可以出现在第一象限即右上
const [spec, setSpec] = useState({
type: 'sequence',
autoFit: true,
appendPadding: {
left: 80,
right: 80
},
series: [
{
type: 'bar',
barTitle: '清醒',
dataId: 'register1',
xField: 'start_time',
x2Field: 'end_time',
yField: 'value',
animation: false,
height: 20,
padding: -1,
},
{
type: 'bar',
barTitle: '快速眼动',
dataId: 'register2',
xField: 'start_time',
x2Field: 'end_time',
yField: 'value',
animation: false,
height: 20,
padding: -1,
},
{
type: 'bar',
barTitle: '测试',
dataId: 'register2',
xField: 'start_time',
x2Field: 'end_time',
yField: 'value',
animation: false,
height: 20,
padding: -1,
},
],
axes: [
{
orient: 'bottom',
type: 'time',
layers: [
{
tickStep: 7200,
timeFormat: '%H:%M'
}
]
}
],

    data: [
        {
            id: 'register1',
            values: [
                {
                    start_time: 1720517808,
                    end_time: 1720527808,
                    value: 1
                },
                {
                    start_time: 1720537808,
                    end_time: 1720557808,
                    value: 1
                }
            ]
        },
        {
            id: 'register2',
            values: [
                {
                    start_time: 1720527808,
                    end_time: 1720537808,
                    value: 1
                },
                {
                    start_time: 1720557808,
                    end_time: 1720587808,
                    value: 1
                }
            ]
        },
        {
            id: 'register3',
            values: [
                {
                    start_time: 1720527808,
                    end_time: 1720537808,
                    value: 1
                },
                {
                    start_time: 1720557808,
                    end_time: 1720587808,
                    value: 1
                }
            ]
        },
    ]
});

What does the proposed API look like?

希望通过设置某个属性,改变x的位置 我试着改变axes-time-orient:bottom 但是效果不是我们想要达到的
axes: [
{
orient: 'bottom',
type: 'time',
layers: [
{
tickStep: 7200,
timeFormat: '%H:%M'
}
]
}
],

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

    0