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.
Printable View
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.
Have you tried :
Also, this may help a lot as well :Code:chart1.ChartAreas[0].AxisX.IsMarginVisible = false;
chart1.ChartAreas[0].AxisY.IsMarginVisible = false;
http://archive.msdn.microsoft.com/ms...ReleaseId=1591
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?
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.
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
Perfect! Thanks! :)
That is good news :) Glad you came right! :thumb:
Please mark your thread resolved