Hi, I have an issue where the rad chart control is putting a large
amount of chart renders into cache. Is there any way to turn this off?
To help setup the scenario we only use the charting control on one page, and that page is only viewable from a PC which displays the chart on a monitor. It's to help our sales guys and bosses to see turn around time for quotes. So it isn't an issue where a lot of people are hitting the chart because only one PC does. The page auto-refreshes the data once a minute using the Microsoft Ajax Timer control so no page post-back occurs. If I clear the cache, within a minute about 100 renders are cached again. The cache key is something like this "2888f173-6587-4610-aa66-c1b7ab206eb2_chart_ctl00$cphMainContent$chartTurnAround" cphMainContent is the content place holder ID, and chartTurnaround is the ID I gave to the chart.
Thanks,
Cary.
Code included below:
Telerik Rad Ajax chart version 2008.3.1105.35
To help setup the scenario we only use the charting control on one page, and that page is only viewable from a PC which displays the chart on a monitor. It's to help our sales guys and bosses to see turn around time for quotes. So it isn't an issue where a lot of people are hitting the chart because only one PC does. The page auto-refreshes the data once a minute using the Microsoft Ajax Timer control so no page post-back occurs. If I clear the cache, within a minute about 100 renders are cached again. The cache key is something like this "2888f173-6587-4610-aa66-c1b7ab206eb2_chart_ctl00$cphMainContent$chartTurnAround" cphMainContent is the content place holder ID, and chartTurnaround is the ID I gave to the chart.
Thanks,
Cary.
Code included below:
Telerik Rad Ajax chart version 2008.3.1105.35
<telerik:RadChart ID="chartTurnAround" runat="server" Skin="BlueStripes" Width="700px" |
SkinsOverrideStyles="true"> |
</telerik:RadChart> |
chartTurnAround.DataSource = var |
Dim ser As New Telerik.Charting.ChartSeries("Turn Around", Telerik.Charting.ChartSeriesType.Bar) |
ser.DataLabelsColumn = "TurnAround" |
ser.DataYColumn = "TurnAround" |
chartTurnAround.Series.Add(ser) |
chartTurnAround.SeriesOrientation = Telerik.Charting.ChartSeriesOrientation.Horizontal |
chartTurnAround.PlotArea.XAxis.DataLabelsColumn = "FullName" |
Dim max As Decimal = (From v In var Select v.TurnAround).Max() |
max = IIf(max = 0, 10, max) |
chartTurnAround.PlotArea.YAxis.AutoScale = False |
chartTurnAround.PlotArea.YAxis.MinValue = 0 |
chartTurnAround.PlotArea.YAxis.MaxValue = max + (max Mod 10) |
chartTurnAround.PlotArea.YAxis.Step = 10 |
chartTurnAround.ChartTitle.TextBlock.Text = "Average TurnAround Time (days)" |
chartTurnAround.Legend.Visible = False |
chartTurnAround.AutoLayout = True |
chartTurnAround.PlotArea.EmptySeriesMessage.TextBlock.Text = "No Tasks have been completed in the last 7 days." |
chartTurnAround.DataBind() |