ASP.NET Chart
-
I have a web page, .net 4.5, that has a tab control. The second tab contains a chart control. When I run the page in VS 2013 Community Edition, it displays as it should. However, in the designer only the upper left portion of the chart is visible. Is there a way to fix this so that I can see the entire chart? I have a desktop application which has the same chart in a tabbed page, and it is all visible in the designer. I can't find anything to make the whole chart visible. Nothing scrolls, either. I have been unable to find anything on the web to shed light on this behavior. Bobby
-
I have a web page, .net 4.5, that has a tab control. The second tab contains a chart control. When I run the page in VS 2013 Community Edition, it displays as it should. However, in the designer only the upper left portion of the chart is visible. Is there a way to fix this so that I can see the entire chart? I have a desktop application which has the same chart in a tabbed page, and it is all visible in the designer. I can't find anything to make the whole chart visible. Nothing scrolls, either. I have been unable to find anything on the web to shed light on this behavior. Bobby
If you are setting the chart data dynamically, then, it seems to be the expected behavior. Your design view cannot generate chart preview unless it gets the data. Even if it gets the data, generating design view is costly from performance point of view, so, it should not be done. I would suggest not to rely on design view and test your charts while running it directly.
Life is a computer program and everyone is the programmer of his own life.
-
If you are setting the chart data dynamically, then, it seems to be the expected behavior. Your design view cannot generate chart preview unless it gets the data. Even if it gets the data, generating design view is costly from performance point of view, so, it should not be done. I would suggest not to rely on design view and test your charts while running it directly.
Life is a computer program and everyone is the programmer of his own life.
Anurag, Thank you. The chart is not dynamically populated and contains whatever is the default. I have the same application on windows form and the entire chart shows. So, I am still puzzled as to why the chart does not show in its entirety on the web page designer. Maybe I don't have something that is quite right. But, for now I can live with it. I have a similar application using VS 2010 and .net 3.5. But I use images instead of the chart. But I cannot find how to add a point on the image with java script (or otherwise). I'm searching, though. Using the chart I would like to add some labels within the chart areas, but I haven't found a way to accomplish this. Any advice on either?