a
- Igor Busquets asked 1 year ago
- last edited 1 year ago
- You must login to post comments
Hi Igor,
You’re asking for a custom feature when in a trial (correct me if I’m wrong), which is outside the scope of our tech support. I am confident that this is possible with SciChart but requires some custom work. Perhaps 1-2 days to implement?
If this is functionality you require we can build it for you as custom work along with a licensing deal.
In the meantime, if you want to figure it out yourself, or learn more, I can point you in the right direction:
-
Take a look at our Custom Modifiers Sandbox project on GitHub. In particular, in this project there are several custom modifiers in a sample app which show how to add custom actions or behaviours (we call ChartModifiers) to SciChart WPF
-
Take at the SimpleDataPointEditModifier.cs. This is the modifier which handles click-selection and dragging of points, however, it is limited to a single point.
-
We have other modifiers in-house which can perform multi select. For example the DataPointSelectionModifier allows you to hold CTRL and multi-select points.
A proposed solution would be to inherit DataPointSelectionModifier
and override the OnModifierMouseDown
, OnModifierMouseMove
, OnModifierMouseUp
functions to allow dragging or moving of the selected points perhaps when a certain key is pressed. There are also OnModifierKeyDown
and OnModifierKeyUp
functions which can be overridden to perform actions on key press.
To get if a point is currently selected look at DataSeries.Metadata[I].IsSelected
, or, the list of points selected is also accessible in DataPointSelectionModifier.SelectedPointMarkers
.
This could be quite simple to implement. However, with minor customisations like this, sometimes complexity can arise after starting investigating, for example we would need to know exactly why you want todo this, the business requirements, details about the series types (line, scatter, candle), whether series need to be moved in X and Y or just Y etc… How to enable or cancel the movement, whether undo is needed etc…
I suggest reaching out to our sales team to discuss the requirements in more detail and we can take it from there?
We look forward to hearing from you,
Best regards
Andrew
- Andrew Burnett-Thompson answered 1 year ago
- last edited 1 year ago
- You must login to post comments
Please login first to submit.