chart.cursor.tooltip.offsetY = 30;
chart.cursor.tooltip.offsetX = -10;
.chartdiv .amcharts-balloon-div {
left: 50px !important;
top: 100px !important;
}
这将把提示框的位置移动到距离左侧50个像素、距离顶部100个像素的位置。注意,这个代码块应该放在 CSS 文件中或者style标签中。
其中,上述的 chart.obj 部分可以替换为您的图表对象的名称,如 chart1, chart2, chart3 等。