commit/galaxy-central: guerler: Charts: Extend boxplot options
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/9c1a51c9f85f/ Changeset: 9c1a51c9f85f User: guerler Date: 2014-06-04 08:10:32 Summary: Charts: Extend boxplot options Affected #: 3 files diff -r c93e85d8ac0d28ea07a985ddd15f014216dd6ddb -r 9c1a51c9f85f52d4570dede166155700130d8234 config/plugins/visualizations/charts/static/charts/highcharts/boxplot/config.js --- a/config/plugins/visualizations/charts/static/charts/highcharts/boxplot/config.js +++ b/config/plugins/visualizations/charts/static/charts/highcharts/boxplot/config.js @@ -1,6 +1,6 @@ -define([], function() { +define(['plugin/charts/highcharts/common/config'], function(config) { -return $.extend(true, {}, { +return $.extend(true, {}, config, { title : 'Box plot', category : 'Data processing (requires \'charts\' tool from Toolshed)', library : 'Highcharts', diff -r c93e85d8ac0d28ea07a985ddd15f014216dd6ddb -r 9c1a51c9f85f52d4570dede166155700130d8234 config/plugins/visualizations/charts/static/charts/highcharts/boxplot/wrapper.js --- a/config/plugins/visualizations/charts/static/charts/highcharts/boxplot/wrapper.js +++ b/config/plugins/visualizations/charts/static/charts/highcharts/boxplot/wrapper.js @@ -29,7 +29,7 @@ chart.settings.set('legend_enabled', 'false') // create configuration - this.hc_config = configmaker(chart.settings); + this.hc_config = configmaker(chart, chart.settings); // request data var self = this; diff -r c93e85d8ac0d28ea07a985ddd15f014216dd6ddb -r 9c1a51c9f85f52d4570dede166155700130d8234 config/plugins/visualizations/charts/static/charts/highcharts/common/highcharts-config.js --- a/config/plugins/visualizations/charts/static/charts/highcharts/common/highcharts-config.js +++ b/config/plugins/visualizations/charts/static/charts/highcharts/common/highcharts-config.js @@ -36,6 +36,8 @@ }, labels: { formatter : function() { + if (settings.get('x_axis_type') == 'auto') + return this.value; var format = d3.format(settings.get('x_axis_tick') + settings.get('x_axis_type')); return format(this.value); }, @@ -50,6 +52,8 @@ }, labels: { formatter : function() { + if (settings.get('y_axis_type') == 'auto') + return this.value; var format = d3.format(settings.get('y_axis_tick') + settings.get('y_axis_type')); return format(this.value); }, 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.
participants (1)
-
commits-noreply@bitbucket.org