accept the html element where model is to be drawn, xPos of columns