Revert "-- corr"

This reverts commit 5315c47fcd.
This commit is contained in:
2024-11-05 10:55:34 -07:00
parent 5315c47fcd
commit 927295c7ba
276 changed files with 6381 additions and 3001 deletions

View File

@@ -2,6 +2,9 @@
Sys.Extended.UI.BarChart = function(element) {
Sys.Extended.UI.BarChart.initializeBase(this, [element]);
var id = this.get_id();
id = id.replace("_ctl00", "");
this._parentDiv = document.getElementById(id + "__ParentDiv");
this._chartWidth = '300';
this._chartHeight = '200';
@@ -15,7 +18,6 @@ Sys.Extended.UI.BarChart = function(element) {
this._valueAxisLineColor = '';
this._categoryAxisLineColor = '';
this._baseLineColor = '';
this._container = null;
// variables
this.yMax = 0;
@@ -49,8 +51,6 @@ Sys.Extended.UI.BarChart.prototype = {
if(this._valueAxisLines == 0) {
this._valueAxisLines = 9;
}
this._parentDiv = this.get_container();
if(this._chartType == Sys.Extended.UI.BarChartType.Column || this._chartType == Sys.Extended.UI.BarChartType.StackedColumn)
this.generateColumnChart();
@@ -349,7 +349,9 @@ Sys.Extended.UI.BarChart.prototype = {
svgContents = svgContents + '<stop offset="100%" id="LinearGradient3"></stop></linearGradient>';
svgContents = svgContents + '</defs>';
svgContents = svgContents + String.format('<rect id="ChartBackGround" width="{0}" height="{1}" style="opacity: 0"/>', this._chartWidth, this._chartHeight);
svgContents = svgContents + String.format('<path fill="none" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" d="M5 {0} {1} {0} {1} {2} 5 {2} z"/>', parseInt(this._chartHeight) * 1 / 10 + 5, parseInt(this._chartWidth) - 5, parseInt(this._chartHeight) - parseInt(this._chartHeight) * 1 / 10);
svgContents = svgContents + String.format('<path id="ChartBackGround" stroke="" d="M0 0 {0} 0 {0} {1} 0 {1} z"/>', this._chartWidth, this._chartHeight);
svgContents = svgContents + String.format('<path fill="#ffffff" stroke-opacity="1" fill-opacity="0" stroke-linejoin="round" stroke-linecap="square" stroke="" d="M5 {0} {1} {0} {1} {2} 5 {2} z" />', parseInt(this._chartHeight) * 1 / 10 + 5, parseInt(this._chartWidth) - 5, parseInt(this._chartHeight) - parseInt(this._chartHeight) * 1 / 10);
return svgContents;
},
@@ -838,14 +840,7 @@ Sys.Extended.UI.BarChart.prototype = {
},
set_baseLineColor: function(value) {
this._baseLineColor = value;
},
get_container: function () {
return this._container;
},
set_container: function (value) {
this._container = value;
},
}
};
Sys.Extended.UI.BarChart.registerClass("Sys.Extended.UI.BarChart", Sys.Extended.UI.ControlBase);