[CLOSED] LoadMask the Rendering of a Chart

  1. #1

    [CLOSED] LoadMask the Rendering of a Chart

    Hello,

    I have a chart that uses a ajax call to a web service to return JSON as the data in the chart.

    The web service returns really fast but since it has a lot of data points it takes time to render the Chart on the client side in the browser. Since the chart is interactive and allows users to change how it is drawn, I want to add a loading mask while the chart is rendering on the client side and only have it un-mask when the chart is completly drawn.

    Currently I am using the following code which adds a loading mask but it will un-mask once the data is returned to the store and not continue to mask while the chart is rendering.

    <ext:Chart ID="MonthlyChart" Frame="true" runat="server" Width="850" Animate="true" Theme="ChartTheme"
        Height="500" InsetPadding="30"  >
    
            <Loader ID="Loader3" runat="server">
            <LoadMask ShowMask="true"></LoadMask>
        </Loader>
    How can I add a listender for the actual javascript rendering of the chart on the client side in the browser and only un-mask when the javascript is done drawing the chart?
    Last edited by Daniil; Nov 16, 2013 at 10:52 AM. Reason: [CLOSED]
  2. #2
    Hello!

    Try to use Chart's AfterRender listener.

    Is it possible to provide your sample with data?
  3. #3
    Hi @csfesta,

    Are you loading the data to the Store via a Chart's Loader? I am not sure how you are doing that, but it doesn't look quite correct. It is better to load the data via a Store's AjaxProxy.

    As for masking, then yes, @Baidaly is right - you should organize it manually. Show a mask before loading the data and hide on a Chart's AfterRender and/or Refresh events.

Similar Threads

  1. [CLOSED] IE10 - Chart rendering
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 20, 2013, 1:53 PM
  2. Replies: 0
    Last Post: Jun 18, 2013, 2:02 PM
  3. Chart rendering issue
    By raiwinashu in forum 2.x Help
    Replies: 3
    Last Post: Jun 12, 2013, 11:24 AM
  4. [CLOSED] Bug rendering asp.net chart in web site scenario
    By odyssey in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 19, 2013, 9:42 AM
  5. [CLOSED] [1.0] Rendering Chart/Flash behind Model Window
    By ljankowski in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Nov 08, 2010, 7:24 PM

Posting Permissions