javascript - morris.js area chart not show x-axis labels -


this code

morris.area({   element: 'k-line-morris',   data: [     { y: '2006', a: 100, b: 90, c:  math.floor(math.random() * 200) + 1 , d: math.floor(math.random() * 200) + 1 },     { y: '2007', a: 75,  b: 65 , c:  math.floor(math.random() * 200) + 1 , d: math.floor(math.random() * 200) + 1},     { y: '2008', a: 50,  b: 70 , c:  math.floor(math.random() * 200) + 1, d: math.floor(math.random() * 200) + 1},     { y: '2009', a: 115,  b: 25 , c:  math.floor(math.random() * 200) + 1, d: math.floor(math.random() * 200) + 1},     { y: '2010', a: 50,  b: -20 , c:  math.floor(math.random() * 200) + 1, d: math.floor(math.random() * 20) + 1},     { y: '2011', a: 75,  b: 65, c:  math.floor(math.random() * 200) + 1, d: math.floor(math.random() * 200) + 1},     { y: '2012', a: 100, b: 90 , c:  math.floor(math.random() * 200) + 1, d: math.floor(math.random() * 60) + 1},   ],   xkey: 'y',   ykeys: ['a', 'b','c','d'],   labels: ['branch #54', 'branch #89b', 'branch #34c','branch #12'],  linecolors:['#111567','#222897','#765432','#ccddff']  }); 

have know how solve problem?thank you!


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -