这是我的 php 脚本,我在其中查询数据库以获取数据并使用融合图绘制数据
$query = "SELECT * FROM chronology_chart";
if( $result = mysqli_query ($connect,$query)){
$stack = array( );
while($row = mysqli_fetch_array($result)) {
$stack[] = $row["Tapeout-Date"];
$variable .= "<category name = '$row[Date]' hoverText = '$row[Event]'/>";
}
$variable .= "</categories>";
$variable .= "<dataset seriesname='' color= '99cc00' renderAs='line' showAreaBorder='0' areaBorderThickness='2' areaBorderColor='' isTrendZone='1'>";
$arrlength = count($stack);
#echo $arrlength;
#print_r($stack);
for($x=0;$x<$arrlength;$x++){
$variable .= "<set value = '$stack[$x]'/>";
}
$variable .= "</dataset>";
$variable .= "</graph>";
}
现在,当我将鼠标移到图形线上时,这将使 $row[Event] 中的日期显示为悬停文本。有没有办法让 hovertext 值始终显示.!!!?请帮忙