⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 charting.moz.js

📁 ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.
💻 JS
📖 第 1 页 / 共 5 页
字号:
else{major=Math.pow(10,zeros);var x=diff/major;if(x<2)
major=major/5;else if(x<5)
major=major/2;}
var minor=this._minorTickInterval!=null?this._minorTickInterval:major/5;var newMax=Math.ceil((max+major/2)/major)*major;var newMin;if(min==0)
newMin=0;else newMin=Math.floor((min-major/2)/major)*major;return this._cachedDefaultProperties={max:newMax,min:newMin,major:major,minor:minor};};_p.setFontSize=function(n){};_p.setVisible=function(b){};_p.getVisible=function()
{return this._desiredVisible;};_p._updateVisible=function()
{this.setVisible(this._desiredVisible);};_p.fromXmlElement=function(oNode){var s=oNode.getAttribute("Visible");if(s)this.setVisible(s!="false");s=oNode.getAttribute("ShowMajorTicks");if(s)this.setShowMajorTicks(s!="false");s=oNode.getAttribute("ShowMinorTicks");if(s)this.setShowMinorTicks(s=="true");s=oNode.getAttribute("ShowLabels");if(s)this.setShowLabels(s!="false");s=oNode.getAttribute("MajorTickInterval");if(s)this.setMajorTickInterval(Number(s));s=oNode.getAttribute("MinorTickInterval");if(s)this.setMinorTickInterval(Number(s));s=oNode.getAttribute("Maximum");if(s)this.setMaximum(Number(s));s=oNode.getAttribute("Minimum");if(s)this.setMinimum(Number(s));};_p.toXmlElement=function(oDoc){var el=oDoc.createElement("ValueAxis");el.setAttribute("Visible",String(this._desiredVisible));if(this._showMajorTicks!=null)
el.setAttribute("ShowMajorTicks",String(this._showMajorTicks));if(this._showMinorTicks!=null)
el.setAttribute("ShowMinorTicks",String(this._showMinorTicks));if(this._showLabels!=null)
el.setAttribute("ShowLabels",String(this._showLabels));if(this._majorTickInterval!=null)
el.setAttribute("MajorTickInterval",String(this._majorTickInterval));if(this._minorTickInterval!=null)
el.setAttribute("MinorTickInterval",String(this._minorTickInterval));if(this._maximum!=null)
el.setAttribute("Maximum",String(this._majorTickInterval));if(this._minimum!=null)
el.setAttribute("Minimum",String(this._minorTickInterval));return el;};_p._clearCache=function(){this._cachedDefaultProperties=null;};function BiChartCategoryAxisBase(oGraph)
{if(_biInPrototype)return;if(!oGraph)
return;BiComponent.call(this);this._graph=oGraph;this._labels=[];};_p=_biExtend(BiChartCategoryAxisBase,BiComponent,"BiChartCategoryAxisBase");_p._axisBetweenCategories=true;_p._desiredVisible=true;_p._majorTickInterval=null;_p._minorTickInterval=null;_p._showMajorTicks=true;_p._showMinorTicks=true;_p._showLabels=true;_p._fontSize=11;BiChartCategoryAxisBase.prototype.setMajorTickInterval=function(v){this._majorTickInterval=v;};BiChartCategoryAxisBase.prototype.setMinorTickInterval=function(v){this._minorTickInterval=v;};BiChartCategoryAxisBase.prototype.getShowMajorTicks=function(){return this._showMajorTicks;};BiChartCategoryAxisBase.prototype.setShowMajorTicks=function(v){this._showMajorTicks=v;};BiChartCategoryAxisBase.prototype.getShowMinorTicks=function(){return this._showMinorTicks;};BiChartCategoryAxisBase.prototype.setShowMinorTicks=function(v){this._showMinorTicks=v;};BiChartCategoryAxisBase.prototype.getShowLabels=function(){return this._showLabels;};BiChartCategoryAxisBase.prototype.setShowLabels=function(v){this._showLabels=v;};BiChartCategoryAxisBase.prototype.getAxisBetweenCategories=function(){return this._axisBetweenCategories;};BiChartCategoryAxisBase.prototype.setAxisBetweenCategories=function(v){this._axisBetweenCategories=v;};BiChartCategoryAxisBase.prototype.getFontSize=function(){return this._fontSize;};_p.getMaximum=function(){var l=this._graph.getCategories().length;if(this._axisBetweenCategories)
return l;return l-1;};_p.getMinimum=function(){return 0;};_p.getMajorTickInterval=function(){if(this._majorTickInterval!=null)return this._majorTickInterval;return 1;};_p.getMinorTickInterval=function(){if(this._minorTickInterval!=null)return this._minorTickInterval;return this.getMajorTickInterval()/2;};_p.dispose=function(){if(this._disposed)return;BiComponent.prototype.dispose.call(this);this._graph=null;for(var i=0;i<this._labels.length;i++)
this._labels[i]=null;this._labels=null;this._majorTicks=null;this._minorTicks=null;this._axisLine=null;};_p.setFontSize=function(n){};_p.setVisible=function(b){};_p.getVisible=function()
{return this._desiredVisible;};_p._updateVisible=function()
{this.setVisible(this._desiredVisible);};_p.fromXmlElement=function(oNode){var s=oNode.getAttribute("Visible");if(s)this.setVisible(s!="false");s=oNode.getAttribute("ShowMajorTicks");if(s)this.setShowMajorTicks(s!="false");s=oNode.getAttribute("ShowMinorTicks");if(s)this.setShowMinorTicks(s=="true");s=oNode.getAttribute("ShowLabels");if(s)this.setShowLabels(s!="false");s=oNode.getAttribute("MajorTickInterval");if(s)this.setMajorTickInterval(Number(s));s=oNode.getAttribute("MinorTickInterval");if(s)this.setMinorTickInterval(Number(s));s=oNode.getAttribute("AxisBetweenCategories");if(s)this.setAxisBetweenCategories(s!="false");};_p.toXmlElement=function(oDoc){var el=oDoc.createElement("CategoryAxis");el.setAttribute("Visible",String(this._desiredVisible));if(this._showMajorTicks!=null)
el.setAttribute("ShowMajorTicks",String(this._showMajorTicks));if(this._showMinorTicks!=null)
el.setAttribute("ShowMinorTicks",String(this._showMinorTicks));if(this._majorTickInterval!=null)
el.setAttribute("MajorTickInterval",String(this._majorTickInterval));if(this._minorTickInterval!=null)
el.setAttribute("MinorTickInterval",String(this._minorTickInterval));return el;};function BiChartAreaBase(oGraph)
{if(_biInPrototype)return;if(!oGraph)
return;BiComponent.call(this);this._graph=oGraph;};_p=_biExtend(BiChartAreaBase,BiComponent,"BiChartAreaBase");_p._fillColor=null;_p._strokeColor=null;_p._updateCoordSize=function(sCoordSize,sCoordOrigin){};_p.setFillColor=function(s){};_p.getFillColor=function(){return this._fillColor;};_p.hasFillColor=function(){return this._fillColor!=null;};_p.hasFillColor2=function(){return this._fillColor2!=null;};_p.getFillColor2=function(){return this._fillColor2;};_p.setFillColor2=function(s){this._fillColor2=s;};_p.hasFillOpacity=function(){return this._fillOpacity!=null;};_p.getFillOpacity=function(){return this._fillOpacity;};_p.setFillOpacity=function(n){this._fillOpacity=n;};_p.hasFillType=function(){return this._fillType!=null;};_p.getFillType=function(){return this._fillType;};_p.setFillType=function(s){this._fillType=s;};_p.hasFillAngle=function(){return this._fillAngle!=null;};_p.getFillAngle=function(){return this._fillAngle;};_p.setFillAngle=function(n){this._fillAngle=n;};_p.setStrokeColor=function(s){};_p.getStrokeColor=function(){return this._strokeColor;};_p.hasStrokeColor=function(){return this._strokeColor!=null;};_p.hasStrokeOpacity=function(){return this._strokeOpacity!=null;};_p.getStrokeOpacity=function(){return this._strokeOpacity;};_p.setStrokeOpacity=function(n){this._strokeOpacity=n;};_p.fromXmlElement=function(oNode){var n=oNode.selectSingleNode("Stroke/@Opacity");if(n)this.setStrokeOpacity(Number(n.text));n=oNode.selectSingleNode("Stroke/@Color");if(n)this.setStrokeColor(n.text);n=oNode.selectSingleNode("Fill/@Opacity");if(n)this.setFillOpacity(Number(n.text));n=oNode.selectSingleNode("Fill/@Color");if(n)this.setFillColor(n.text);n=oNode.selectSingleNode("Fill/@Color2");if(n)this.setFillColor2(n.text);n=oNode.selectSingleNode("Fill/@Type");if(n)this.setFillType(n.text);n=oNode.selectSingleNode("Fill/@Angle");if(n)this.setFillAngle(n.text);};_p.toXmlElement=function(oDoc){if(!this.hasFillColor()&&!this.hasStrokeColor()&&!this.hasFillColor2()&&!this.hasFillType()&&!this.hasFillAngle())
return oDoc.createDocumentFragment();var ca=oDoc.createElement("ChartArea");var el;if(this.hasStrokeColor()||this.hasStrokeOpacity()){el=oDoc.createElement("Stroke");if(this.hasStrokeOpacity())
el.setAttribute("Opacity",String(this.getStrokeOpacity()));if(this.hasStrokeColor())
el.setAttribute("Color",this.getStrokeColor());ca.appendChild(el);}
if(this.hasFillColor()||this.hasFillColor2()||this.hasFillType()||this.hasFillAngle()||this.hasFillOpacity()){el=oDoc.createElement("Fill");if(this.hasFillOpacity())
el.setAttribute("Opacity",String(this.getFillOpacity()));if(this.hasFillColor())
el.setAttribute("Color",this.getFillColor());if(this.hasFillColor2())
el.setAttribute("Color2",this.getFillColor2());if(this.hasFillType())
el.setAttribute("Type",this.getFillType());if(this.hasFillAngle())
el.setAttribute("Angle",this.getFillAngle());ca.appendChild(el);}
return ca;};_p.dispose=function(){if(this._disposed)return;BiComponent.prototype.dispose.call(this);this._graph=null;this._outlineRect=null
this._backgroundRect=null;this._fillEl=null;};function BiChartGridLinesBase(oGraph){if(_biInPrototype)return;BiComponent.call(this);this._graph=oGraph;};_p=_biExtend(BiChartGridLinesBase,BiComponent,"BiChartGridLinesBase");BiChartGridLinesBase.prototype.getGraph=function(){return this._graph;};_p._desiredVisible=true;_p._showMinorCategory=null;_p._showMinorValue=null;_p._showMajorCategory=null;_p._showMajorValue=null;_p._minorCategoryStrokeColor=null;_p._majorCategoryStrokeColor=null;_p._minorValueStrokeColor=null;_p._majorValueStrokeColor=null;_p.setShowMinorValue=function(b)
{if(this._showMinorValue!=b){this._showMinorValue=b;this._updateMinorValue();}};_p.setShowMajorValue=function(b)
{if(this._showMajorValue!=b){this._showMajorValue=b;this._updateMajorValue();}};_p.setShowMinorCategory=function(b)
{if(this._showMinorCategory!=b){this._showMinorCategory=b;this._updateMinorCategory();}};_p.setShowMajorCategory=function(b)
{if(this._showMajorCategory!=b){this._showMajorCategory=b;this._updateMajorCategory();}};_p.getShowMinorValue=function(){return this._showMinorValue!=null?this._showMinorValue:false;};_p.getShowMajorValue=function(){return this._showMajorValue!=null?this._showMajorValue:true;};_p.getShowMinorCategory=function(){return this._showMinorCategory!=null?this._showMinorCategory:false;};_p.getShowMajorCategory=function(){return this._showMajorCategory!=null?this._showMajorCategory:true;};_p.hasShowMinorValue=function(){return this._showMinorValue!=null;};_p.hasShowMajorValue=function(){return this._showMajorValue!=null;};_p.hasShowMinorCategory=function(){return this._showMinorCategory!=null;};_p.hasShowMajorCategory=function(){return this._showMajorCategory!=null;};_p.getMinorCategoryStrokeColor=function(){return this._minorCategoryStrokeColor||"#ddd";};_p.getMajorCategoryStrokeColor=function(){return this._majorCategoryStrokeColor||"#333";};_p.getMinorValueStrokeColor=function(){return this._minorValueStrokeColor||"#ddd";};_p.getMajorValueStrokeColor=function(){return this._majorValueStrokeColor||"#333";};_p.hasMinorCategoryStrokeColor=function(){return this._minorCategoryStrokeColor!=null;};_p.hasMajorCategoryStrokeColor=function(){return this._majorCategoryStrokeColor!=null;};_p.hasMinorValueStrokeColor=function(){return this._minorValueStrokeColor!=null;};_p.hasMajorValueStrokeColor=function(){return this._majorValueStrokeColor!=null;};_p.setMinorCategoryStrokeColor=function(s){};_p.setMajorCategoryStrokeColor=function(s){};_p.setMinorValueStrokeColor=function(s){};_p.setMajorValueStrokeColor=function(s){};_p.fromXmlElement=function(oElement){var n=oElement.selectSingleNode("MajorValue/@Visible");if(n)this.setShowMajorValue(n.text=="true");n=oElement.selectSingleNode("MinorValue/@Visible");if(n)this.setShowMinorValue(n.text=="true");n=oElement.selectSingleNode("MajorCategory/@Visible");if(n)this.setShowMajorCategory(n.text=="true");n=oElement.selectSingleNode("MinorCategory/@Visible");if(n)this.setShowMinorCategory(n.text=="true");n=oElement.selectSingleNode("MinorCategory/Stroke/@Color");if(n)this.setMinorCategoryStrokeColor(n.text);n=oElement.selectSingleNode("MajorCategory/Stroke/@Color");if(n)this.setMajorCategoryStrokeColor(n.text);n=oElement.selectSingleNode("MinorValue/Stroke/@Color");if(n)this.setMinorValueStrokeColor(n.text);n=oElement.selectSingleNode("MajorValue/Stroke/@Color");if(n)this.setMajorValueStrokeColor(n.text);};_p.toXmlElement=function(oDoc){var gd=oDoc.createElement("GridLines");var n;if(this.hasShowMajorValue()||this.hasMajorValueStrokeColor()){n=oDoc.createElement("MajorValue");if(this.hasShowMajorValue())
n.setAttribute("Visible",String(this.getShowMajorValue()));if(this.hasMajorValueStrokeColor()){el=oDoc.createElement("Stroke");el.setAttribute("Color",this.getMajorValueStrokeColor());n.appendChild(el);}
gd.appendChild(n);}
if(this.hasShowMinorValue()||this.hasMinorValueStrokeColor()){n=oDoc.createElement("MinorValue");if(this.hasShowMinorValue())
n.setAttribute("Visible",String(this.getShowMinorValue()));if(this.hasMinorValueStrokeColor()){el=oDoc.createElement("Stroke");el.setAttribute("Color",this.getMinorValueStrokeColor());n.appendChild(el);}
gd.appendChild(n);}
if(this.hasShowMajorCategory()||this.hasMajorCategoryStrokeColor()){n=oDoc.createElement("MajorCategory");if(this.hasShowMajorCategory())
n.setAttribute("Visible",String(this.getShowMa

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -