Hi Manu,
Thanks for using syncfusion products.
We have analyzed your query and we like to inform you that, coordinateUnits has 2 values.
- Pixel
- Point
Pixel: x and y values consider as pixel based on `region` property whether it depends on `Chart`(placed the annotation element with respect to container) or `Series` (Placed the annotation element with respect to chart area).
Point: x is represented as series points(x and y).
In your scenario, you have used coordinateUnits as Pixel that’s why the annotation has been rendered on that position. We have suggest to use coordinate unit as `Point` instead of `Pixel` and set the point value to x and y.
Please find the below code snippet to achieve your exact requirement,
|
Code Snippet:
<e-annotation visible = true
content='<div id = "test" style="border-top:3px dashed grey;border-top-width: 2px; width: 10000px"></div>'
x = 2014 y = 50
coordinateUnits='Point'>
</e-annotation>
|
Screenshot:
We have modified your sample based on this. Please find the sample from below link,
Kindly revert us, if you have any concerns.
Thanks,
Baby.