Show graph chartJS even if it has no data

0

Is there a way to display the ChartCh BarChart chart columns, even if they do not have data to display?

    
asked by anonymous 11.11.2016 / 11:20

1 answer

1

From what I've seen in several libraries, including ChartJS libraries, it is only possible to show the column with some value, even if it is zero (0).

Because a chart is based on values, so if it has no values, it will not be shown.

I've done a JSFiddle for example. In it I inform the array date with zero values, so the graph appears, but not the columns. Like I said, they will only show up if they have value.

    
11.11.2016 / 11:40