diff --git a/js/app/models/PlotObjects/PlotIntervalsObject.js b/js/app/models/PlotObjects/PlotIntervalsObject.js index 54ecde2..df2f4db 100644 --- a/js/app/models/PlotObjects/PlotIntervalsObject.js +++ b/js/app/models/PlotObjects/PlotIntervalsObject.js @@ -22,6 +22,7 @@ Ext.define('amdaPlotObj.PlotIntervalsObject', { fields: [ { name: 'intervals-color', type: 'string', defaultValue: "none" }, + { name: 'legend-text-activated', type: 'boolean', defaultValue: true}, { name: 'legend-text-value', type: 'string' }, { name: 'legend-text-position', type: 'string', defaultValue: "top" }, { name: 'legend-text-color', type: 'string' }, @@ -50,6 +51,7 @@ Ext.define('amdaPlotObj.PlotIntervalsObject', { setDefaultValues: function() { this.set('intervals-color', amdaPlotObj.PlotObjectConfig.defaultValues.intervals.color); + this.set('legend-text-activated', true); this.set('legend-text-value', ''); this.set('legend-text-position', amdaPlotObj.PlotObjectConfig.defaultValues.legends.text.position); this.set('legend-text-color', amdaPlotObj.PlotObjectConfig.defaultValues.legends.text.color); @@ -66,6 +68,7 @@ Ext.define('amdaPlotObj.PlotIntervalsObject', { { var intervalsValues = new Object(); intervalsValues['intervals-color'] = this.get('intervals-color'); + intervalsValues['legend-text-activated'] = this.get('legend-text-activated'); intervalsValues['legend-text-value'] = this.get('legend-text-value'); intervalsValues['legend-text-position'] = this.get('legend-text-position'); intervalsValues['legend-text-color'] = this.get('legend-text-color'); diff --git a/js/app/models/PlotObjects/PlotObjectConfig.js b/js/app/models/PlotObjects/PlotObjectConfig.js index 2ad3248..ccabb83 100644 --- a/js/app/models/PlotObjects/PlotObjectConfig.js +++ b/js/app/models/PlotObjects/PlotObjectConfig.js @@ -148,7 +148,7 @@ Ext.define('amdaPlotObj.PlotObjectConfig', { resolution: 3000 }, intervals: { - color: "none" + color: "#FF0000" }, statusbar: { color: "none" diff --git a/js/app/views/PlotComponents/PlotIntervalsForm.js b/js/app/views/PlotComponents/PlotIntervalsForm.js index c184411..40129ad 100644 --- a/js/app/views/PlotComponents/PlotIntervalsForm.js +++ b/js/app/views/PlotComponents/PlotIntervalsForm.js @@ -24,7 +24,7 @@ Ext.define('amdaPlotComp.PlotIntervalsForm', { return [ this.addColorsPicker('intervals-color', 'Color', amdaPlotObj.PlotObjectConfig.availableColorsNew, 'none'), - this.addStandardFieldSet('Legend', 'legend-text-font-activated', legendItems) + this.addStandardFieldSet('Legend', 'legend-text-activated', legendItems) ]; } }); -- libgit2 0.21.2