我可以在工具提示中添加新行吗?谷歌图表

时间:2018-12-24 14:38:12

标签: javascript php google-visualization

这里有带有工具提示的数组

<script>
<?php
echo'
['$compname', '$dancerName placed $dancer_placed out of $competitors 
Dance Name: $dance Comp Name: $feis Date: $date', '$dancer_placed'],
'
?>
</script>

在工具提示上,我希望它显示如下:

Lace place 14 out of 45
Dance Name: Boogie
Comp Name: New Jersey Light Worlds 2018
Date: Jan/1/2018

但是它显示的是这样

Lace place 14 out of 45
Dance Name: Boogie Comp 
Name: New Jersey Light 
Worlds 2018 Date: Jan
/1/2018

反正有换行符吗?

1 个答案:

答案 0 :(得分:0)

您尝试了吗?

foo

package.json