Try add a canvas class to draw linear graph
try override on-paint of canvas