3 Replies - 1339 Views - Last Post: 29 May 2015 - 08:35 AM

#1 Mahonroy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-March 15

Having trouble with Chart control - sometimes it doesn't render

Posted 26 May 2015 - 06:51 AM

Hello,
I am having troubles with the Chart control. I am using .net framework 4.5 (web forms application), and am using version 4.0 of the chart control. I can populate data just fine... the problem is that sometimes the chart images don't render, so it shows a broken image link instead. I put the chart controls inside an update panel, and added a "Refresh" button. Still the same behavior... sometimes it renders fine, sometimes it displays broken image links.... it seems completely random. But clicking the "Refresh" button always fixes the problem. Do you guys know what the problem is and how I can fix this properly? I don't want the user to have to click the "Refresh" button each time only after being displayed broken images. Part of me thinks that the image is not ready in time for when the browser decides to render the image... but I just don't know.

I have experimented with the web.config file, originally the key under "appsettings" was this:
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />

and I changed it to this from a recommendation I found online:
<add key="ChartImageHandler" value="storage=memory;timeout=20;"/>

This didn't seem to help.

Any help is greatly appreciated, thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: Having trouble with Chart control - sometimes it doesn't render

#2 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 5922
  • View blog
  • Posts: 20,251
  • Joined: 05-May 12

Re: Having trouble with Chart control - sometimes it doesn't render

Posted 26 May 2015 - 07:17 AM

Moving to ASP.NET...
Was This Post Helpful? 0
  • +
  • -

#3 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 5922
  • View blog
  • Posts: 20,251
  • Joined: 05-May 12

Re: Having trouble with Chart control - sometimes it doesn't render

Posted 27 May 2015 - 10:35 AM

We have a similar issue. Our workaround was to tell the client to use Chrome instead of IE.
Was This Post Helpful? 0
  • +
  • -

#4 Mahonroy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-March 15

Re: Having trouble with Chart control - sometimes it doesn't render

Posted 29 May 2015 - 08:35 AM

View PostSkydiver, on 27 May 2015 - 10:35 AM, said:

We have a similar issue. Our workaround was to tell the client to use Chrome instead of IE.

Thanks a lot for the reply!
I actually am using Chrome haha. Do you happen to have any other ideas?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1