Home » Javascript » c3.js chart.load some time not loading data properly

c3.js chart.load some time not loading data properly

Posted by: admin August 19, 2018 Leave a comment

Questions:

i creating scattered chart on c3.js and output is some time wrong and some time right and when opening inspect element of my browser output convert from wrong to right i am using below give code to load the charts

function time_out(text_out,chart,timeout,div_id){

    setTimeout(
        function(){
            chart.load({
                bindto: div_id,
                columns: [
                    text_out[0],text_out[1],text_out[2],text_out[3]
                ]
            })

        }, timeout);

}
Answers: