systelab / systelab-charts

Systelab Angular Chart services
MIT License
0 stars 1 forks source link

feature-180 #181

Closed OscarDeDios closed 9 months ago

OscarDeDios commented 9 months ago

Fixed the annotations to don't convert the value to string in vertical orientation.

Now the value can be numeric or string. If it's string it should be equal to some of the ticks, if it's numeric the annotation will be placed relative to the length of the array ticks or to the axe if there is no ticks. For example if the ticks are ['1','2','3','4'] a value of '2' will draw the annotation on '2' tick, a value of 1.5 will draw beetween '2' and '3' because will placed relative to 0 - 3 (number of elements of the array).