id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blockedby,blocking
17294,Rendering of chart title is slower after plot rendering,pschoepf,pschoepf,"Hi,
I am having a chart with some more data points (>2000). Works very well with lines only but when markers come into the game it gets slow, especially on mobile devices like iPad. Playing around a bit with the dojo src I found that the rendering of the chart title (in chart.fullRender) takes some very long time when many markers are in the chart. I moved the code block above the block that renders the plot, which reduces overall rendering time by >50%. No side effects observed, however I am not sure if this is true for all cases.
This is the code after moving the title block:
-> first render title
if(this.title){
var forceHtmlLabels = (g.renderer == ""canvas"") && this.htmlLabels,
labelType = forceHtmlLabels || !has(""ie"") && !has(""opera"") && this.htmlLabels ? ""html"" : ""gfx"",
tsize = g.normalizedLength(g.splitFontString(this.titleFont).size);
this.chartTitle = common.createText[labelType](
this,
this.surface,
dim.width/2,
this.titlePos==""top"" ? tsize + this.margins.t : dim.height - this.margins.b,
""middle"",
this.title,
this.titleFont,
this.titleFontColor
);
}
--> now render plot
func.foldr(this.stack, function(z, plot){ return plot.render(dim, offsets), 0; }, 0);
",defect,closed,undecided,tbd,Charting,1.9.1,invalid,,,,