Home › forums › Report Bugs › Drag drop not working for precise points
Tagged: Drag drop
This topic contains 1 reply, has 2 voices, and was last updated by Bivek Singh 11 months, 3 weeks ago.
I created dynamic drag drop line chart, now i am unable to drag to a particular number. i.e. from 2000 to 1000, it will be either 1000+ or below 1000.
In my use case, user will drag to a particular point but exactly to a particular is not happening.
Your valuable suggestions please.
Sometimes multiple values are represented by single pixel co-ordinate. This happens when the number of values on axis is greater than actual pixels available in given chart container. For example: If the height of the chart is 200px and the axis range is 0 to 1000. Each pixel co-ordinate will represent 5 axis value co-ordinates.
You can overcome this issue by rounding off the selected value as per your requirement. You can also take a look at this example which uses ySnapDistance to round off the pixel positions.
You can also re-adjust the height and width of the chart and see if it makes any changes.
You must be logged in to reply to this topic.