unresponsive mode in the graph pages due to long-running script

6 posts, 0 answers
  1. Satyanarayana
    Satyanarayana avatar
    5 posts
    Member since:
    Jan 2013

    Posted 22 Jan 2013 Link to this post


    My graphs are getting into I am using Stock Charts
    unresponsive mode in the graph pages due to long-running script
  2. Satyanarayana
    Satyanarayana avatar
    5 posts
    Member since:
    Jan 2013

    Posted 22 Jan 2013 Link to this post

    kendo.dataviz.min is stopped loading
  3. Satyanarayana
    Satyanarayana avatar
    5 posts
    Member since:
    Jan 2013

    Posted 22 Jan 2013 Link to this post

    kendo.all.min is stopped loading

    error in the following line 27

    return null===t?null:this.options.categories[t]},translateRange:function(e){var t=this,n=t.options,i=t.lineBox(),r=n.vertical?i.height():i.width(),o=n.categories.length,a=r/o,s=St(e/a,rn);return{min:s,max:o+s}},scaleRange:function(e){var t=this,n=t.options,i=n.categories.length,r=e*i;return{min:-r,max:i+r}},labelsCount:function(){return this.options.categories.length},createAxisLabel:function(e,t){var n=this,i=n.options,r=i.dataItems?i.dataItems[e]:null,o=kt(i.categories[e])?i.categories[e]:"";return new rt(o,e,r,t)}}),Ti=rt.extend({formatValue:function(e,t){return Y.toString(e,t.format,t.culture)}}),Si=Ci.extend({init:function(e){var t,n,i=this;e=e||{},e=et({roundToBaseUnit:!0},e,{min:v(e.min),max:v(e.max)}),e.categories&&e.categories.length>0&&(t=(e.baseUnit||"").toLowerCase(),n=t!==Rt&&!yt(t,_i),n&&(e.baseUnit=i.defaultBaseUnit(e)),(t===Rt||e.baseUnitStep===Pt)&&i.autoBaseUnit(e),i.groupCategories(e)),Ci.fn.init.call(i,e)},options:{type:Jt,labels:{dateFormats:xi},autoBaseUnitSteps:{minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10},translateRange:function(e){var t=this,n=Ci.fn.translateRange.call(t,e),i=t.options,r=i.baseUnit,o=W.round(n.min),a=i.weekStartDay;return{min:_(i.min,o,r,a),max:_(i.max,o,r,a)}},scaleRange:function(e){for(var t,n,i=this,r=i.options,o=W.abs(e),a=r.min,s=r.max;o--;)t=y(a,s),n=W.round(.1*t),0>e?(a=C(a,n),s=C(s,-n)):(a=C(a,-n),s=C(s,n));return{min:a,max:s}},defaultBaseUnit:function(e){var t,n,i,r,o,a=e.categories,s=kt(a)?a.length:0,l=wn;for(t=0;s>t;t++)n=v(a[t]),n&&r&&(i=n-r,i>0&&(l=W.min(l,i),o=l>=Jn?pi:l>=Xn-3*Qn?Tn:l>=Kn?li:l>=Qn?en:l>=Yn?hn:Cn)),r=n;return o||en},range:function(e){e=e||this.options;var t=v(e.categories),n=e.baseUnit===Rt,i=n?_i[0]:e.baseUnit,r=b(e.min),a=b(e.max),s=o(t),l=b(s.min),d=b(s.max);return e.roundToBaseUnit?{min:_(r||l,0,i,e.weekStartDay),max:_(a||d,1,i,e.weekStartDay)}:{min:v(r||l),max:v(a||d)}},autoBaseUnit:function(e){for(var t,n,i,r=this,o=r.range(e),a=e.baseUnit===Rt,s=0,l=a?_i[s++]:e.baseUnit,d=o.max-o.min,c=d/Zn[l],u=c,p=e.maxDateGroups||r.options.maxDateGroups,f=et({},r.options.autoBaseUnitSteps,e.autoBaseUnitSteps);c>p;)if(t=t||f[l].slice(0),i=t.shift())n=i,c=u/n;else{if(!a){c>p&&(n=W.ceil(u/p));break}l=_i[s++]||Tt(_i),u=d/Zn[l],t=null}e.baseUnitStep=n,e.baseUnit=l},getMajorTickPositions:function(){var e=this,t=e.options,n=t.categories,i=[];if(t.roundToBaseUnit||0===n.length)i=Ci.fn.getMajorTickPositions.call(e);else{var r,o,a=t.vertical,s=t.reverse,l=e.lineBox(),d=a?l.height():l.width(),c=n[0].getTime(),u=e.range(e.options),p=u.max-u.min,f=d/p,h=n.length,m=(a?-1:1)*(s?-1:1),g=1===m?1:2,v=1===m?2:1,b=l[(a?ui:ci)+g],_=l[(a?ui:ci)+v],x=b;for(r=0;h>r;r++)o=n[r]-c,x=b+o*f*m,i.push(St(x,Qt));Tt(i)!==_&&i.push(_)}return i},groupCategories:function(e){var t,n,i,r,o,a,s=this,l=v(e.categories),d=e.baseUnit,c=e.baseUnitStep||1,u=s.range(e),p=e.roundToBaseUnit,f=[],h=s.categoryMap=[],m=[];for(t=p?_(u.max,c-1,d,e.weekStartDay):u.max,n=u.min;t>n;n=i){for(i=_(n,c,d,e.weekStartDay),f.push(n),r=[],o=H(l,n);l.length>o;o++)if(a=l[o],a&&a>=n){if(!(i>a))break;e.justified&&N(a,t)?m.push(o):r.push(o)}h.push(r)}m.length&&(f.push(t),h.push(m)),e.min=f[0],e.max=p?Tt(f):t,e.categories=f},createAxisLabel:function(e,t){var n=this.options,i=n.dataItems?n.dataItems[e]:null,r=n.categories[e],o=n.baseUnit,a=!0,s=t.dateFormats[o];if(n.justified){var l=k(r,o,n.weekStartDay);a=N(l,r)}return t=et({format:s},t,{visible:a}),new Ti(r,e,i,t)}}),Ai=it.extend({init:function(e,t,n){var i=this;n=n||{},et(n,{min:v(n.min),max:v(n.max),axisCrossingValue:v(n.axisCrossingValues||n.axisCrossingValue)}),n=i.applyDefaults(v(e),v(t),n),it.fn.init.call(i,n)},options:{type:Jt,labels:{dateFormats:xi}},applyDefaults:function(e,n,i){var r=this,o=i.min||e,a=i.max||n,s=i.baseUnit||r.timeUnits(a-o),l=Zn[s],d=k(b(o)-1,s),c=w(b(a)+1,s),u=i.majorUnit?i.majorUnit:t,p=u||nt.ceil(nt.autoMajorUnit(d.getTime(),c.getTime()),l)/l,f=T(d,c,s),h=nt.ceil(f,p),m=h-f,g=W.floor(m/2),v=m-g;return i.baseUnit||delete i.baseUnit,et({baseUnit:s,min:_(d,-g,s),max:_(c,v,s),minorUnit:p/5},i,{majorUnit:p})},range:function(){var e=this.options;return{min:e.min,max:e.max}},getDivisions:function(e){var t=this.options;return W.floor(T(t.min,t.max,t.baseUnit)/e+1)},getTickPositions:function(e){var t,n=this,i=n.options,r=i.vertical,o=i.reverse,a=n.lineBox(),s=r?a.height():a.width(),l=T(i.min,i.max,i.baseUnit),d=s/l,c=e*d,u=n.getDivisions(e),p=(r?-1:1)*(o?-1:1),f=1===p?1:2,h=a[(r?ui:ci)+f],m=[];for(t=0;u>t;t++)m.push(St(h,Qt)),h+=c*p;return m},getMajorTickPositions:function(){var e=this;return e.getTickPositions(e.options.majorUnit)},getMinorTickPositions:function(){var e=this;return e.getTickPositions(e.options.minorUnit)},getSlot:function(e,t){return ut.fn.getSlot.call(this,v(e),v(t))},getValue:function(e){var t=ut.fn.getValue.call(this,e);return null!==t?v(t):null},labelsCount:function(){return this.getDivisions(this.options.majorUnit)},createAxisLabel:function(e,t){var n=this.options,i=e*n.majorUnit,r=_(n.min,i,n.baseUnit),o=t.dateFormats[n.baseUnit];return t.format=t.format||o,new Ti(r,e,null,t)},timeUnits:function(e){var t=hn;return e>=Jn?t=pi:e>=Xn?t=Tn:e>=Kn?t=li:e>=Qn&&(t=en),t}}),Di=lt.extend({init:function(e){var t=this;lt.fn.init.call(t,e)},options:{vertical:!1,gap:0,spacing:0},reflow:function(e){var t,n,i=this,r=i.options,o=r.vertical,a=o?ui:ci,s=i.children,l=r.gap,d=r.spacing,c=s.length,u=c+l+d*(c-1),p=(o?e.height():e.width())/u,f=e[a+1]+p*(l/2);for(n=0;c>n;n++)t=(s[n].box||e).clone(),t[a+1]=f,t[a+2]=f+p,s[n].reflow(t),c-1>n&&(f+=p*d),f+=p}}),Fi=lt.extend({init:function(e){var t=this;lt.fn.init.call(t,e)},options:{vertical:!0,isReversed:!1},reflow:function(e){var t,n,i=this,r=i.options,o=r.vertical,a=o?ci:ui,s=o?ui:ci,l=e[s+2],d=i.children,c=i.box=new at,u=d.length;for(t=r.isReversed?o?Bt:_n:o?ei:On,n=0;u>n;n++){var p=d[n],f=p.box.clone();f.snapTo(e,a),p.options&&(p.options.stackBase=l),0===n?c=i.box=f.clone():f.alignTo(d[n-1].box,t),p.reflow(f),c.wrap(f)}}}),Ei={click:function(t,n){var i=this;t.trigger(Wn,{value:i.value,category:i.category,series:i.series,dataItem:i.dataItem,element:e(n.target)})},hover:function(t,n){var i=this;t.trigger(qn,{value:i.value,category:i.category,series:i.series,dataItem:i.dataItem,element:e(n.target)})}},Ii=lt.extend({init:function(e,t){var n=this;lt.fn.init.call(n,t),n.value=e,n.options.id=Dt(),n.enableDiscovery()},options:{color:di,border:{width:1},vertical:!0,overlay:{gradient:fn},aboveAxis:!0,labels:{visible:!1},animation:{type:Nt},opacity:1},render:function(){var e,t=this,n=t.value,i=t.options,r=i.labels,o=n;t._rendered||(t._rendered=!0,r.visible&&n&&(r.template?(e=Z(r.template),o=e({dataItem:t.dataItem,category:t.category,value:t.value,series:t.series})):r.format&&(o=xt(r.format,o)),t.append(new wi(o,et({vertical:i.vertical,id:Dt()},i.labels)))))},reflow:function(e){this.render();var t=this,n=t.options,i=t.children,r=i[0];t.box=e,r&&(r.options.aboveAxis=n.aboveAxis,r.reflow(e))},getViewElements:function(e){var t=this,n=t.options,i=n.vertical,r=n.border.width>0?{stroke:t.getBorderColor(),strokeWidth:n.border.width,dashType:n.border.dashType}:{},o=t.box,a=et({id:n.id,fill:n.color,fillOpacity:n.opacity,strokeOpacity:n.opacity,vertical:n.vertical,aboveAxis:n.aboveAxis,stackBase:n.stackBase,animation:n.animation,data:{modelId:n.modelId}},r),s=[];return o.width()>0&&o.height()>0&&(n.overlay&&(a.overlay=et({rotation:i?0:90},n.overlay)),s.push(e.createRect(o,a))),_t(s,lt.fn.getViewElements.call(t,e)),s},highlightOverlay:function(e,t){var n=this,i=n.box;return t=et({data:{modelId:n.options.modelId}},t),e.createRect(i,t)},getBorderColor:function(){var e=this,t=e.options,n=t.color,i=t.border.color;return kt(i)||(i=new dt(n).brightness(Ot).toHex()),i},tooltipAnchor:function(e,t){var n,i,r=this,o=r.options,a=r.box,s=o.vertical,l=o.aboveAxis;return s?(n=a.x2+ni,i=l?a.y1:a.y2-t):o.isStacked?(n=a.x2-e,i=a.y1-t-ni):(n=a.x2+ni,i=a.y1),new pt(n,i)},formatValue:function(e){var t=this;return t.owner.formatPointValue(t,e)}});et(Ii.fn,Ei);var Pi=lt.extend({init:function(e,t){var n=this;lt.fn.init.call(n,t),n.plotArea=e,n.categoryAxis=e.seriesCategoryAxis(t.series[0]),n.valueAxisRanges={},n.points=[],n.categoryPoints=[],n.seriesPoints=[],n.render()},options:{series:[],invertAxes:!1,isStacked:!1},render:function(){var e=this;e.traverseDataPoints(G(e.addValue,e))},addValue:function(e,t,n,i,r){var o,a=this,s=e.value,l=a.categoryPoints[n],d=a.seriesPoints[r];l||(a.categoryPoints[n]=l=[]),d||(a.seriesPoints[r]=d=[]),a.updateRange(s,n,i),o=a.createPoint(e,t,n,i,r),o&&(o.category=t,o.series=i,o.seriesIx=r,o.owner=a,o.dataItem=i.data[n]),a.points.push(o),d.push(o),l.push(o)},updateRange:function(e,t,n){var i=this,r=n.axis,o=i.valueAxisRanges[r];kt(e)&&!isNaN(e)&&(o=i.valueAxisRanges[r]=o||{min:wn,max:yn},o.min=W.min(o.min,e),o.max=W.max(o.max,e))},seriesValueAxis:function(e){var t=this.plotArea,n=e.axis,i=n?t.namedValueAxes[n]:t.valueAxis;if(!i)throw Error("Unable to locate value axis with name "+n);return i},reflow:function(e){var t,n,i,r=this,o=r.options,a=o.invertAxes,s=0,l=r.categorySlots=[],d=r.points,c=r.categoryAxis;r.traverseDataPoints(function(e,o,u,p){var f=e.value;t=r.seriesValueAxis(p),n=r.categoryAxisCrossingValue(t),i=d[s++],i&&i.plotValue&&(f=i.plotValue);var h=r.categorySlot(c,u,t),m=r.valueSlot(t,f,n),g=a?m:h,v=a?h:m,b=new at(g.x1,v.y1,g.x2,v.y2),_=t.options.reverse?n>f:f>=n;i&&(i.options.aboveAxis=_,i.reflow(b)),l[u]||(l[u]=h)}),r.reflowCategories(l),r.box=e},categoryAxisCrossingValue:function(e){var t=this.categoryAxis,n=e.options,i=[].concat(n.axisCrossingValues||n.axisCrossingValue);return i[t.axisIndex||0]||0},reflowCategories:function(){},valueSlot:function(e,t,n){return e.getSlot(t,n)},categorySlot:function(e,t){return e.getSlot(t)},traverseDataPoints:function(e){var t,n,i,r,o,a=this,s=a.options,l=s.series,d=a.categoryAxis.options.categories||[],c=h(l),u=a.bindableFields(),p=l.length;for(t=0;c>t;t++)for(n=0;p>n;n++)r=d[t],o=l[n],i=A(o,t,u),e(i,r,t,o,n)},bindableFields:function(){return[]},formatPointValue:function(e,t){return xt(t,e.value)}}),Ri=Pi.extend({init:function(e,t){var n=this;n._groupTotals={},n._groups=[],Pi.fn.init.call(n,e,t)},render:function(){var e=this;Pi.fn.render.apply(e),e.computeAxisRanges()},createPoint:function(e,n,i,r){var o,a,s=this,l=e.value,d=s.options,c=s.children,u=s.options.isStacked,p=et({},r.labels);if(u&&p.position==In&&(p.position=vn),o=new Ii(l,et({},{vertical:!d.invertAxes,overlay:r.overlay,labels:p,isStacked:u},r,{color:e.fields.color||t})),a=c[i],a||(a=new Di({vertical:d.invertAxes,gap:d.gap,spacing:d.spacing}),s.append(a)),u){var f,h,m=s.getStackWrap(r,a);0===m.children.length?(f=new Fi({vertical:!d.invertAxes}),h=new Fi({vertical:!d.invertAxes,isReversed:!0}),m.append(f,h)):(f=m.children[0],h=m.children[1]),l>0?f.append(o):h.append(o)}else a.append(o);return o},getStackWrap:function(e,t){var n,i,r=t.children,o=e.stack,a=r.length;if(typeof o===Gn){for(i=0;a>i;i++)if(r[i]._stackGroup===o){n=r[i];break}}else n=r[0];return n||(n=new lt,n._stackGroup=o,t.append(n)),n},updateRange:function(e,t,n){var i=this,r=i.options.isStacked,o=i.groupTotals(n.stack),a=o.positive,s=o.negative;kt(e)&&(r?f(e>0?a:s,t,e):Pi.fn.updateRange.apply(i,arguments))},computeAxisRanges:function(){var e,t,n=this,o=n.options.isStacked;o&&(e=n.options.series[0].axis,t=n.categoryTotals(),n.valueAxisRanges[e]={min:i(t.negative.concat(0)),max:r(t.positive.concat(0))})},seriesValueAxis:function(e){var t=this,n=t.options;return Pi.fn.seriesValueAxis.call(t,n.isStacked?t.options.series[0]:e)},valueSlot:function(e,t,n){return e.getSlot(t,this.options.isStacked?0:n)},categorySlot:function(e,t,n){var i,r,o=this,a=o.options,s=e.getSlot(t);return a.isStacked&&(r=n.getSlot(0,0),i=a.invertAxes?ci:ui,s[i+1]=s[i+2]=r[i+1]),s},reflow:function(e){var t=this;t.setStacksDirection(),Pi.fn.reflow.call(t,e)},setStacksDirection:function(){var e,t,n,i,r=this,o=r.options,a=o.series,s=h(a),l=r.children,d=a.length;for(t=0;d>t;t++)for(n=a[t],i=r.seriesValueAxis(n),e=0;s>e;e++){var c=l[e],u=r.getStackWrap(n,c),p=u.children,f=p[0],m=p[1];f&&m&&(f.options.isReversed=i.options.reverse,m.options.isReversed=!i.options.reverse)}},reflowCategories:function(e){var t,n=this,i=n.children,r=i.length;for(t=0;r>t;t++)i[t].reflow(e[t])},groupTotals:function(e){var t=this,n=typeof e===Gn?e:"default",i=t._groupTotals[n];return i||(i=t._groupTotals[n]={positive:[],negative:[]},t._groups.push(n)),i},categoryTotals:function(){var e,t,n,i=this,r=i._groups,o=i._groupTotals,a={positive:[],negative:[]},s=r.length;for(n=0;s>n;n++)e=r[n],t=o[e],_t(a.positive,t.positive),_t(a.negative,t.negative);return a},bindableFields:function(){return["color"]}}),zi=st.extend({init:function(e){var t=this;st.fn.init.call(t,e)},options:{type:qt,align:jt,vAlign:jt},getViewElements:function(e,t){var n,i,r=this,o=r.options,a=o.type,s=r.paddingBox,l=s.width()/2;return o.visible&&r.hasBox()?(i=et(r.elementStyle(),t),n=a===ri?e.createPolyline([new pt(s.x1+l,s.y1),new pt(s.x1,s.y2),new pt(s.x2,s.y2)],!0,i):a===qt?e.createCircle(new pt(St(s.x1+l,Qt),St(s.y1+s.height()/2,Qt)),l,i):e.createRect(s,i),[n]):[]}}),Ni=lt.extend({init:function(e,t){var n=this;lt.fn.init.call(n,t),n.value=e,n.options.id=Dt(),n.enableDiscovery()},options:{aboveAxis:!0,vertical:!0,markers:{visible:!0,background:di,size:kn,type:qt,border:{width:2},opacity:1},labels:{visible:!1,position:Et,margin:wt(3),padding:wt(4),animation:{type:pn,delay:mn}}},render:function(){var e=this,t=e.options,n=t.markers,i=t.labels,r=n.background,o=et({},n.border),a=e.value;if(!e._rendered&&(e._rendered=!0,kt(o.color)||(o.color=new dt(r).brightness(Ot).toHex()),e.marker=new zi({id:e.options.id,visible:n.visible&&n.size,type:n.type,width:n.size,height:n.size,background:r,border:o,opacity:n.opacity,zIndex:n.zIndex,animation:n.animation}),e.append(e.marker),i.visible)){if(i.template){var s=Z(i.template);a=s({dataItem:e.dataItem,category:e.category,value:e.value,series:e.series})}else i.format&&(a=e.formatValue(i.format));e.label=new gt(a,et({id:Dt(),align:jt,vAlign:jt,margin:{left:5,right:5}},i)),e.append(e.label)}},markerBox:function(){return this.marker.box},reflow:function(e){var t,n=this,i=n.options,r=i.vertical,o=i.aboveAxis;n.render(),n.box=e,t=e.clone(),r?o?t.y1-=t.height():t.y2+=t.height():o?t.x1+=t.width():t.x2-=t.width(),n.marker.reflow(t),n.reflowLabel(t)},reflowLabel:function(e){var t=this,n=t.options,i=t.marker,r=t.label,o=n.labels.position;r&&(o=o===Et?ei:o,o=o===Mt?Bt:o,r.reflow(e),r.box.alignTo(i.box,o),r.reflow(r.box))},highlightOverlay:function(e,t){var n=this,i=n.marker;return t=et({data:{modelId:n.options.modelId}},t),i.getViewElements(e,et(t,{fill:i.options.border.color,fillOpacity:1,strokeOpacity:0}))[0]},tooltipAnchor:function(e,t){var n=this,i=n.marker.box,r=n.options.aboveAxis;return new pt(i.x2+ni,r?i.y1-t:i.y2)},formatValue:function(e){var t=this;return t.owner.formatPointValue(t,e)}});et(Ni.fn,Ei);var Oi=Ni.extend({init:function(e,t){var n=this;Ni.fn.init.call(n,e,t),n.category=e.category},options:{labels:{position:jt},highlight:{opacity:1,border:{width:1}}},highlightOverlay:function(e){var t=this,n=t.options,i=n.highlight,r=i.border.width,o=n.markers,a=t.box.center(),s=o.size/2-r/2,l=new dt(o.background).brightness(Ot).toHex();return e.createCircle(a,s,{data:{modelId:t.options.modelId},stroke:l,strokeWidth:r})},toggleHighlight:function(e){var n=this,i=n.options.highlight.opacity;n.highlighted=!n.highlighted;var r=n.marker.getViewElements(e,{fillOpacity:n.highlighted?i:t})[0];r.refresh($.getElementById(this.options.id))}}),Mi=lt.extend({init:function(e,t,n){var i=this;lt.fn.init.call(i),i.linePoints=e,i.series=t,i.seriesIx=n,i.options.id=Dt(),i.enableDiscovery()},options:{},lineWidth:function(){return this.series.width},points:function(e){var t,n,i=this,r=i.linePoints.concat(e||[]),o=i.lineWidth(),a=[],s=r.length;for(t=0;s>t;t++)n=r[t].markerBox().center(),kt(o)&&(0===t?n.x+=o/2:t===s-1&&(n.x-=o/2)),a.push(new pt(n.x,n.y));return a},getViewElements:function(e){var t=this,n=t.series;return lt.fn.getViewElements.call(t,e),[e.createPolyline(t.points(),!1,{id:t.options.id,stroke:n.color,strokeWidth:n.width,strokeOpacity:n.opacity,fill:"",dashType:n.dashType,data:{modelId:t.options.modelId},zIndex:-1})]},aliasFor:function(e,t){var n=this,i=n.seriesIx;return n.parent.getNearestPoint(t.x,t.y,i)}}),Hi={renderSegments:function(){var e,t,n,i,r,o,a,s=this,l=s.options,d=l.series,c=s.seriesPoints,u=c.length,p=[];for(t=0;u>t;t++){for(n=c[t],a=n.length,e=d[t],i=[],o=0;a>o;o++)r=n[o],r?i.push(r):s.seriesMissingValues(e)!==bn&&(i.length>1&&p.push(s.createSegment(i,e,t,Tt(p))),i=[]);i.length>1&&p.push(s.createSegment(i,e,t,Tt(p)))}s._segments=p,s.append.apply(s,p)},seriesMissingValues:function(e){var t=e.missingValues,n=!t&&this.options.isStacked;return n?fi:t},createSegment:function(e,t,n){return new Mi(e,t,n)},getNearestPoint:function(e,t,n){var i,r,o,a,s,l=this,d=l.options.invertAxes,c=d?ui:ci,u=d?t:e,p=l.seriesPoints[n],f=wn,h=p.length;for(s=0;h>s;s++)i=p[s],i&&kt(i.value)&&null!==i.value&&(r=i.box,o=W.abs(r.center()[c]-u),f>o&&(a=i,f=o));return a}},Bi=Pi.extend({init:function(e,t){var n=this;n._stackAxisRange={min:wn,max:yn},n._categoryTotals=[],n.enableDiscovery(),Pi.fn.init.call(n,e,t)},render:function(){var e=this;Pi.fn.render.apply(e),e.computeAxisRanges(),e.renderSegments()},createPoint:function(e,t,n,i){var r,o=this,a=e.value,s=o.options,l=s.isStacked,d=o.categoryPoints[n],c=o.seriesMissingValues(i),u=0;if(!kt(a)||null===a){if(c!==fi)return null;a=0}var p=new Ni(a,et({vertical:!s.invertAxes,markers:{border:{color:i.color}}},i));return l&&(r=O(d),r&&(u=r.plotValue),p.plotValue=a+u),o.append(p),p},updateRange:function(e,t){var n,i=this,r=i.options.isStacked,a=i._stackAxisRange,s=i._categoryTotals;kt(e)&&(r?(f(s,t,e),n=o(s),a.min=W.min(a.min,n.min),a.max=W.max(a.max,n.max)):Pi.fn.updateRange.apply(i,arguments))},computeAxisRanges:function(){var e,t=this,n=t.options.isStacked;n&&(e=t.options.series[0].axis,t.valueAxisRanges[e]=t._stackAxisRange)},getViewElements:function(e){var t=this,n=Pi.fn.getViewElements.call(t,e),i=e.createGroup({animation:{type:$t}});return i.children=n,[i]}});et(Bi.fn,Hi);var Li=Mi.extend({init:function(e,t,n,i){var r=this;r.stackPoints=t,Mi.fn.init.call(r,e,n,i)},lineWidth:function(){var e=this.series.line||{};return e.width},points:function(){var e,t,n=this,i=n.parent,r=i.options.isStacked&&n.seriesIx>0,o=i.plotArea,a=i.options.invertAxes,s=i.seriesValueAxis(n.series),l=s.lineBox(),d=o.seriesCategoryAxis(n.series),c=d.lineBox(),u=a?c.x1:c.y1,p=n.stackPoints,f=Mi.fn.points.call(n,p);return u=a?P(u,l.x1,l.x2):P(u,l.y1,l.y2),!r&&f.length>1&&(e=f[0],t=Tt(f),a?(f.unshift(new pt(u,e.y)),f.push(new pt(u,t.y))):(f.unshift(new pt(e.x,u)),f.push(new pt(t.x,u)))),f},getViewElements:function(e){var t=this,n=t.series,i=et({color:n.color,opacity:n.opacity},n.line);return lt.fn.getViewElements.call(t,e),[e.createPolyline(t.points(),!1,{id:t.options.id,stroke:i.color,strokeWidth:i.width,strokeOpacity:i.opacity,dashType:i.dashType,fillOpacity:n.opacity,fill:n.color,stack:n.stack,data:{modelId:t.options.modelId},zIndex:-1})]}}),Vi=Bi.extend({createSegment:function(e,t,n,i){var r,o=this,a=o.options;return a.isStacked&&n>0&&i&&(r=i.linePoints.slice(0).reverse()),new Li(e,r,t,n)},seriesMissingValues:function(e){return e.missingValues||fi}}),Ui=lt.extend({init:function(e,t){var n=this;lt.fn.init.call(n,t),n.plotArea=e,n.xAxisRanges={},n.yAxisRanges={},n.points=[],n.seriesPoints=[],n.render()},options:{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"}},render:function(){var e=this;e.traverseDataPoints(G(e.addValue,e))},addValue:function(e,t){var n,i=this,r=e.x,o=e.y,a=t.seriesIx,s=i.seriesPoints[a];i.updateRange(e,t.series),kt(r)&&null!==r&&kt(o)&&null!==o&&(n=i.createPoint(e,t.series,a,t),n&&q(n,t)),i.points.push(n),s.push(n)},updateRange:function(e,t){var n=this,i=e.x,r=e.y,o=t.xAxis,a=t.yAxis,s=n.xAxisRanges[o],l=n.yAxisRanges[a];kt(i)&&null!==i&&(s=n.xAxisRanges[o]=s||{min:wn,max:yn},s.min=W.min(s.min,i),s.max=W.max(s.max,i)),kt(r)&&null!==r&&(l=n.yAxisRanges[a]=l||{min:wn,max:yn},l.min=W.min(l.min,r),l.max=W.max(l.max,r))},createPoint:function(e,t,n,i){var r,o=this;return r=new Ni(e,et({markers:{border:{color:t.color},opacity:t.opacity},tooltip:{format:o.options.tooltip.format},labels:{format:o.options.labels.format}},t,{color:i.color,markers:{border:{color:i.color}}})),o.append(r),r},seriesAxes:function(e){var t=this.plotArea,n=e.xAxis,i=n?t.namedXAxes[n]:t.axisX,r=e.yAxis,o=r?t.namedYAxes[r]:t.axisY;if(!i)throw Error("Unable to locate X axis with name "+n);if(!o)throw Error("Unable to locate Y axis with name "+r);return{x:i,y:o}},reflow:function(e){var t,n,i=this,r=i.points,o=0;i.traverseDataPoints(function(e,a){t=r[o++],n=i.seriesAxes(a.series);var s=n.x.getSlot(e.x,e.x),l=n.y.getSlot(e.y,e.y),d=new at(s.x1,l.y1,s.x2,l.y2);t&&t.reflow(d)}),i.box=e},getViewElements:function(e){var t=this,n=lt.fn.getViewElements.call(t,e),i=e.createGroup({animation:{type:$t}});return i.children=n,[i]},traverseDataPoints:function(e){var t,n,i,r,o,a,s,l=this,d=l.options,c=d.series,u=l.seriesPoints,p=l.bindableFields();for(n=0;c.length>n;n++)for(i=c[n],r=u[n],r||(u[n]=[]),t=0;i.data.length>t;t++)o=A(i,t,p),a=o.value,s=o.fields,e(a,et({pointIx:t,series:i,seriesIx:n,dataItem:i.data[t],owner:l},s))},bindableFields:function(){return["color"]},formatPointValue:function(e,t){var n=e.value;return xt(t,n.x,n.y)}}),ji=Ui.extend({render:function(){var e=this;Ui.fn.render.call(e),e.renderSegments()}});et(ji.fn,Hi);var Wi=Ui.extend({options:{tooltip:{format:"{3}"},labels:{format:"{3}"}},addValue:function(e,t){var n,i=this,r=t.series,o=r.negativeValues,a=i.plotArea.options.seriesColors||[],s=!0;n=t.color||r.color||a[t.pointIx%a.length],0>e.size&&(n=o.color||n,s=o.visible),t.color=n,s&&Ui.fn.addValue.call(this,e,t)},reflow:function(e){var t=this;t.updateBubblesSize(e),Ui.fn.reflow.call(t,e)},createPoint:function(e,t,n,i){var r,o=this,a=t.data.length,s=i.pointIx*(mn/a),l={delay:s,duration:mn-s,type:Lt};return r=new Oi(e,et({tooltip:{format:o.options.tooltip.format},labels:{format:o.options.labels.format,animation:l}},t,{color:i.color,markers:{type:qt,background:i.color,border:t.border,opacity:t.opacity,animation:l}})),o.append(r),r},updateBubblesSize:function(e){var t,n,i=this,r=i.options,o=r.series,a=W.min(e.width(),e.height());for(t=0;o.length>t;t++){var s=o[t],l=i.seriesPoints[t],d=i.maxSize(l),c=s.minSize||W.max(.02*a,10),u=s.maxSize||.2*a,p=c/2,f=u/2,h=W.PI*p*p,m=W.PI*f*f,g=m-h,v=g/d;for(n=0;l.length>n;n++){var b=l[n],_=W.abs(b.value.size)*v,x=W.sqrt((h+_)/W.PI);et(b.options,{markers:{size:2*x,zIndex:f-x},labels:{zIndex:f-x+1}})}}},maxSize:function(e){var t,n,i=e.length,r=0;for(t=0;i>t;t++)n=e[t].value.size,r=W.max(r,W.abs(n));return r},bindableFields:function(){return["color","category","visibleInLegend"]},getViewElements:function(e){var t=this,n=lt.fn.getViewElements.call(t,e),i=e.createGroup();return i.children=n,[i]},formatPointValue:function(e,t){var n=e.value;return xt(t,n.x,n.y,n.size,e.category)}}),qi=lt.extend({init:function(e,t){var n=this;lt.fn.init.call(n,t),n.value=e,n.options.id=Dt(),n.enableDiscovery()},options:{border:{},line:{width:2},overlay:{gradient:fn},tooltip:{format:"<table style='text-align: left;'><th colspan='2'>{4:d}</th><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"}},reflow:function(e){var t,n,i,r=this,o=r.options,a=r.owner,s=r.value,l=a.seriesValueAxis(o),d=[];n=l.getSlot(s.open,s.close),i=l.getSlot(s.low,s.high),n.x1=i.x1=e.x1,n.x2=i.x2=e.x2,r.realBody=n,t=i.center().x,d.push([new pt(t,i.y1),new pt(t,n.y1)]),d.push([new pt(t,n.y2),new pt(t,i.y2)]),r.lowHighLinePoints=d,r.box=i.clone().wrap(n)},getViewElements:function(e){var t=this,n=t.options,i=[],r=n.border.width>0?{stroke:t.getBorderColor(),strokeWidth:n.border.width,dashType:n.border.dashType,strokeOpacity:kt(n.border.opacity)?n.border.opacity:n.opacity}:{},o=et({id:n.id,fill:t.color,fillOpacity:n.opacity},r),a={id:n.id,strokeOpacity:kt(n.line.opacity)?n.line.opacity:n.opacity,strokeWidth:n.line.width,stroke:n.line.color||t.color,dashType:n.line.dashType,strokeLineCap:"butt"},s=e.createGroup({animation:{type:$t}});return n.overlay&&(o.overlay=et({rotation:0},n.overlay)),i.push(e.createRect(t.realBody,o)),i.push(e.createPolyline(t.lowHighLinePoints[0],!1,a)),i.push(e.createPolyline(t.lowHighLinePoints[1],!1,a)),i.push(t.createOverlayRect(e,n)),_t(i,lt.fn.getViewElements.call(t,e)),s.children=i,[s]},getBorderColor:function(){var e=this,t=e.options,n=e.color,i=t.border,r=i.color;return kt(r)||(r=new dt(n).brightness(i._brightness).toHex()),r},createOverlayRect:function(e,t){return e.createRect(this.box,{id:t.id,data:{modelId:t.modelId},fill:"#fff",fillOpacity:0})},highlightOverlay:function(e,t){var n=this,i=n.options,r=i.highlight,o=r.border||{},a={data:{modelId:i.modelId}},s=et(a,t,{stroke:n.getBorderColor(),strokeOpacity:o.opacity,strokeWidth:o.width}),l=et(a,{stroke:n.getBorderColor(),strokeWidth:r.line.width,strokeLineCap:"butt"}),d=e.createGroup();return d.children.push(e.createRect(n.realBody,s)),d.children.push(e.createPolyline(n.lowHighLinePoints[0],!1,l)),d.children.push(e.createPolyline(n.lowHighLinePoints[1],!1,l)),d},tooltipAnchor:function(){var e=this,t=e.box;return new pt(t.x2+ni,t.y1+ni)},formatValue:function(e){var t=this;return t.owner.formatPointValue(t,e)}});et(qi.fn,Ei);var Gi=Pi.extend({options:{},bindableFields:function(){return["color","downColor"]},reflowCategories:function(e){var t,n=this,i=n.children,r=i.length;for(t=0;r>t;t++)i[t].reflow(e[t])},addValue:function(e,t,n,i,r){var o,a,s=this,l=s.options,d=e.value,c=s.children,u=e.fields.color||i.color,p=this.splitValue(d),f=B(p);f&&(o=s.createPoint(d,i)),a=c[n],a||(a=new Di({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing}),s.append(a)),o&&(s.updateRange(d,n,i),a.append(o),i.type==Vt&&d.open>d.close&&(u=e.fields.downColor||i.downColor),o.color=u,o.categoryIx=n,o.category=t,o.series=i,o.seriesIx=r,o.owner=s,o.dataItem=i.data[n]),s.points.push(o)},createPoint:function(e,t){return new qi(e,t)},splitValue:function(e){return[e.low,e.open,e.close,e.high]},updateRange:function(e,t,n){var i=this,r=n.axis,o=i.valueAxisRanges[r],a=i.splitValue(e);o=i.valueAxisRanges[r]=o||{min:wn,max:yn},o=i.valueAxisRanges[r]={min:W.min.apply(W,a.concat([o.min])),max:W.max.apply(W,a.concat([o.max]))}},formatPointValue:function(e,t){var n=e.value;return xt(t,n.open,n.high,n.low,n.close,e.category)}}),$i=qi.extend({reflow:function(e){var t,n,i,r,o=this,a=o.options,s=o.owner,l=o.value,d=s.seriesValueAxis(a),c=[],u=[],p=[];r=d.getSlot(l.low,l.high),n=d.getSlot(l.open,l.open),i=d.getSlot(l.close,l.close),n.x1=i.x1=r.x1=e.x1,n.x2=i.x2=r.x2=e.x2,t=r.center().x,c.push(new pt(n.x1,n.y1)),c.push(new pt(t,n.y1)),u.push(new pt(t,i.y1)),u.push(new pt(i.x2,i.y1)),p.push(new pt(t,r.y1)),p.push(new pt(t,r.y2)),o.oPoints=c,o.cPoints=u,o.lhPoints=p,o.box=r.clone().wrap(n.clone().wrap(i))},getViewElements:function(e){var t=this,n=t.options,i=[],r={id:n.id,strokeOpacity:n.opacity,zIndex:-1,strokeWidth:n.width,stroke:t.color,dashType:n.dashType},o=e.createGroup({animation:{type:$t}});return i.push(t.createOverlayRect(e,n)),i.push(e.createPolyline(t.oPoints,!0,r)),i.push(e.createPolyline(t.cPoints,!0,r)),i.push(e.createPolyline(t.lhPoints,!0,r)),_t(i,lt.fn.getViewElements.call(t,e)),o.children=i,[o]},highlightOverlay:function(e){var t=this,n=t.options,i=n.highlight,r={data:{modelId:n.modelId}},o=et(r,{strokeWidth:i.line.width,strokeOpacity:i.line.opacity,stroke:t.color}),a=e.createGroup();return a.children.push(e.createPolyline(t.oPoints,!0,o)),a.children.push(e.createPolyline(t.cPoints,!0,o)),a.children.push(e.createPolyline(t.lhPoints,!0,o)),a}}),Yi=Gi.extend({createPoint:function(e,t){return new $i(e,t)},bindableFields:function(){return["color"]}}),Qi=lt.extend({init:function(e,t,n){var i=this;i.value=e,i.sector=t,i.enableDiscovery(),lt.fn.init.call(i,n)},options:{color:di,overlay:{gradient:Mn},border:{width:.5},labels:{visible:!1,distance:35,font:tn,margin:wt(.5),align:qt,zIndex:1,position:In},animation:{type:Rn},highlight:{visible:!0,border:{width:1}}},render:function(){var e,t=this,n=t.options,i=n.labels,r=t.value;t._rendered||(t._rendered=!0,i.template?(e=Z(i.template),r=e({dataItem:t.dataItem,category:t.category,value:t.value,series:t.series,percentage:t.percentage})):i.format&&(r=xt(i.format,r)),i.visible&&r&&(t.label=new gt(r,et({},i,{id:Dt(),align:jt,vAlign:"",animation:{type:pn,delay:t.animationDelay}})),t.append(t.label)))},reflow:function(e){var t=this;t.render(),t.box=e,t.reflowLabel()},reflowLabel:function(){var e,t,n,i,r=this,o=r.sector.clone(),a=r.options,s=r.label,l=a.labels,d=l.distance,c=o.middle();s&&(i=s.box.height(),n=s.box.width(),l.position==jt?(o.r=W.abs((o.r-i)/2)+i,e=o.point(c),s.reflow(new at(e.x,e.y-i/2,e.x,e.y))):l.position==vn?(o.r=o.r-i/2,e=o.point(c),s.reflow(new at(e.x,e.y-i/2,e.x,e.y))):(e=o.clone().expand(d).point(c),e.x>=o.c.x?(t=e.x+n,s.orientation=On):(t=e.x-n,s.orientation=_n),s.reflow(new at(t,e.y-i,e.x,e.y))))},getViewElements:function(e){var t=this,n=t.sector,i=t.options,r=i.border||{},o=r.width>0?{stroke:r.color,strokeWidth:r.width,dashType:r.dashType}:{},a=[],s=i.overlay;return s&&(s=et({},i.overlay,{r:n.r,ir:n.ir,cx:n.c.x,cy:n.c.y,bbox:n.getBBox()})),t.value&&a.push(t.createSegment(e,n,et({id:i.id,fill:i.color,overlay:s,fillOpacity:i.opacity,strokeOpacity:i.opacity,animation:et(i.animation,{delay:t.animationDelay}),data:{modelId:i.modelId},zIndex:i.zIndex,singleSegment:1===(t.options.data||[]).length},o))),_t(a,lt.fn.getViewElements.call(t,e)),a},createSegment:function(e,t,n){return n.singleSegment?e.createCircle(t.c,t.r,n):e.createSector(t,n)},highlightOverlay:function(e,t){var n,i=this,r=i.options.highlight||{},o=r.border||{},a=i.options.id+Pn;return t=et({},t,{id:a}),0!==i.value&&(n=i.createSegment(e,i.sector,et({},t,{fill:r.color,fillOpacity:r.opacity,strokeOpacity:o.opacity,strokeWidth:o.width,stroke:o.color,data:{modelId:i.options.modelId}}))),n},tooltipAnchor:function(e,t){var n=this,i=n.sector.clone().expand(15),r=e/2,o=t/2,a=i.middle(),s=a*an,l=i.point(a),d=l.x-r,c=l.y-o,u=W.sin(s),p=W.cos(s);return.9>W.abs(u)&&(d+=r*-p/W.abs(p)),.9>W.abs(p)&&(c+=o*-u/W.abs(u)),new pt(d,c)},formatValue:function(e){var t=this;return t.owner.formatPointValue(t,e)}});et(Qi.fn,Ei);var Ki=lt.extend({init:function(e,t){var n=this;lt.fn.init.call(n,t),n.plotArea=e,n.segments=[],n.legendItems=[],n.render()},options:{startAngle:90,connectors:{width:1,color:"#939393",padding:4}},render:function(){var e=this;e.traverseDataPoints(G(e.addValue,e))},traverseDataPoints:function(e){var t,n,i,r,o,a,s,l,d,c,u,p,f=this,h=f.options,m=f.plotArea.options.seriesColors||[],g=h.startAngle,v=m.length,b=h.series,_=b.length,x=Dt(),k=f.bindableFields();for(r=0;_>r;r++)for(t=b[r],a=t.data,c=f.pointsTotal(t),s=360/c,u=g,r!=_-1&&t.labels.position==In&&(t.labels.position=jt),p=0;a.length>p;p++)n=A(t,p,k),l=n.value,i=n.fields,o=St(l*s,rn),d=1!=a.length&&!!i.explode,t.color=i.color||m[p%v],e(l,new ht(null,0,0,u,o),{owner:f,category:i.category||"",categoryIx:p,series:t,seriesIx:r,dataItem:a[p],percentage:l/c,explode:d,visibleInLegend:i.visibleInLegend,overlay:{id:x+r},zIndex:_-r,animationDelay:f.animationDelay(p,r,_)}),u+=o},bindableFields:function(){return["category","color","explode","visibleInLegend"]},addValue:function(e,t,n){var i,r=this;r.createLegendItem(e,n),e&&(i=new Qi(e,t,n.series),i.options.id=Dt(),q(i,n),r.append(i),r.segments.push(i))},createLegendItem:function(e,t){var n,i,r=this,o=(r.options.legend||{}).labels||{};t&&t.visibleInLegend!==!1&&(n=t.category||"",(o||{}).template&&(i=Z(o.template),n=i({text:n,series:t.series,dataItem:t.dataItem,percentage:t.percentage,value:e})),r.legendItems.push({name:n,color:t.series.color}))},pointsTotal:function(e){var t,n=e.data,i=n.length,r=0;
  4. T. Tsonev
    Admin
    T. Tsonev avatar
    2811 posts

    Posted 23 Jan 2013 Link to this post

    Hello,

    This is entirely possible and depends on the size of the data set that you're processing.

    My recommendation is to take a look at the virtualization demo. It moves the heavy work required for grouping and filtering to the server, greatly improving the performance.

    A sample back-end service is distributed with the ASP.NET MVC wrappers for Kendo UI (wrappers\mvc\demos\Kendo.Mvc.Examples\Controllers\DataViz\Financial\VirtualizationController.cs).

    Detailed documentation will be available soon.

    Greetings,
    Tsvetomir Tsonev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Satyanarayana
    Satyanarayana avatar
    5 posts
    Member since:
    Jan 2013

    Posted 23 Jan 2013 Link to this post

    Getting this problem in IE7 & IE8  only
  6. T. Tsonev
    Admin
    T. Tsonev avatar
    2811 posts

    Posted 25 Jan 2013 Link to this post

    Hi,

    This is somewhat expected, as they're likely to be the slowest browsers that you're testing with.

    Kind regards,
    Tsvetomir Tsonev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top