3
下面的代码:lazy_high_charts =>:格式不工作的dataLabels
f.series(:data => @values, :dataLabels => { :formatter => "function() { return this.x; }".js_code, :enabled => true, :rotation => 90, :x=>-3, :y=>15, :color=>"#FFFFFF" })
...作品与格式功能的异常。当我添加它时,图表无法呈现。否则,标签都存在,旋转等
不明白为什么作为非常下一行包含了类似的格式化的工具提示,不工作:
f.options[:tooltip][:formatter] = "function() { return ''+ this.x +': '+ this.y.toFixed(1) +' %'; }".js_code
参考:http://www.highcharts.com/demo/column-rotated-labels
更新: TypeError: f.formatter.call is not a function
是我在萤火虫中看到的错误。任何想法这里有什么?