javascript - Chartist always has left spacing? -
with chartist.js no matter do, hide labels via css or showlabel: false
there space left , bottom.
i trying absolutely position chart fit in div, chart begins on left , draws way other end without space or padding.
i have tried many different ways of hiding grid , labels, hidden space still there.
i don't want hack css , left:-100px
width:104%
.
here examples.
on project blue chart should have no white space left or bottom. chartist wrapper looks this.
.minimal-chart.ct-chart { background-color: transparent; position: absolute; width: 100%; left: 0; top: 0; height: 100%; padding: 0; z-index: 2; }
even on site can see no near flush box below
you can add these options when initialize it:
chartpadding: { left: -40 }