Chartjs-Angular chart js type line setting chart-options not working

0๐Ÿ‘

Try this solution

options : {
    scales : {
        xAxes : [ {
            gridLines : {
                display : false
            }
        } ]
    }
}

0๐Ÿ‘

I managed to make it work, only after changing the options from chartjsProvider.setOptions like this

ChartJsProvider.setOptions('line',{
        segmentShowStroke : false,
         elements: { arc: { borderWidth: 0 } ,  point: {
              radius: 0
            }},
         tooltips:{
                enabled:false
            },
        legend: {
                 display: false
            },
        scales: {
             yAxes: [
                     {

                       display: false,

                     }

                   ],
                   xAxes: [
                           {

                             display: false,

                           }

                         ]
        }
    });

Leave a comment