Jump to content
Software FX Community

Modifying series visibility setting hangs application


Recommended Posts

I have a menu item that toggles the display of two of the series in the graph.  However, after the visibility of the two series is updated, it appears as the (personal) web server goes into a loop.  The page display is not updated and the cpu utilization jumps noticably.  Subsequent page requests - of any type - don't raise any events.  If the debug session is stopped, the cpu utilization contiues to be elevated and remains so until the web server is stopped. If the debug session is restarted, the display is functional until you series' visibility is updated. (CPU load also increases) Note that the same handler processes other menu commands to change the chart's hieght and width, and they work fine.

myChart.Series[3].Visible = false;

myChart.Series[4].Visible = false;

Link to comment
Share on other sites


What I wound up doing is reseting the chart and then completely recreating it without the two additional series.   I would have preferred to just set the two series to not be visible instead of going trhough the overhead of recreating the entire chart, but it works.


- Tony

Link to comment
Share on other sites

We are unable to reproduce this problem. If you give us a repro case we will be happy to take a look and find out what's happening.

Definitely not the best solution to re-populate the chart. I would like to look into this.

Another thing: If what you are trying is to remove the last to series the most efficient way to do that is:

 chart.Data.Series -= 2;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...