)) {
             var chartOpts = json.chart.chartOpts;
             var ctx = $('#canvas_' + commandId); // .getContext('2d');
             var chart = new Chart(ctx, chartOpts);
             // debugger;
             // $('#canvas_' + commandId).show();
         }

         if (json.hasOwnProperty('erlcode')) {
             if (json.erlcode != '') {
                 $('.code-editor').text(json.erlcode)
                 show_editor_area()  // must be done before set_editor_value
                 set_editor