i need to add buttons to filter by a certain time span. I want to filter my data by 1,2,3,5 minutes. the x axis of my xamdatachart. for simplicity lets say its 6 hours of data. I can change the slider and filter the data but i want to add 2 buttons to increase or decrease the data shown. basically i want to add buttons taht automatically size the slider to show just the amount of data that was selected in the filter. would i manually set the range. Is there a better way, if this is possible
Hello Pete,
I have been looking through your post and, if I understood your scenario correctly, you need to change the range of the zoombar so that it shows different part of the chart. This could be done by changing its minimum and maximum range properties. You could handle the click event of a button and include the following code line in it: xamZoombar1.Range.Maximum = xamZoombar1.Range.Maximum + 10; This will increase the range on the right side with 10.
Here you could find additional information on the XamZoombar: http://help.infragistics.com/Help/NetAdvantage/WPF/2012.1/CLR4.0/html/xamZoombar_Getting_Started_with_xamZoombar.html
In the provided sample project (XamZoomarWidth.zip) when the button is clicked the maximum range is increased by 10.
Please feel free to let me know if I have missed something in your scenario or if you have any questions regarding this.
the problem i am having is that i am trying to show the 1,3,5 minute intervals in the chart. i figure out what percentage of time 1 minute is of my whole dataset and try to resize the range accordingly. however the time between my entries is not adding up
Hi Pete,
I am just checking if this is still an issue for you. Could you provide me more details on the matter so I could research this further for you? Thank you.
I am not sure I understand your scenario completely. How do you try to resize the range? Could you modify the sample project I had attached before or provide another sample project that is representing your issue? This will help me investigate it further and provide you with a better solution. Thank you in advance.