Hi,
Can I implement below function:
In my xamDataChart, I can choose one data point, and then use keyboard (left or right) to choose left data point or right data point?
Do I make myself clearly? Sorry for my poor English..
Hello Charlie,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Hello Stefan,
Could you please give me a sample using lineSeries not columnSeries, Thanks~~
Thanks for your answer. I have studied your sample. In your sample, you generate ten data in Construct, but when I change it to 1000 data, like this: this.DataContext = ChartData.GenerateData(1000); I found that the application crashed.. Waiting for your answer, Thanks~
Since the XamDataChart has virtualization, not all datapoints are rendered and this is why the solution I gave you crashes. Since my approach uses the visual elements it won't work with large data sets, so the thing you can do is suggesting a new product ideas (Turn off virtualization or Selecting DataPoints with arrow keys ) for future versions (or vote for existing ones) at http://ideas.infragistics.com.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
I don't need all datapoints are rendered. I can change my requirement to this: In my xamdatachart, I have a lineSeries, and 1000 dataPoints are binding to this lineSeries, I don't need the Markers to be showed, and the lineSeries looks just like a line. Now I click my lineSeries, the datapoint which is nearest the position where I clicked is showed(for example, tooltip the data which I clicked), then I can use keyboard (left or right) to choose left data point or right data point(also tooltip the data which I moved to) .
Can please give me some suggestions? The customers are urgent with this behaviour, thanks in advance.
I have been looking into your new requirement and since the visual element that represents the LineSeries is one Path, you are not able to change the color of part of it( in your case between two data points) The thing you can do is to get the two data point that are on the left and right of the mouse position and draw the Path there. then when the arrow keys are pressed you should remove this Path and add the new one on the left or right. Since this custom implementation is not support and it is outside of the Developer Support scope, I can suggest contacting our Consulting team (http://d3.infragistics.com/), if you wish any custom feature to be implemented for you.
Please let know if I can assist you with anything else.
Hi Steven,
I have another question. Please help.
I have modified your sample code to implement the "keyboard moving" function, and I have a new requirement: when I click one point, then press the Enter key, show the point's value. When I use left arrow key or right arrow key to move the point, then press the Enter key, show the current point's value. In my solution, I was trying to use tooltip to show the point's value, and when I press the Enter key, show the tooltip value. But the question is : When I use left arrow key or right arrow key to move the point, then press the Enter key, the value isn't what the current's point's value.
Do I make myself clearly? Please see attached. Thanks~~
Hi Stefen,
Thank you~~~
I have added the functionality you want in the sample. Since the Tooltip that is used for the Series is not the default WPF tooltip, but a custom PopUp, you should set its position and text manually when you want to open it via code behind. I set the needed Properties, so now when the arrow keys are pressed and the point is colored the tooltip also opens. I handled the MouseMove event, so I could be able to set the binding again for the cases when you hover with the mouse.
Hi Stefan,
You really have done me a big favor. And trouble you again, can I implement below function?
When I clicked one point, I need show the tooltip data, and when I use left arrow or right arrow to move the point, show the updated tooltip data.
Thanks really really for your help.
I have been looking into the sample and I can say that this behavior is expected, because the ToolTip is update when you hove over a Marker. I modified the sample, so now it works as you want. Basically get the current Msrker's Content, which contains the underlying object.