小编Gum*_*kur的帖子

格式化谷歌图表区域日期(如2012年3月,2013年10月等)

我想将Google Chart Area日期显示为2012年3月,2013年10月等.格式中不应有任何日期数字.我只能找到3种格式

格式

var formatter_long = new google.visualization.DateFormat({formatType:'long'});

var formatter_medium = new google.visualization.DateFormat({formatType:'medium'});

var formatter_short = new google.visualization.DateFormat({formatType:'short'});

导致

2008年2月28日(长)

2008年2月28日(中)

2/28/08(简称)

如果我可以从结果中删除日期数字,那么长期和中期工作对我来说.有没有机会以某种方式做到这一点?

linechart date-format google-visualization

1
推荐指数
1
解决办法
3157
查看次数