Hi All,
I want to show my data in 3d view. I have parent child relationship data. My data and chat image is attached and following is my requirement. Please help me with sample application.
Regards
Sufyan
Hello Sufyan,
Thank you for you post. I have been looking into the appearance that you are looking for and I have created a sample application, based on your description and data. I have used, the Infragistics’ Excel Engine in order to load the data that you are having into an collection of objects. I have generated the series of the XamChart, in code, based on the items in the models table. I have handled the MouseMove event and I am using it, in order to allow rotating the XamChart, by holding the mouse’s left button and moving the mouse. Also I have used the MouseWheel event of the XamChart, to allow changing the angle of the rotation. I am attaching the sample application and a video that shows the moving behavior.
Please let me know if need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hello Krasimir,
Thanks for your reply, In sample application XAxis (Indicators) are not completely display some are missed for understanding see excel sheet, and in sample application XAxix values are smaller than YAxix they must have the same font and the Model must have different prominent colors some models have the same colors like top and bottom models, and i want to display Model, Indicator (XAxix) and Value (YAxix) when mouse is over the chart columns.Updated Excel sheet is attached.
I am using MVVM, Please provide solution according to MVVM.
Thanks
Any Update ?
Any updates of my issue. Kindly give me solution of my problem as soon as possible.
Thank you for your replies. I have been looking into the questions that you are having and the reason for the X axis to not show the labels of the all the series is that when you have multiple series in the XamChart, it uses the items of the first series, in order to show the labels on the X axis. For example, if you have two series and the first has 10 data points and the second has 20, the X axis will display 10 labels, that corresponds to the data points of the first series.
Regarding the second question that you are having, I believe that that approach that I have suggested, for rotating the XamChart , based on the mouse position, does not break the Model-View-ViewModel (MVVM) pattern, since the two events that I am handling in the View does not require any information regarding the Model and also the ViewModel, so I can suggest using that approach. You can avoid code in the xaml.cs file, by using Interactions to handle the events in your ViewModel, which will be the same as the approach I have suggest.
Please let me know if you need any further assistance on the matter.
I need more help of you regarding 3d view,
Please keep in mind i use MVVM. Use your modified sample application of Replied On: 12-21-2012 9:32 AM. The rotation of the chart is difficult with the mouse, can we add arrows to bottom right for rotating right/left and up/down (and right&up, right&down, left&up, left&down) similar to what is shown in attached screen shot and Icons are also attached.
Thank you for your reply. I am very glad that the issue that you were having is solved. Please let me know if you need any further assistance on the matter.
Thank you so much Krasimir, my problem is solved.
Thank you for your reply. I have been looking into the appearance that you are looking for and if I understand correctly, you wish to display the Model, the Indicator and the Price in the tooltip of the Series. If this is correct, I can suggest adding a Model property to the class that represents the DataPoints. After doing so you can add a mapping for the ToolTip property in the DataMappings of the Series and set the mapping property to ‘.’, in order to set the whole object as content of the tooltip. You can do that as follows:
series.DataMapping = "Value=Price;Label=Indicator;ToolTip=.";
By doing so the Content of the Tooltip of the columns will be the object of the data point. Since the tool tip has a content presenter in its template, it will display a simple TextBlock with the ToString method of the DataPoint objet. To show all the information in the tool tip (the Model, the Indicator and the Price properties) you can create a style for the ToolTip and change its Template to show the data. I have modified the sample application that I have attached with my previous reply, in order to show how you can implement this approach.
Thanks for your reply i already do that regarding the coloring of the series of the XamChart, and its working fine. Is it possible to show tooltip of series with Legend and XAxis and YAxis Values. If it possible i shall be very thankful to you for this favor.