Description
Version
1.13.10
Link to Minimal Reproduction
null
Steps to Reproduce
let spec = {
type: 'bar',
width: 350,
xField: 'x',
yField: 'y',
axes: [
{
orient: 'bottom',
sampling: false,
label: {
style: {
angle: 90
},
// autoRotate: true,
// autoRotateAngle: [0, 90]
}
}
],
"crosshair": {
"xField": {
"visible": true,
"label": {
"visible": true,
"formatMethod": null,
"formatter": null,
"style": {
"angle": 90,
},
labelBackground: {
visible: true,
style: {
angle: 90
}
}
},
"bindingAxesIndex": 0,
"defaultSelect": null
},
"bindingAxesIndex": 0,
},
data: [
{
id: 'barData',
values: [
{ x: 'Round 1', y: 21, c: 'Role A' },
{ x: 'Round 1', y: 38, c: 'Role B' },
{ x: 'Round 2', y: 28, c: 'Role A' },
{ x: 'Round 2', y: 45, c: 'Role B' },
{ x: 'Round 3', y: 22, c: 'Role A' },
{ x: 'Round 3', y: 56, c: 'Role B' },
{ x: 'Round 4', y: 34, c: 'Role A' },
{ x: 'Round 4', y: 48, c: 'Role B' },
{ x: 'Round 5', y: 34, c: 'Role A' },
{ x: 'Round 5', y: 64, c: 'Role B' },
{ x: 'Round 6', y: 44, c: 'Role A' },
{ x: 'Round 6', y: 72, c: 'Role B' },
{ x: 'Round 7', y: 38, c: 'Role A' },
{ x: 'Round 7', y: 65, c: 'Role B' },
{ x: 'Round 8', y: 24, c: 'Role A' },
{ x: 'Round 8', y: 70, c: 'Role B' },
{ x: 'Round 9', y: 28, c: 'Role A' },
{ x: 'Round 9', y: 62, c: 'Role B' }
]
}
]
};
const vchart = new VChart(spec, { dom: CONTAINER_ID });
vchart.renderSync();
// Just for the convenience of console debugging, DO NOT COPY!
window['vchart'] = vchart;
Current Behavior
Expected Behavior
应该与轴标签对齐
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response