This code creates a canvas element with an id of 'myCanvas'. It then gets a reference to the canvas context with getContext('2d'). The fillRect method is used to draw a rectangle at coordinates (10, ...
Hey folks, I am using box annotations to 'mark' areas of a chart (sort of showing down/inactive time periods against other data) and I noticed that specifying borderWidth as 0 does not have the ...
I've noticed that with the following code, the stroke width is actually two (2) pixels instead of one (1) and is a little fuzzy instead of being sharp: This happens when drawing paths or rectangles.