commit/galaxy-central: guerler: Charts: Hide control elements
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/e162e15c7d2e/ Changeset: e162e15c7d2e User: guerler Date: 2014-03-08 16:18:01 Summary: Charts: Hide control elements Affected #: 1 file diff -r 9d29df33bac909a04f172214934b6cb1c60db0e0 -r e162e15c7d2ef94e132e369c59d0d6f1dd42b329 config/plugins/visualizations/charts/static/charts/_nvd3/nvd3.js --- a/config/plugins/visualizations/charts/static/charts/_nvd3/nvd3.js +++ b/config/plugins/visualizations/charts/static/charts/_nvd3/nvd3.js @@ -37,6 +37,12 @@ nvd3_model.yAxis.axisLabel(chart.settings.get('y_axis_label')) .axisLabelDistance(30); + if (chart.groups.length == 1) { + nvd3_model.options({ showControls: false }); + } + + //nvd3_model.useInteractiveGuideline(true); + if (callback) { callback(nvd3_model); } 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