i'm using InfragisticsWPF4.Controls.Charts.XamDataChart.v11.2.
Is it possible to hide grid line in the chart?
Thanks!
Hello,
The XamDataChart is using the InfragisticsWPF4.DataVisualization.v11.2.dll assembly. When you have the Infragistics controls installed, you can run your project without adding all dependent assemblies. After deploying and running you project to a machine that have no Infragistics controls installed you should add all dependent assemblies. You can see list of the assemblies needed for our WPF controls here: http://help.infragistics.com/NetAdvantage/WPF/2011.2/CLR4.0/?page=WPF_NetAdvantage_for_WPF_Full_Assemblies.html
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi, I am using the xamDataChart for Line Series and what I want to do is, set the major grid lines on my chart to a fixed interval and not have grid lines adding up when I zoom in. Since, Line series doesn't support numericXAxis, I can't do customTickMarkValues for the x-axis. I am using the category x-axis and what I want to do is set the major grid lines to a fixed interval. Can you help me with what I can do? My chart is basically a line chart with time on x axis and voltage on y axis.
Thank you for your reply. I have been looking into the scenario that you have described and since you are using DateTime for the X axis, I can suggest one of the following approaches.
Please let me know if you need any further assistance on the matter.
Thanks for the hint. Is there a way to stop the grid lines being added depending on the zoom level. The position of the grid lines is very important. I do not want the grid lines accumulating as I zoom in just to show detail on the chart.
Please help me with this scenario. Thanks.
Hi, Thanks for your input. But I managed a simpler way to finish my requirement. I set the strip property of the axis to some color. (which restricted the increase and decrease in grid lines as I zoomin and zoom out) and I just used the CategoryXAxis instead of CategoryDateTimeAxis. Its pretty straight forward to use categoryXAxis to display decimal values for the labels.
Thank you for your posts. I have been looking into your questions and since you are using CategoryDateTimeXAxis, I can suggest using a DataTempalte for the Label property of the axis and using a Converter to convert the DateTime value of the labels to the Ticks that corresponds to the DateTime. Regarding the fixed numbers of the grid lines on the x axis, as I have already mentioned, you can set the Interval property of the x axis and this way you will have fixed number of lines and labels. Also the amount of the labels will not change when you zoom, when using this approach. I have created a sample application for you, that demonstrates how you can show the ticks of the DateTime of the X axis and set the Interval property.
Also, I have started to use category datetime axis on your advice. I need to display labels on the x-axis as decimal numbers which is in time in nano seconds. My plot is a waveform which has time (nanoseconds) as xaxis and voltage on y axis.
I tried my best and I don't seem to have a work around with plotting just numbers as labels on the x-axis. Currently, I can only have a label for x-axis with category datetime axis if a fixed date and time format.