Open tom10271 opened 9 years ago
This is due to wrong inRange function:
inRange : function(chartX,chartY){
return (chartY >= this.y - this.height/2 && chartY <= this.y + this.height/2) && (chartX >= this.left && chartX <= this.x);
}
For the last part, it should be:
chartX >= this.left && chartX <= this.x
not chartX >= this.left && chartX <= this.right
as there is no right
property
Code: