如何在Fusion Chart上的X轴上添加2行标签?

时间:2018-06-17 09:14:41

标签: fusioncharts

目的是在每个条形的X轴上有2行文字。 e.g
JUN

2018

以不同方式设置每一行的样式(例如将年份标签的颜色设置为绿色)。

我们能做到吗? 这就是我以自定义方式填充条形图的方法。

str += '<set label="' + months[i].toUpperCase() + ' ' + currentyear + '" value="' + amount + '" color="08cf77" toolText="' + cur_symbol + amount + '"  />\n';

1 个答案:

答案 0 :(得分:0)

只需使用

 '&#10;' 

因此该行应更新为;

str += '<set label="' + months[i].toUpperCase() + '&#10;' + currentyear + '" value="' + amount + '" color="08cf77" toolText="' + cur_symbol + amount + '" />\n';