条形图表上设置guide().text的offsetX偏移量在"第二象限"上显示有问题
panghujiajia opened this issue · 0 comments
panghujiajia commented
- F2 Version:
- Platform:
- Mini Showcase(like screenshots):
- CodePen Link:
chart.source(data, {
value: {
type: 'linear',
ticks: [-100, -50, 0, 50, 100],
}
});
data.forEach(obj => {
chart.guide().text({
position: [obj.name, obj.value],
content: obj.value,
style: {
textBaseline: 'bottom',
textAlign: 'center',
},
offsetY: 7,
offsetX: 15,
});
});