Sign in to follow this  
MikiWatts

Refreshing Column3D chart in the background

Recommended Posts

I've created a Column3D chart that is wrapped in an UpdatePanel and is using an xml data source that is generated in the code behind.

 

 

 

the aspx file:

 


<asp:UpdatePanel ID="KPI3UpdatePanel" UpdateMode="Always" runat="server">

   <ContentTemplate>      

       <asp: PlaceHolder ID="KPI3RenderedChart" runat="server"></asp: PlaceHolder>

   </ContentTemplate>

</asp:UpdatePanel>

 

 

 

the code behind:

 


           StringBuilder sb = BuildKPI3XML();



           string renderedChart;



           if (!IsPostBack)

           {

               SetupFilters();



               renderedChart = FusionCharts.RenderChart("FusionCharts/Column3D.swf", "", sb.ToString(), 

                   "KPI3", "500", "150", false, false);

           }

           else

           {

               renderedChart = FusionCharts.RenderChartHTML("FusionCharts/Column3D.swf", "", sb.ToString(), 

                   "KPI3", "500", "150", false, false);

           }



           KPI3RenderedChart.Controls.Clear();

           KPI3RenderedChart.Controls.Add(new LiteralControl(renderedChart));

 

 

 

BuildKPI3XML() just gets the data and builds the xml for the chart.

 

The code behind part is sitting in the Page_Init event.

 

 

 

I have a timer that does the postback in another updatePanel every 5 seconds.

 

 

 

This works just fine, and updates the data, but my problem is that the chart visibly blinks every time it gets refreshed, as it starts from an empty state and then is filled.

 

 

 

I'd like to either eliminate this blink, or have the chart automatically update itself in the background in real time, like the FusionWidgets do, with the Gauge control for example.

 

 

 

Is this possible ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this