configuration.useSVG - Initialization - Reports API

Reports API Initialization

useSVG

Controls whether or not the Last Score by Item by User Report and Session List by Item reports render the traffic light scoring icons with SVG or HTML5 canvas elements.

You would want to use this to change the scoring elements to SVG format, which has accessibility improvements such as better screen reader support and icon based graphics.

See Configuring Scoring Icons for more information and a preview of the different icon appearances.

Examples

var initializationOptions = {
    "configuration": {
        "useSVG": true
    }
    // ...
};

Values

Attribute path configuration.useSVG

Default false

Type boolean

When set to true, it shows the report with the traffic light scoring motif rendered with SVG icons. This includes colors and an icon design to improve accessibility.

When set to false and by default, it shows the report with the traffic light scoring motif rendered with HTML5 canvas. This canvas is simply a color circle that indicates the various states of the Item.

Versioning

Version added: v2023.3.LTS

Related articles

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.