morrisjs / morris.js

Pretty time-series line graphs
http://morrisjs.github.com/morris.js/
6.92k stars 1.23k forks source link

Error: <rect> attribute width: Expected length, "Infinity". #800

Open HarAlb opened 4 years ago

HarAlb commented 4 years ago

Moriss js , bugfix

HarAlb commented 4 years ago

I realy need this ,i have a 2 ykeys

new Morris.Bar({
                    element: 'hired-chart',
                    data: [
                              {day: "2020-08-01", names: "empty", count: 0},
                              {day: "2020-08-02", names: "Adasdas asdasd , asdasdasdsa sadasdas ,adasdasd eqweqwe", count: 3}
                    ],
                    xkey: 'day',
                    ykeys: ['names' ,'count'],
                    labels: ['Names', 'count'],
                    pointSize: 0,
                    lineWidth: 0,
                    resize:true,
                    fillOpacity: 0.8,
                    behaveLikeLine: true,
                    gridLineColor: '#e0e0e0',
                    hideHover: 'auto',
                    lineColors: ['#03a504'],
                    parseTime: false,
                    top: 80,
                    xLabelAngle: 60,
                    barColors: ['#03a504']
                });