Comments

Mirkozzo’s picture

I created a simple test views, i tried all morris-type, but it works only bar, line and area is not working, donut show white space.

morris-type=line
morris-type=donut
morris-type=area
morris-type=bar

minoroffense’s picture

Status: Active » Closed (works as designed)

Donut charts require your fields to be labeled "label" and "value" as per the documentation on Morris charts.

http://morrisjs.github.io/morris.js/donuts.html

Line and area require you to specify the xkey and ykeys values in the data attributes. See http://morrisjs.github.io/morris.js/lines.html

Check to make sure your generated tables and data attributes match up to what the Morrisjs library requires.

Bar is the least picky of the chart types which is probably why it works just like that.

If you have anymore questions post them here.