-
March 26th, 2011, 03:49 AM
#1
[RESOLVED] Chart control in vc# express
Hello all,
Does anyone know how I can turn off the background grid in the chart control?
This is the or that comes as default in visual studio c# express.
-
March 26th, 2011, 04:56 AM
#2
Re: Chart control in vc# express
Have you tried :
Code:
chart1.ChartAreas[0].AxisX.IsMarginVisible = false;
chart1.ChartAreas[0].AxisY.IsMarginVisible = false;
Also, this may help a lot as well :
http://archive.msdn.microsoft.com/ms...ReleaseId=1591
-
March 26th, 2011, 10:09 AM
#3
Re: Chart control in vc# express
Thanks, that helped a lot.
However, I do not seem to be able to see a way to allow the control to scroll. Am I missing something?
The specs state that the graph should display the most recent 60 seconds of activity but the user should be able to scroll back if required.
Is that doable with this control?
-
March 28th, 2011, 01:37 AM
#4
Re: Chart control in vc# express
Originally Posted by SteveTaylor
However, I do not seem to be able to see a way to allow the control to scroll.
The specs state that the graph should display the most recent 60 seconds of activity but the user should be able to scroll back if required.
Is that doable with this control?
Hi Steve.
I'm not sure I'm following you... Do you want a scrollable chart control? Can you explain your need a bit more please?
-
March 29th, 2011, 10:46 AM
#5
Re: Chart control in vc# express
Sorry, I should have been more clear.
I would like a scrollable chart.
The data is being read in once per second and will be drawn onto a line graph (this works).
Once it has gone more than can be fitted on the screen the user needs to be able to scroll it.
However, I cannot get this to work. I am not sure whether I am just being blind but I cannot find any exampe that quite does the trick.
-
March 29th, 2011, 11:00 AM
#6
Re: Chart control in vc# express
Ahh, now I get you!
Not so complicated. You just need the following Properties :
chartArea.CursorX.AutoScroll
chartArea.AxisX.ScaleView.Zoomable
chartArea.AxisX.ScaleView.Zoom
chartArea.AxisX.ScaleView.SmallScrollSize
Here is a nice example :
http://stackoverflow.com/questions/5...hart-control-c
I hope I have helped
Hannes
-
March 31st, 2011, 10:48 AM
#7
Re: Chart control in vc# express
Perfect! Thanks!
-
April 1st, 2011, 01:22 AM
#8
Re: Chart control in vc# express
That is good news Glad you came right!
Please mark your thread resolved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|