Ishak Khan

Ishak Khan

  • NA
  • 25
  • 5.8k

How to show datalabels values defaultly in morris line chart

May 4 2017 5:53 AM
<script language="'javascript'">
Morris.Line({
element: 'divline',
data: [
{ y: "Jan'17", a: 22.00 },
{ y: "Feb'17", a: 28.00 },
{ y: "Mar'17", a: 32.14 },
{ y: "Apr'17", a: 21.67 },
{ y: "May'17", a: 43.33 },
{ y: "Jun'17", a: 48.33 },
],
parseTime: false,
dataLabels:
{
enabled: true
},
xkey: 'y',
ykeys: ['a'],
labels: ['y', 'a']
});
</script>