|
Hotspot Accuracy |
Posted by Oliver on Oct-09-2012 04:26 |
|
Hi Peter,
we detected, that hotspots are sometimes not detected precisely:
attached, please find a screenshot from your sample code.
Please note the center of the crosshair cursor: despite it is approx. 4-5 pixel away from the line, the position is regarded as hotspot.
BR
Oliver
|
Re: Hotspot Accuracy |
Posted by Peter Kwan on Oct-09-2012 07:03 |
|
Hi Oliver,
For a line chart, the hot spot of a line is intentionally configured as if the line is at least 10 pixels wide. It is because if the too thin, it is very difficult or impossible for the mouse to hit the hot spot if the hot spot is of the same width of the line.
A further complication is that for a thin line, many or all of the pixels are only "partially filled" by the line. If the mouse is on those pixels, the browser may or may not consider the mouse to have hit the hot spot. So for safety and ease of use, the hot spot needs to be wide enough for a resonable number of pixels to be completely within the hot spot region.
The hot spot width is configurable using LineLayer.setImageMapWidth. You can configure the hot spot width to be the same as the line width if you like.
Hope this can help.
Regards
Peter Kwan |
Re: Hotspot Accuracy |
Posted by Oliver on Oct-09-2012 10:58 |
|
Hi Peter,
thank you very much - superb component and support !
Best regards
Oliver |
|