Hi,
I am use an example where the XamDataChart is a control that can be used in win forms. In the example the x Axis does not show. I am not sure how the styling functions work. How do I display the x Axis and format it to DateTime and set the interval to daily.
Thanks
Pieter
Ok I got this to work, in the samples on the web they show that we must use a CategoryXAxis and just format the label as date time, in my DataContext the X Axis is already a DateTime field then this solution does not work. I change it to CategoryDateTimeXAxis and format the label the way I want it. It works now but now I have a new problem when you Zoom in is cutting of the trace, not sure way but I think its something to do with the intervals of the X Axis, It’s not making the intervals smaller when I zoom. I don’t know how to set the intervals on the CategoryDateTimeXAxis.
I am not getting any response on my other posts hope someone will respond on this one.
Thanks,
Pieter,
Unfortunately the Interval on the CategoryDateTimeXAxis is not currently user configurable. But you should see each gridline represent a smaller interval as you zoom in, from my understanding. You can use the CategoryXAxis to display datetime types but they will only be treated as strings, so they won't be further subdivided as you zoom. You will see labels that might have been hidden from further out, but the labels will always exactly corellate with the values on the actual items.
It feels like it was potentially an oversight rather than a deferral that the interval of the CategoryDateTimeXAxis is not configurable, so I've created a bug report to try and sort that out (Bug 36850).
You can also see this post for into about how you can use the NumericXAxis to have greater control over the intervals in the meantime. http://community.infragistics.com/forums/p/41666/244821.aspx#244821
But note there are various benefits and trade-offs to working with numeric axes vs. category axes. If you can share a sample and more information as to how you want it to look I may be able to further advise you how to achieve your goal.
-Graham
Graham,
I am using LineSeries, I will check now what service release I am on. What can I send you to help identify the problem? I modified the TickerBuffer and DataLoader sample to get the data out of SQL.
When I change the CategoryDateTimeXAxis to a normal CategoryXAxis the Zoom function is working fine but the X Axis labels does not show.
<igChart:LineSeries ItemsSource="{Binding}" ValueMemberPath="Column1"
Legend="{Binding ElementName=Legend}"
XAxis="{Binding ElementName=XAxis}"
YAxis="{Binding ElementName=YAxis}"
Are you able to replicate the issue in a sample project? If not we'll have to try and replicate this issue here, but I'm not sure how dependent the problem is on the shape of your data, or the frequency of the values.
What kind of volume is bound to the chart there? If it is time data, what is the frequency of the values? Even intervals or random?
How are you trying to set the label for the CategoryXAxis? If the property with your datetime is called Date then do something like this:
Label="{}{Date}"
or Label="{}{Date:hh:mm:ss}"
for example.
Hi Graham,
It will be a bit difficult to replicate the data on a sample project, I will have to send you the database. I think it’s defiantly something to do with the date format from SQL. When I limit my query to the last 48 hours the zoom function is working fine.
The data is coming in every minute.
I did try to use Category X Axis with the label setting you show but still no change.
Will it be possible for you to use TeamViewer and log onto my PC and take a look at the problem maybe I just have the wrong version or it’s something small.
If we can’t do that can you give me FTP details then I will give you the database and project.
My trail is going to expire at the end of this week and I need to give my boss the go ahead on this tool.
Thank You,
Do you have any feedback on this post?
Can you maybe tell me why the tool is filling (making this red triangle) when there are no data for a period of time?
Hello Pieter,
I have created a support ticket on your behalf with number: CAS-52054-GHT6C8
You can follow on it from our website: https://ko.infragistics.com/Membership/MySupport.aspx
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support