Change color to some statistical bars with Chart.js

0

Hello, I need support on how I can change the color of the bars below and I try to change them but I have no result.

this is my code

$(function () {

$.ajax({
    url: baseurl + 'asistencia/traer_turnos',
    type: "POST",
    dataType: "JSON",
    success: function (data)
    {
        var bar = Morris.Bar({
            element: 'bar-chart',
            data: data,
            xkey: 'turno',
            ykeys: ['total_docentes', 'total_alumnos', 'docentes_faltantes', 'alumnos_faltantes'],
            labels: ['Total Docentes', 'Total Alumnos', 'Alumnos Faltantes', 'Docentes Faltantes'],
            fillColor: ['#0b62a4', '#D58665', '#FFFFFF', '#BC05FF'],
            hideHover: 'auto',
        });
    }
});

});

    
asked by Ivan More Flores 04.05.2017 в 23:37
source

1 answer

-1

It was just:

'barColors: ['#0b62a4', '#D58665', '#00ffd1', '#BC05FF'],'
    
answered by 09.05.2017 в 15:32