mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 17:37:19 -05:00
Issue#1006: allowing user to change bottom margin for Chart visualizations
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
xAxis: {type: 'datetime', labels: {enabled: true}},
|
||||
series: {stacking: null},
|
||||
seriesOptions: {},
|
||||
columnMapping: {}
|
||||
columnMapping: {},
|
||||
bottomMargin: 50
|
||||
};
|
||||
|
||||
VisualizationProvider.registerVisualization({
|
||||
@@ -194,6 +195,10 @@
|
||||
scope.options.legend = {enabled: true};
|
||||
}
|
||||
|
||||
if (!_.has(scope.options, 'bottomMargin')) {
|
||||
scope.options.bottomMargin = 50;
|
||||
}
|
||||
|
||||
if (scope.columnNames)
|
||||
_.each(scope.options.columnMapping, function(value, key) {
|
||||
if (scope.columnNames.length > 0 && !_.contains(scope.columnNames, key))
|
||||
|
||||
Reference in New Issue
Block a user