window.requirejs.config( {
paths : {
canvasjs :
'https://cdnjs.cloudflare.com/ajax/libs/canvasjs/1.7.0/canvasjs.min'
}
} );
// The CanvasJS library (see https://canvasjs.com/)
//
// This passes json.data directly to the CanvasJS.Chart constructor,
// then calls render() on the resulting object.
// After the rendering is complete, we then resize the output element to
// be large enough to contain the chart that has been created within it,
// because CanvasJS does not do so automatically.
// See the documentation here for details regarding the format:
// https://canvasjs.com/docs/charts/chart-types/
window.VisualizationTools.canvasjs =
function ( element, json, callback ) {
require( [
'canvasjs' ],
function ( canvasjs ) {
(
new window.CanvasJS.Chart( element, json.data ) ).render();
window.resizeToShowContents( element );
callback( element, element.childNodes[
0] );
} );
};
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-11-04)
¤
*© Formatika GbR, Deutschland