amCharts工具提示仅显示在DateAxis上,而不显示在ValueAxis上

问题描述 投票:1回答:1

[我正在使用amCharts,并且正在制作具有多个系列的XY图表,当X轴类型为DateAxis时,工具提示显示为ony,而当其为ValueAxis时,则提示不起作用

var dateAxis = chart5.xAxes.push(new am4charts.DateAxis());
series.dataFields.dateX = "time";

带有工具提示的amChart:

“带有工具提示的amChart”

现在,当我将这两行更改为“值轴”时,它不起作用

var dateAxis = chart5.xAxes.push(new am4charts.ValueAxis());
    series.dataFields.valueX = "time";

没有工具提示的amChart:

“没有工具提示的amChart”

javascript html json charts amcharts
1个回答
0
投票

以下是来自@xorspark的发布此示例的请求的回复(这也正在发生:)>

XY图表,Y轴为ValueAxis,X轴为CategoryAxis ....,并且工具提示起作用:https://codepen.io/alavigne314/pen/JjozVWx

© www.soinside.com 2019 - 2024. All rights reserved.