=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/plugin.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/plugin.js 2012-05-19 11:11:26 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/plugin/plugin.js 2012-05-19 11:33:16 +0000 @@ -270,7 +270,7 @@ return { type: 'Numeric', position: 'left', - title: project.state.conf.rangeAxisLabel || false, + title: project.state.conf.rangeAxisLabel, labelTitle: { font: '17px ' + DHIS.chart.conf.chart.style.font }, @@ -297,7 +297,7 @@ return { type: 'Category', position: 'bottom', - title: project.state.conf.domainAxisLabel || false, + title: project.state.conf.domainAxisLabel, labelTitle: { font: '17px ' + DHIS.chart.conf.chart.style.font }, @@ -694,6 +694,8 @@ targetLineLabel: null, baseLineValue: null, baseLineLabel: null, + domainAxisLabel: null, + rangeAxisLabel: null, url: '' }; @@ -733,17 +735,18 @@ conf.series = r.series.toLowerCase(); conf.category = r.category.toLowerCase(); conf.filter = r.filter.toLowerCase(); - conf.showData = r.showData || false, - conf.trendLine = r.regression || false, - conf.hideLegend = r.hideLegend || false, - conf.hideSubtitle = r.hideSubtitle || false, - conf.userOrganisationUnit = r.userOrganisationUnit || false, - conf.userOrganisationUnitChildren = r.userOrganisationUnitChildren || false, - conf.targetLineValue = r.targetLineValue || null, - conf.targetLineLabel = r.targetLineLabel || null, - conf.baseLineValue = r.baseLineValue || null, - conf.baseLineLabel = r.baseLineLabel || null, - conf.legendPosition = conf.legendPosition || false; + conf.showData = r.showData || false; + conf.trendLine = r.regression || false; + conf.hideLegend = r.hideLegend || false; + conf.hideSubtitle = r.hideSubtitle || false; + conf.userOrganisationUnit = r.userOrganisationUnit || false; + conf.userOrganisationUnitChildren = r.userOrganisationUnitChildren || false; + conf.targetLineValue = r.targetLineValue || null; + conf.targetLineLabel = r.targetLineLabel || null; + conf.baseLineValue = r.baseLineValue || null; + conf.baseLineLabel = r.baseLineLabel || null; + conf.domainAxisLabel = r.domainAxisLabel || null; + conf.rangeAxisLabel = r.rangeAxisLabel || null; if (r.indicators) { conf.indicators = DHIS.chart.util.dimension.indicator.getIdsFromObjects(r.indicators); === modified file 'dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/plugin/index.html' --- dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/plugin/index.html 2012-05-19 11:13:49 +0000 +++ dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/plugin/index.html 2012-05-19 11:33:16 +0000 @@ -47,9 +47,11 @@ userOrganisationUnit: false, userOrganisationUnitChildren: true, targetLineValue: 80, - targetLineLabel: null, + targetLineLabel: null, baseLineValue: null, - baseLineLabel: null, + baseLineLabel: null, + domainAxisLabel: null, + rangeAxisLabel: null, el: 'chart2', url: url }); @@ -113,32 +115,36 @@ === modified file 'dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/plugin/plugin.js' --- dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/plugin/plugin.js 2012-05-19 11:11:26 +0000 +++ dhis-2/dhis-web/dhis-web-visualizer/src/main/webapp/dhis-web-visualizer/app/plugin/plugin.js 2012-05-19 11:33:16 +0000 @@ -270,7 +270,7 @@ return { type: 'Numeric', position: 'left', - title: project.state.conf.rangeAxisLabel || false, + title: project.state.conf.rangeAxisLabel, labelTitle: { font: '17px ' + DHIS.chart.conf.chart.style.font }, @@ -297,7 +297,7 @@ return { type: 'Category', position: 'bottom', - title: project.state.conf.domainAxisLabel || false, + title: project.state.conf.domainAxisLabel, labelTitle: { font: '17px ' + DHIS.chart.conf.chart.style.font }, @@ -694,6 +694,8 @@ targetLineLabel: null, baseLineValue: null, baseLineLabel: null, + domainAxisLabel: null, + rangeAxisLabel: null, url: '' }; @@ -733,17 +735,18 @@ conf.series = r.series.toLowerCase(); conf.category = r.category.toLowerCase(); conf.filter = r.filter.toLowerCase(); - conf.showData = r.showData || false, - conf.trendLine = r.regression || false, - conf.hideLegend = r.hideLegend || false, - conf.hideSubtitle = r.hideSubtitle || false, - conf.userOrganisationUnit = r.userOrganisationUnit || false, - conf.userOrganisationUnitChildren = r.userOrganisationUnitChildren || false, - conf.targetLineValue = r.targetLineValue || null, - conf.targetLineLabel = r.targetLineLabel || null, - conf.baseLineValue = r.baseLineValue || null, - conf.baseLineLabel = r.baseLineLabel || null, - conf.legendPosition = conf.legendPosition || false; + conf.showData = r.showData || false; + conf.trendLine = r.regression || false; + conf.hideLegend = r.hideLegend || false; + conf.hideSubtitle = r.hideSubtitle || false; + conf.userOrganisationUnit = r.userOrganisationUnit || false; + conf.userOrganisationUnitChildren = r.userOrganisationUnitChildren || false; + conf.targetLineValue = r.targetLineValue || null; + conf.targetLineLabel = r.targetLineLabel || null; + conf.baseLineValue = r.baseLineValue || null; + conf.baseLineLabel = r.baseLineLabel || null; + conf.domainAxisLabel = r.domainAxisLabel || null; + conf.rangeAxisLabel = r.rangeAxisLabel || null; if (r.indicators) { conf.indicators = DHIS.chart.util.dimension.indicator.getIdsFromObjects(r.indicators);