odoo-13.0/addons/survey/static/src/js/survey_result.js
//load chart to svg element chart:initialized chart, response:AJAX response, quistion_id:if of survey question, tick_limit:text length limit
load chart to svg element chart:initialized chart, response:AJAX response, quistion_id:if of survey question, tick_limit:text length limit
load chart to svg element chart : initialized chart response : AJAX response quistion_id : if of survey question tick_limit : text length limit
function load_chart(chartConfig, containerSelector){
        var $container = $(containerSelector).css({position: 'relative'});
        var $canvas = $container.find('canvas');
        var ctx = $canvas.get(0).getContext('2d');
        return new Chart(ctx, chartConfig);
    }
function load_chart ( chartConfig , containerSelector ) { var $container = $ ( containerSelector ) . css ( { position : 'relative' } ) ; var $canvas = $container . find ( 'canvas' ) ; var ctx = $canvas . get ( 0 ) . getContext ( '2d' ) ; return new Chart ( ctx , chartConfig ) ; }
load chart to svg element chart:initialized chart, response:AJAX response, quistion_id:if of survey question, tick_limit:text length limit
load chart to svg element chart : initialized chart response : AJAX response quistion_id : if of survey question tick_limit : text length limit