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,
You can add the following check for the code in the ClumnSeries' PreviewMouseLeftButtonDown event handler:
if ((e.OriginalSource as Path).StrokeThickness == .5) { //the code }
This way you will be able to determine if the user clicks on a Marker or the Line.
Hi Steven,
In your sample, I have a problem.
When you click line, not marker, you'll see below scenario.
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.
Hello Stefan,
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.
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.