When trying to add a gradient to a line chart, I needed to get it\'s canvas. Before proceeding with the canvas I added a typecheck, however Vetur remarked that the "Obj