Generate graphic with canvas.