chartist-js / chartist

Simple responsive charts
https://chartist.dev
MIT License
13.34k stars 2.53k forks source link

Axis label question #665

Closed jiiins closed 7 years ago

jiiins commented 8 years ago

Sorry for the lame title, it's not an issue per se. I'm using princexml to generate pdfs from html and unfortunately it still doesn't support , so a line chart gets printed without axis labels (in contrast, the labels in pie charts print fine).

Is there any way to generate the labels differently?

gionkunz commented 7 years ago

Hi sorry for the late reply. You can disable foreignObject labels with the following code snippet:

var chart = new Chartist.Line('#chart', {
  labels: ...
  series: ...
});

chart.supportsForeignObject = false;