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~~
I have modified the sample, so now the XamDataChart has LineSeries. Since the whole line is a single Path, I made the Markers selectable.
Hope this helps you.
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.
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.
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~~