All files / src/utils/components/charts chartExportToolbar.js

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33                                  7x                              
/**
 * Shared ApexCharts toolbar config: export menu on, navigation off.
 *
 * EI-3209 first enabled the PNG/SVG/CSV download menu, inline in
 * StackedColumnChart. EI-3067 then found the assignment Data Analytics page
 * could not export at all — its two charts still carried
 * `toolbar: { show: false }`, so the dashboard could export and the analytics
 * page could not, even though both pages promise it.
 *
 * Defining the config once is the point: a copy per chart is how that gap
 * appeared, and a third copy is how the next one would.
 *
 * Download only. Zoom/pan/selection stay off deliberately — these are small
 * summary charts, and the navigation tools clutter them without being useful.
 *
 * Developer: Allan Ninal
 */
export const EXPORT_ONLY_TOOLBAR = {
    show: true,
    offsetX: 0,
    offsetY: 0,
    tools: {
        download: true,
        selection: false,
        zoom: false,
        zoomin: false,
        zoomout: false,
        pan: false,
    },
};
 
export default EXPORT_ONLY_TOOLBAR;