Fusioncharts 如何在融合图的X轴上添加两行标签?
其目的是为每个条在X轴上有2行文本。 e、 gFusioncharts 如何在融合图的X轴上添加两行标签?,fusioncharts,Fusioncharts,其目的是为每个条在X轴上有2行文本。 e、 g 六月 2018年 并以不同的方式设置每行的样式(如将年份标签涂成绿色) 我们能做到吗? 这就是我以自定义方式填充栏的方式 str += '<set label="' + months[i].toUpperCase() + ' ' + currentyear + '" value="' + amount + '" color="08cf77" toolText="' + cur_symbol + amount + '" />\n';
六月 2018年 并以不同的方式设置每行的样式(如将年份标签涂成绿色) 我们能做到吗? 这就是我以自定义方式填充栏的方式
str += '<set label="' + months[i].toUpperCase() + ' ' + currentyear + '" value="' + amount + '" color="08cf77" toolText="' + cur_symbol + amount + '" />\n';
str+='\n';
只需使用
' '
因此,该行应更新为:
str += '<set label="' + months[i].toUpperCase() + ' ' + currentyear + '" value="' + amount + '" color="08cf77" toolText="' + cur_symbol + amount + '" />\n';
str+='\n';