1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/e464ef370c19/ Changeset: e464ef370c19 User: guerler Date: 2014-01-13 20:27:42 Summary: Charts: Update pie chart code Affected #: 1 file diff -r 5c5e543867c10731a2d4a4309f077d9b3e91d3a5 -r e464ef370c194f730297a81592fa83d7dc59bdbc config/plugins/visualizations/charts/static/charts/piechart.js --- a/config/plugins/visualizations/charts/static/charts/piechart.js +++ b/config/plugins/visualizations/charts/static/charts/piechart.js @@ -12,47 +12,25 @@ }, // render - refresh : function() + refresh : function(data) { // add graph to screen var self = this; - nv.addGraph(function(data) { + nv.addGraph(function() { self.chart_3d = nv.models.pieChart() .x(function(d) { return d.key }) .y(function(d) { return d.y }) - .color(d3.scale.category10().range()) - .height(250) - .width(250); + .showLabels(true); d3.select(self.options.svg_id) - .datum(self._data()) + .datum(data) .transition().duration(1200) - .attr('height', 250) - .attr('width', 250) .call(self.chart_3d); nv.utils.windowResize(self.chart_3d.update); + + return self.chart_3d; }); - }, - - _data : function() { - return [ - { - key: "Cumulative Return", - values: [ - { - key : "CDS / Options" , - y : 29.765957771107 - }, - { - key : "Options" , - y : 19.765957771107 - }, - { - key : "Other" , - y : 12.765957771107 - }] - }]; } }); Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.