-- corr
This commit is contained in:
@@ -2,9 +2,6 @@
|
||||
|
||||
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';
|
||||
@@ -18,6 +15,7 @@ Sys.Extended.UI.BarChart = function(element) {
|
||||
this._valueAxisLineColor = '';
|
||||
this._categoryAxisLineColor = '';
|
||||
this._baseLineColor = '';
|
||||
this._container = null;
|
||||
|
||||
// variables
|
||||
this.yMax = 0;
|
||||
@@ -51,6 +49,8 @@ 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,9 +349,7 @@ Sys.Extended.UI.BarChart.prototype = {
|
||||
svgContents = svgContents + '<stop offset="100%" id="LinearGradient3"></stop></linearGradient>';
|
||||
svgContents = svgContents + '</defs>';
|
||||
|
||||
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);
|
||||
svgContents = svgContents + String.format('<rect id="ChartBackGround" width="{0}" height="{1}" style="opacity: 0"/>', this._chartWidth, this._chartHeight);
|
||||
|
||||
return svgContents;
|
||||
},
|
||||
@@ -840,7 +838,14 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user