@dhis2/analytics 26.7.9 → 26.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -105,7 +105,7 @@ const twoCategoryChartTypes = [VIS_TYPE_COLUMN, VIS_TYPE_STACKED_COLUMN, VIS_TYP
|
|
|
105
105
|
const columnBasedTypes = [VIS_TYPE_COLUMN, VIS_TYPE_BAR, VIS_TYPE_YEAR_OVER_YEAR_COLUMN, VIS_TYPE_STACKED_COLUMN, VIS_TYPE_STACKED_BAR];
|
|
106
106
|
const verticalTypes = [VIS_TYPE_BAR, VIS_TYPE_STACKED_BAR, VIS_TYPE_GAUGE];
|
|
107
107
|
const legendSetTypes = [VIS_TYPE_COLUMN, VIS_TYPE_BAR, VIS_TYPE_GAUGE, VIS_TYPE_SINGLE_VALUE, VIS_TYPE_PIVOT_TABLE, VIS_TYPE_STACKED_COLUMN, VIS_TYPE_STACKED_BAR];
|
|
108
|
-
const defaultVisType =
|
|
108
|
+
const defaultVisType = VIS_TYPE_PIVOT_TABLE;
|
|
109
109
|
exports.defaultVisType = defaultVisType;
|
|
110
110
|
const isStacked = type => stackedTypes.includes(type);
|
|
111
111
|
exports.isStacked = isStacked;
|
|
@@ -75,7 +75,7 @@ const twoCategoryChartTypes = [VIS_TYPE_COLUMN, VIS_TYPE_STACKED_COLUMN, VIS_TYP
|
|
|
75
75
|
const columnBasedTypes = [VIS_TYPE_COLUMN, VIS_TYPE_BAR, VIS_TYPE_YEAR_OVER_YEAR_COLUMN, VIS_TYPE_STACKED_COLUMN, VIS_TYPE_STACKED_BAR];
|
|
76
76
|
const verticalTypes = [VIS_TYPE_BAR, VIS_TYPE_STACKED_BAR, VIS_TYPE_GAUGE];
|
|
77
77
|
const legendSetTypes = [VIS_TYPE_COLUMN, VIS_TYPE_BAR, VIS_TYPE_GAUGE, VIS_TYPE_SINGLE_VALUE, VIS_TYPE_PIVOT_TABLE, VIS_TYPE_STACKED_COLUMN, VIS_TYPE_STACKED_BAR];
|
|
78
|
-
export const defaultVisType =
|
|
78
|
+
export const defaultVisType = VIS_TYPE_PIVOT_TABLE;
|
|
79
79
|
export const isStacked = type => stackedTypes.includes(type);
|
|
80
80
|
export const isYearOverYear = type => yearOverYearTypes.includes(type);
|
|
81
81
|
export const isDualAxisType = type => dualAxisTypes.includes(type);
|