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

📄 charting.moz.js

📁 ajax 框价.是个好工具.javascript 矿家.可以用在任何平台.
💻 JS
📖 第 1 页 / 共 5 页
字号:
return cp.getFillOpacity();return 1;};_p.getFillColorForPoint=function(sSeriesId,sCategoryId){var g=this._graph;var p=g.getPointByIds(sSeriesId,sCategoryId);if(p&&p.hasFillColor())
return p.getFillColor();var cp=g.getChartPresentation(sSeriesId);if(cp&&cp.hasFillColor())
return cp.getFillColor();return this.getDefaultColor(sSeriesId,sCategoryId);};_p.getFillColor2ForPoint=function(sSeriesId,sCategoryId){var g=this._graph;var p=g.getPointByIds(sSeriesId,sCategoryId);if(p&&p.hasFillColor2())
return p.getFillColor2();var cp=g.getChartPresentation(sSeriesId);if(cp&&cp.hasFillColor2())
return cp.getFillColor2();return null;};_p.getFillTypeForPoint=function(sSeriesId,sCategoryId){var g=this._graph;var p=g.getPointByIds(sSeriesId,sCategoryId);if(p&&p.hasFillType())
return p.getFillType();var cp=g.getChartPresentation(sSeriesId);if(cp&&cp.hasFillType())
return cp.getFillType();return null;};_p.getFillAngleForPoint=function(sSeriesId,sCategoryId){var g=this._graph;var p=g.getPointByIds(sSeriesId,sCategoryId);if(p&&p.hasFillAngle())
return p.getFillAngle();var cp=g.getChartPresentation(sSeriesId);if(cp&&cp.hasFillAngle())
return cp.getFillAngle();return null;};_p.getStrokeOpacityForPoint=function(sSeriesId,sCategoryId){var g=this._graph;var p=g.getPointByIds(sSeriesId,sCategoryId);if(p&&p.hasStrokeOpacity())
return p.getStrokeOpacity();var cp=g.getChartPresentation(sSeriesId);if(cp&&cp.hasStrokeOpacity())
return cp.getStrokeOpacity();if(g.getChartType()=="line")
return this.getFillOpacityForPoint(sSeriesId,sCategoryId);return 1;};_p.getStrokeColorForPoint=function(sSeriesId,sCategoryId){var g=this._graph;var p=g.getPointByIds(sSeriesId,sCategoryId);if(p&&p.hasStrokeColor())
return p.getStrokeColor();var cp=g.getChartPresentation(sSeriesId);if(cp&&cp.hasStrokeColor())
return cp.getStrokeColor();if(g.getChartType()=="line")
return this.getFillColorForPoint(sSeriesId,sCategoryId);return"#000";};_p.getMarkerTypeForPoint=function(sSeriesId,sCategoryId){var g=this._graph;var p=g.getPointByIds(sSeriesId,sCategoryId);if(p&&p.hasMarkerType())
return p.getMarkerType();var cp=g.getChartPresentation(sSeriesId);if(cp&&cp.hasMarkerType())
return cp.getMarkerType();return this.getDefaultMarker(sSeriesId,sCategoryId);};_p.getMarkerVisibleForPoint=function(sSeriesId,sCategoryId){var g=this._graph;var p=g.getPointByIds(sSeriesId,sCategoryId);if(p&&p.hasMarkerVisible())
return p.getMarkerVisible();var cp=g.getChartPresentation(sSeriesId);if(cp&&cp.hasMarkerVisible())
return cp.getMarkerVisible();return true;};_p.getExplodeForPoint=function(sSeriesId,sCategoryId){var g=this._graph;var p=g.getPointByIds(sSeriesId,sCategoryId);if(p&&p.hasExplode())
return p.getExplode();var cp=g.getChartPresentation(sSeriesId);if(cp&&cp.hasExplode())
return cp.getExplode();return 0.05;};_p.getBarSpacingForPoint=function(sSeriesId,sCategoryId)
{if(this._barSpacing!=null)
return this._barSpacing;return 1;};_p.getStrokeOpacity=_p.getStrokeOpacityForPoint;_p.getStrokeColor=_p.getStrokeColorForPoint;_p.getFillOpacity=_p.getFillOpacityForPoint;_p.getFillColor=_p.getFillColorForPoint;_p.getFillColor2=_p.getFillColor2ForPoint;_p.getFillType=_p.getFillTypeForPoint;_p.getFillAngle=_p.getFillAngleForPoint;_p.getMarkerType=_p.getMarkerTypeForPoint;_p.getMarkerVisible=_p.getMarkerVisibleForPoint;_p.getExplode=_p.getExplodeForPoint;_p.getBarSpacing=_p.getBarSpacingForPoint;_p._setPropForPoint=function(sSetterName,sSeriesId,sCategoryId,oArg){var g=this._graph;var p=g.getPointByIds(sSeriesId,sCategoryId);if(!p){p=new BiChartPoint(g,sSeriesId,sCategoryId);g.addPoint(p);}
p[sSetterName](oArg);var c=g.getComponentByIds(sSeriesId,sCategoryId);if(c)
c[sSetterName](oArg);};_p.setStrokeOpacityForPoint=function(sSeriesId,sCategoryId,oArg){this._setPropForPoint("setStrokeOpacity",sSeriesId,sCategoryId,oArg);};_p.setStrokeColorForPoint=function(sSeriesId,sCategoryId,oArg){this._setPropForPoint("setStrokeColor",sSeriesId,sCategoryId,oArg);};_p.setFillOpacityForPoint=function(sSeriesId,sCategoryId,oArg){this._setPropForPoint("setFillOpacity",sSeriesId,sCategoryId,oArg);};_p.setFillColorForPoint=function(sSeriesId,sCategoryId,oArg){this._setPropForPoint("setFillColor",sSeriesId,sCategoryId,oArg);};_p.setFillColor2ForPoint=function(sSeriesId,sCategoryId,oArg){this._setPropForPoint("setFillColor2",sSeriesId,sCategoryId,oArg);};_p.setFillTypeForPoint=function(sSeriesId,sCategoryId,oArg){this._setPropForPoint("setFillType",sSeriesId,sCategoryId,oArg);};_p.setFillAngleForPoint=function(sSeriesId,sCategoryId,oArg){this._setPropForPoint("setFillAngle",sSeriesId,sCategoryId,oArg);};_p.setMarkerTypeForPoint=function(sSeriesId,sCategoryId,oArg){this._setPropForPoint("setMarkerType",sSeriesId,sCategoryId,oArg);};_p.setMarkerVisibleForPoint=function(sSeriesId,sCategoryId,oArg){this._setPropForPoint("setMarkerVisible",sSeriesId,sCategoryId,oArg);};_p.setExplodeForPoint=function(sSeriesId,sCategoryId,oArg){this._setPropForPoint("setExplode",sSeriesId,sCategoryId,oArg);};_p.setBarSpacingForPoint=function(sSeriesId,sCategoryId,oArg){this._barSpacing=oArg;};_p.dispose=function(){if(this._disposed)return;this._graph=null;};function BiChartMouseEvent(sType,oEvent,oSeries,oCategory){if(_biInPrototype)return;BiMouseEvent.call(this,sType,oEvent);this._event=oEvent;this._series=oSeries;this._category=oCategory;}
_p=_biExtend(BiChartMouseEvent,BiMouseEvent,"BiChartMouseEvent");_p._bubbles=false;_p._propagationStopped=true;BiChartMouseEvent.prototype.getSeries=function(){return this._series;};BiChartMouseEvent.prototype.getCategory=function(){return this._category;};_p.dispose=function(){if(this._disposed)return;BiMouseEvent.prototype.dispose.call(this);this._series=null;this._category=null;};function BiAbstractChartBase(oGraph,oSeries)
{if(_biInPrototype)return;if(_biInPrototype)return;if(!oGraph)
return;BiComponent.call(this);this._graph=oGraph;this._series=oSeries;this._seriesId=this._series.getId();};_p=_biExtend(BiAbstractChartBase,BiComponent,"BiAbstractChartBase");BiAbstractChartBase.prototype.getSeries=function(){return this._series;};BiAbstractChartBase.prototype.getGraph=function(){return this._graph;};_p.getComponentByCategoryId=function(sCatId){return null;};_p.getStrokeOpacity=function(){return this._graph.getPresentationManager().getStrokeOpacity(this._seriesId,null);};_p.getStrokeColor=function(){return this._graph.getPresentationManager().getStrokeColor(this._seriesId,null);};_p.getFillOpacity=function(){return this._graph.getPresentationManager().getFillOpacity(this._seriesId,null);};_p.getFillColor=function(){return this._graph.getPresentationManager().getFillColor(this._seriesId,null);};_p.getFillColor2=function(){return this._graph.getPresentationManager().getFillColor2(this._seriesId,null);};_p.getFillType=function(){return this._graph.getPresentationManager().getFillType(this._seriesId,null);};_p.getFillAngle=function(){return this._graph.getPresentationManager().getFillAngle(this._seriesId,null);};_p.getMarkerType=function(){return this._graph.getPresentationManager().getMarkerType(this._seriesId,null);};_p.getMarkerVisible=function(){return this._graph.getPresentationManager().getMarkerVisible(this._seriesId,null);};_p.getExplode=function(){return this._graph.getPresentationManager().getExplode(this._seriesId,null);};_p.getBarSpacing=function()
{return this._graph.getPresentationManager().getBarSpacing(this._seriesId,null);}
_p.getSupportsValueAxis=function(){return true;};_p.getSupportsCategoryAxis=function(){return true;};_p.getSupportsGridLines=function(){return true;};_p.getTitle=function(){return this._series.getTitle();};_p.getIconHtml=function(bHasText,bEnabled,sIconPosition,nIconTextGap,sClassName)
{var marginSide,blockStyle="";switch(sIconPosition){case"right":marginSide="left";break;case"top":marginSide="bottom";blockStyle="display:block;"
break;case"bottom":marginSide="top";blockStyle="display:block;"
break;default:marginSide="right";break;}
var iconTextGap=bHasText?nIconTextGap:0;return"<img alt=\"\" style=\"vertical-align:middle;border:0.05em solid "+this.getStrokeColor()+";overflow:hidden;background-color:"+this.getFillColor()+";"+"width:0.667em;height:0.667em;"+blockStyle+"margin-"+marginSide+":"+iconTextGap+"px;\""+(sClassName?" class=\""+sClassName+"\"":"")+" src=\""+application.getPath()+"images/blank.gif\">";};_p.dispose=function(){if(this._disposed)return;BiComponent.prototype.dispose.call(this);this._series=null;this._graph=null;};function BiAbstractChartSectionBase(oChart,oCategory)
{if(_biInPrototype)return;if(!oChart)
return;BiComponent.call(this);this._chart=oChart;this._series=oChart._series;this._seriesId=this._series.getId();this._category=oCategory;this._categoryId=oCategory.getId();this._graph=oChart.getGraph();};_p=_biExtend(BiAbstractChartSectionBase,BiComponent,"BiAbstractChartSectionBase");BiAbstractChartSectionBase.prototype.getChart=function(){return this._chart;};BiAbstractChartSectionBase.prototype.getSeries=function(){return this._series;};BiAbstractChartSectionBase.prototype.getCategory=function(){return this._category;};BiAbstractChartSectionBase.prototype.getGraph=function(){return this._graph;};_p._fillColor=null;_p._markerType=null;_p._markerVisible=null;_p._explode=null;_p.getStrokeOpacity=function(){return this._graph.getPresentationManager().getStrokeOpacity(this._seriesId,this._categoryId);};_p.getStrokeColor=function(){return this._graph.getPresentationManager().getStrokeColor(this._seriesId,this._categoryId);};_p.getFillOpacity=function(){return this._graph.getPresentationManager().getFillOpacity(this._seriesId,this._categoryId);};_p.getFillColor=function(){return this._graph.getPresentationManager().getFillColor(this._seriesId,this._categoryId);};_p.getFillColor2=function(){return this._graph.getPresentationManager().getFillColor2(this._seriesId,this._categoryId);};_p.getFillType=function(){return this._graph.getPresentationManager().getFillType(this._seriesId,this._categoryId);};_p.getFillAngle=function(){return this._graph.getPresentationManager().getFillAngle(this._seriesId,this._categoryId);};_p.getMarkerType=function(){return this._graph.getPresentationManager().getMarkerType(this._seriesId,this._categoryId);};_p.getMarkerVisible=function(){return this._graph.getPresentationManager().getMarkerVisible(this._seriesId,this._categoryId);};_p.getExplode=function(){return this._graph.getPresentationManager().getExplode(this._seriesId,this._categoryId);};_p.setStrokeColor=function(s){};_p.setFillOpacity=function(n){};_p.setFillColor=function(s){};_p.setStrokeOpacity=function(n){};_p.setFillColor2=function(s){};_p.setFillType=function(s){};_p.setFillAngle=function(s){};_p.setMarkerType=function(s){};_p.setMarkerVisible=function(s){};_p.setExplode=function(s){};_p.hasStrokeColor=function(){return this._strokeColor!=null;};_p.hasStrokeOpacity=function(){return this._strokeOpacity!=null;};_p.hasFillOpacity=function(){return this._fillOpacity!=null;};_p.hasFillColor=function(){return this._fillColor!=null;};_p.hasFillColor2=function(){return this._fillColor2!=null;};_p.hasFillType=function(){return this._fillType!=null;};_p.hasFillAngle=function(){return this._fillAngle!=null;};_p.hasMarkerType=function(){return this._markerType!=null;};_p.hasMarkerVisible=function(){return this._markerVisible!=null;};_p.hasExplode=function(){return this._explode!=null;};_p.getToolTip=function(){return this.getGraph().getToolTipForPoint(this._series,this._category);};_p.getContextMenu=function(){return this.getGraph().getContextMenuForPoint(this._series,this._category);};_p.getTitle=function(){return this._category.getTitle();};_p.getIconHtml=function(bHasText,bEnabled,sIconPosition,nIconTextGap,sClassName)
{var marginSide,blockStyle="";switch(sIconPosition){case"right":marginSide="left";break;case"top":marginSide="bottom";blockStyle="display:block;"
break;case"bottom":marginSide="top";blockStyle="display:block;"
break;default:marginSide="right";break;}
var iconTextGap=bHasText?nIconTextGap:0;return"<img alt=\"\" style=\"vertical-align:middle;border:0.05em solid "+this.getStrokeColor()+";overflow:hidden;background-color:"+this.getFillColor()+";"+"width:0.667em;height:0.667em;"+blockStyle+"margin-"+marginSide+":"+iconTextGap+"px;\""+(sClassName?" class=\""+sClassName+"\"":"")+" src=\""+application.getPath()+"images/blank.gif\">";};_p.dispose=function(){if(this._disposed)return;BiComponent.prototype.dispose.call(this);this._chart=null;this._series=null;this._category=null;this._graph=null;this._fillEl=null;};function BiChartValueAxisBase(oGraph)
{if(_biInPrototype)return;if(!oGraph)
return;BiComponent.call(this);this._graph=oGraph;this._labels=[];};_p=_biExtend(BiChartValueAxisBase,BiComponent,"BiChartValueAxisBase");_p._majorTickInterval=null;_p._minorTickInterval=null;_p._labelInterval=null;_p._maximum=null;_p._minimum=null;_p._showMajorTicks=false;_p._showMinorTicks=false;_p._showLabels=true;_p._fontSize=11;_p._desiredVisible=true;BiChartValueAxisBase.prototype.getShowMajorTicks=function(){return this._showMajorTicks;};BiChartValueAxisBase.prototype.getShowMinorTicks=function(){return this._showMinorTicks;};BiChartValueAxisBase.prototype.getShowLabels=function(){return this._showLabels;};BiChartValueAxisBase.prototype.getFontSize=function(){return this._fontSize;};_p.setMajorTickInterval=function(n){this._majorTickInterval=n;this._clearCache();};_p.setMinorTickInterval=function(n){this._minorTickInterval=n;this._clearCache();};_p.setMaximum=function(n){this._maximum=n;this._clearCache();};_p.setMinimum=function(n){this._minimum=n;this._clearCache();};_p.setShowMajorTicks=function(b){if(this._showMajorTicks!=b){this._showMajorTicks=b;this._updateMajorTicks();}};_p.setShowMinorTicks=function(b){if(this._showMinorTicks!=b){this._showMinorTicks=b;this._updateMinorTicks();}};_p.setShowLabels=function(b){if(this._showLabel!=b){this._showLabels=b;this._updateLabels();}};_p.getMaximumValue=function(){if(this._graph._getPercentageStack())
return 1;var s=this._graph.getSeries();if(this._graph._getStackedChart()){var cats=this._graph.getCategories();var l=cats.length;var sum,id;var max=0;for(var j=0;j<l;j++){sum=0;id=cats[j].getId();for(var i=0;i<s.length;i++){sum+=Math.abs(s[i].getValueByCategoryId(id));}
max=Math.max(max,sum);}
return max;}
else{var maxValue= -Infinity;for(var i=0;i<s.length;i++)
maxValue=Math.max(maxValue,s[i].getMaximumValue());return maxValue;}};_p.getMinimumValue=function(){if(this._graph._getStackedChart())
return 0;var minValue=Infinity;var s=this._graph.getSeries();for(var i=0;i<s.length;i++)
minValue=Math.min(minValue,s[i].getMinimumValue());return minValue;};_p.getMaximum=function(){if(this._maximum!=null)return this._maximum;if(this._graph._getPercentageStack())
return 1;return this._getDefaultProperties().max;};_p.getMinimum=function(){if(this._minimum!=null)return this._minimum;return this._getDefaultProperties().min;};_p.getMajorTickInterval=function(){if(this._majorTickInterval!=null)return this._majorTickInterval;return this._getDefaultProperties().major;};_p.getMinorTickInterval=function(){if(this._minorTickInterval!=null)return this._minorTickInterval;return this._getDefaultProperties().minor;};_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._clearCache();this._majorTicks=null;this._minorTicks=null;this._axisLine=null;};_p._getDefaultProperties=function(){if(this._cachedDefaultProperties!=null)return this._cachedDefaultProperties;var max=this._maximum!=null?this._maximum:this.getMaximumValue();var min=this._minimum!=null?this._minimum:Math.min(0,this.getMinimumValue());var diff=max-min;var zeros=Math.floor(Math.log(diff)/Math.log(10));var major;if(this._majorTickInterval!=null){major=this._majorTickInterval;}

⌨️ 快捷键说明

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