我是Amcharts5的新手。这是我的XY图表,有三个系列:
var chart3 = root3.container.children.push(
am5xy.XYChart.new(root3, {
layout: root3.horizontalLayout
}),
);我试图把一个传奇放在我的XY图表的右上角,然后我跟踪了一位官方医生。这是我的垂直对齐配置(与正式文档中的配置完全相同):
var legend = chart3.children.push(
am5.Legend.new(root3, {
centerY: am5.percent(0),
y: am5.percent(0),
})
);这是输出:带传奇的XY图,我真的不知道为什么它不工作.
发布于 2022-08-18 15:01:27
您是否尝试过手动设置centerX和x?
var legend = chart3.children.push(
am5.Legend.new(root3, {
centerX: am5.percent(100),
x: am5.percent(100),
centerY: am5.percent(0),
y: am5.percent(0),
})
);https://stackoverflow.com/questions/70180758
复制相似问题