jquery - Morris graph year x axis -


http://jsfiddle.net/wb6jz/

i have problem x axis, want display dates, not year, define this?

    morris.area({   element: 'area-example',   data: [     { y: '1.1.', a: 100, b: 90 },     { y: '2.1.', a: 75,  b: 65 },     { y: '3.1.', a: 50,  b: 40 },     { y: '4.1.', a: 75,  b: 65 },     { y: '5.1.', a: 50,  b: 40 },     { y: '6.1.', a: 75,  b: 65 },     { y: '7.1.', a: 100, b: 90 }   ],   xkey: 'y',   ykeys: ['a', 'b'],   labels: ['series a', 'series b'] }); 

i don't think y formated correctly, if want see dates instead of years add xlabels: "day"

see http://jsfiddle.net/wb6jz/1/

documentation: http://www.oesmith.co.uk/morris.js/lines.html


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -