@hisptz/dhis2-analytics 1.0.51 → 1.0.53

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.
Files changed (119) hide show
  1. package/LICENSE +29 -0
  2. package/build/cjs/components/Visualization/components/AnalyticsDataProvider/index.js +8 -5
  3. package/build/es/components/Visualization/components/AnalyticsDataProvider/index.js +8 -5
  4. package/package.json +4 -4
  5. package/.gitignore +0 -5
  6. package/d2.config.js +0 -8
  7. package/i18n/en.pot +0 -439
  8. package/src/components/ChartAnalytics/ChartAnalytics.test.tsx +0 -51
  9. package/src/components/ChartAnalytics/components/DownloadMenu/components/Menu.tsx +0 -48
  10. package/src/components/ChartAnalytics/components/DownloadMenu/constants/menu.ts +0 -38
  11. package/src/components/ChartAnalytics/components/DownloadMenu/index.tsx +0 -65
  12. package/src/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.ts +0 -1
  13. package/src/components/ChartAnalytics/hooks/useChart.ts +0 -35
  14. package/src/components/ChartAnalytics/index.tsx +0 -28
  15. package/src/components/ChartAnalytics/models/bar.ts +0 -20
  16. package/src/components/ChartAnalytics/models/column.ts +0 -52
  17. package/src/components/ChartAnalytics/models/index.ts +0 -111
  18. package/src/components/ChartAnalytics/models/line.ts +0 -31
  19. package/src/components/ChartAnalytics/models/multi-series.ts +0 -115
  20. package/src/components/ChartAnalytics/models/pie.ts +0 -54
  21. package/src/components/ChartAnalytics/services/export.ts +0 -38
  22. package/src/components/ChartAnalytics/styles/custom-highchart.css +0 -48
  23. package/src/components/ChartAnalytics/types/props.tsx +0 -48
  24. package/src/components/ChartAnalytics/utils/chart.ts +0 -128
  25. package/src/components/CircularProgressDashboard/CircularProgressIndicator.test.tsx +0 -9
  26. package/src/components/CircularProgressDashboard/index.tsx +0 -36
  27. package/src/components/CircularProgressDashboard/types/props.tsx +0 -17
  28. package/src/components/CustomPivotTable/components/Table/index.tsx +0 -23
  29. package/src/components/CustomPivotTable/components/TableBody/TableBody.module.css +0 -12
  30. package/src/components/CustomPivotTable/components/TableBody/index.tsx +0 -96
  31. package/src/components/CustomPivotTable/components/TableHeaders/TableHeaders.module.css +0 -10
  32. package/src/components/CustomPivotTable/components/TableHeaders/index.tsx +0 -94
  33. package/src/components/CustomPivotTable/index.tsx +0 -63
  34. package/src/components/CustomPivotTable/interfaces/index.ts +0 -1
  35. package/src/components/CustomPivotTable/services/engine.ts +0 -102
  36. package/src/components/CustomPivotTable/state/engine.tsx +0 -22
  37. package/src/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfigModal.stories.tsx +0 -28
  38. package/src/components/Map/components/EarthEngineLayerConfiguration/EarthEngineLayerConfiguration.stories.tsx +0 -34
  39. package/src/components/Map/components/EarthEngineLayerConfiguration/index.tsx +0 -412
  40. package/src/components/Map/components/MapArea/index.tsx +0 -83
  41. package/src/components/Map/components/MapArea/interfaces/index.ts +0 -39
  42. package/src/components/Map/components/MapControls/components/CustomControl/index.tsx +0 -24
  43. package/src/components/Map/components/MapControls/components/DownloadControl/index.tsx +0 -11
  44. package/src/components/Map/components/MapControls/components/FullscreenControl/index.tsx +0 -7
  45. package/src/components/Map/components/MapControls/index.tsx +0 -24
  46. package/src/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.ts +0 -7
  47. package/src/components/Map/components/MapLayer/components/BoundaryLayer/index.tsx +0 -55
  48. package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.tsx +0 -74
  49. package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.ts +0 -430
  50. package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.ts +0 -34
  51. package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/index.tsx +0 -185
  52. package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.ts +0 -56
  53. package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +0 -34241
  54. package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.ts +0 -431
  55. package/src/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.ts +0 -105
  56. package/src/components/Map/components/MapLayer/components/LegendArea/LegendArea.module.css +0 -12
  57. package/src/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.tsx +0 -17
  58. package/src/components/Map/components/MapLayer/components/LegendArea/index.tsx +0 -167
  59. package/src/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.tsx +0 -44
  60. package/src/components/Map/components/MapLayer/components/PointLayer/hooks/index.ts +0 -8
  61. package/src/components/Map/components/MapLayer/components/PointLayer/index.tsx +0 -36
  62. package/src/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.tsx +0 -48
  63. package/src/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.tsx +0 -150
  64. package/src/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.tsx +0 -39
  65. package/src/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.tsx +0 -57
  66. package/src/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.tsx +0 -43
  67. package/src/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.tsx +0 -38
  68. package/src/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.tsx +0 -26
  69. package/src/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.ts +0 -10
  70. package/src/components/Map/components/MapLayer/components/ThematicLayer/index.tsx +0 -46
  71. package/src/components/Map/components/MapLayer/components/ThematicLayer/styles/legends.css +0 -62
  72. package/src/components/Map/components/MapLayer/index.tsx +0 -32
  73. package/src/components/Map/components/MapLayer/interfaces/index.ts +0 -139
  74. package/src/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.tsx +0 -368
  75. package/src/components/Map/components/MapProvider/components/MapLayerProvider/index.tsx +0 -105
  76. package/src/components/Map/components/MapProvider/hooks/index.ts +0 -14
  77. package/src/components/Map/components/MapProvider/index.tsx +0 -93
  78. package/src/components/Map/components/MapUpdater/index.tsx +0 -8
  79. package/src/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfigModal.stories.tsx +0 -28
  80. package/src/components/Map/components/ThematicLayerConfiguration/ThematicLayerConfiguration.stories.tsx +0 -34
  81. package/src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.tsx +0 -24
  82. package/src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.ts +0 -433
  83. package/src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.tsx +0 -50
  84. package/src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScale.module.css +0 -15
  85. package/src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/styles/ColorScaleSelect.module.css +0 -12
  86. package/src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.ts +0 -91
  87. package/src/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.tsx +0 -45
  88. package/src/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.tsx +0 -47
  89. package/src/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.tsx +0 -57
  90. package/src/components/Map/components/ThematicLayerConfiguration/index.tsx +0 -248
  91. package/src/components/Map/constants/colors.ts +0 -434
  92. package/src/components/Map/constants/legendSet.ts +0 -19
  93. package/src/components/Map/hooks/map.ts +0 -47
  94. package/src/components/Map/index.tsx +0 -65
  95. package/src/components/Map/interfaces/index.ts +0 -57
  96. package/src/components/Map/state/index.tsx +0 -31
  97. package/src/components/Map/utils/colors.ts +0 -95
  98. package/src/components/Map/utils/helpers.ts +0 -15
  99. package/src/components/Map/utils/map.ts +0 -150
  100. package/src/components/SingleValueContainer/SingleValueContainer.test.tsx +0 -24
  101. package/src/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.tsx +0 -46
  102. package/src/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.tsx +0 -12
  103. package/src/components/SingleValueContainer/index.tsx +0 -37
  104. package/src/components/SingleValueContainer/styles/SingleValueContainer.module.css +0 -39
  105. package/src/components/SingleValueContainer/types/props.tsx +0 -16
  106. package/src/components/Visualization/components/AnalyticsDataProvider/index.tsx +0 -76
  107. package/src/components/Visualization/components/DimensionsProvider/index.tsx +0 -51
  108. package/src/components/Visualization/components/LayoutProvider/index.tsx +0 -34
  109. package/src/components/Visualization/components/VisualizationDimensionSelector/index.tsx +0 -59
  110. package/src/components/Visualization/components/VisualizationProvider/index.tsx +0 -31
  111. package/src/components/Visualization/components/VisualizationSelector/index.tsx +0 -157
  112. package/src/components/Visualization/components/VisualizationTypeProvider/index.tsx +0 -40
  113. package/src/components/Visualization/components/VisualizationTypeSelector/index.tsx +0 -46
  114. package/src/components/Visualization/index.tsx +0 -103
  115. package/src/index.ts +0 -6
  116. package/src/locales/en/translations.json +0 -138
  117. package/src/locales/index.js +0 -16
  118. package/tsconfig.build.json +0 -46
  119. package/tsconfig.json +0 -51
@@ -1,434 +0,0 @@
1
- export const COLOR_PALETTES = {
2
- YlGn: {
3
- 3: ["#f7fcb9", "#addd8e", "#31a354"],
4
- 4: ["#ffffcc", "#c2e699", "#78c679", "#238443"],
5
- 5: ["#ffffcc", "#c2e699", "#78c679", "#31a354", "#006837"],
6
- 6: ["#ffffcc", "#d9f0a3", "#addd8e", "#78c679", "#31a354", "#006837"],
7
- 7: ["#ffffcc", "#d9f0a3", "#addd8e", "#78c679", "#41ab5d", "#238443", "#005a32"],
8
- 8: ["#ffffe5", "#f7fcb9", "#d9f0a3", "#addd8e", "#78c679", "#41ab5d", "#238443", "#005a32"],
9
- 9: ["#ffffe5", "#f7fcb9", "#d9f0a3", "#addd8e", "#78c679", "#41ab5d", "#238443", "#006837", "#004529"],
10
- },
11
- YlGnBu: {
12
- 3: ["#edf8b1", "#7fcdbb", "#2c7fb8"],
13
- 4: ["#ffffcc", "#a1dab4", "#41b6c4", "#225ea8"],
14
- 5: ["#ffffcc", "#a1dab4", "#41b6c4", "#2c7fb8", "#253494"],
15
- 6: ["#ffffcc", "#c7e9b4", "#7fcdbb", "#41b6c4", "#2c7fb8", "#253494"],
16
- 7: ["#ffffcc", "#c7e9b4", "#7fcdbb", "#41b6c4", "#1d91c0", "#225ea8", "#0c2c84"],
17
- 8: ["#ffffd9", "#edf8b1", "#c7e9b4", "#7fcdbb", "#41b6c4", "#1d91c0", "#225ea8", "#0c2c84"],
18
- 9: ["#ffffd9", "#edf8b1", "#c7e9b4", "#7fcdbb", "#41b6c4", "#1d91c0", "#225ea8", "#253494", "#081d58"],
19
- },
20
- GnBu: {
21
- 3: ["#e0f3db", "#a8ddb5", "#43a2ca"],
22
- 4: ["#f0f9e8", "#bae4bc", "#7bccc4", "#2b8cbe"],
23
- 5: ["#f0f9e8", "#bae4bc", "#7bccc4", "#43a2ca", "#0868ac"],
24
- 6: ["#f0f9e8", "#ccebc5", "#a8ddb5", "#7bccc4", "#43a2ca", "#0868ac"],
25
- 7: ["#f0f9e8", "#ccebc5", "#a8ddb5", "#7bccc4", "#4eb3d3", "#2b8cbe", "#08589e"],
26
- 8: ["#f7fcf0", "#e0f3db", "#ccebc5", "#a8ddb5", "#7bccc4", "#4eb3d3", "#2b8cbe", "#08589e"],
27
- 9: ["#f7fcf0", "#e0f3db", "#ccebc5", "#a8ddb5", "#7bccc4", "#4eb3d3", "#2b8cbe", "#0868ac", "#084081"],
28
- },
29
- BuGn: {
30
- 3: ["#e5f5f9", "#99d8c9", "#2ca25f"],
31
- 4: ["#edf8fb", "#b2e2e2", "#66c2a4", "#238b45"],
32
- 5: ["#edf8fb", "#b2e2e2", "#66c2a4", "#2ca25f", "#006d2c"],
33
- 6: ["#edf8fb", "#ccece6", "#99d8c9", "#66c2a4", "#2ca25f", "#006d2c"],
34
- 7: ["#edf8fb", "#ccece6", "#99d8c9", "#66c2a4", "#41ae76", "#238b45", "#005824"],
35
- 8: ["#f7fcfd", "#e5f5f9", "#ccece6", "#99d8c9", "#66c2a4", "#41ae76", "#238b45", "#005824"],
36
- 9: ["#f7fcfd", "#e5f5f9", "#ccece6", "#99d8c9", "#66c2a4", "#41ae76", "#238b45", "#006d2c", "#00441b"],
37
- },
38
- PuBuGn: {
39
- 3: ["#ece2f0", "#a6bddb", "#1c9099"],
40
- 4: ["#f6eff7", "#bdc9e1", "#67a9cf", "#02818a"],
41
- 5: ["#f6eff7", "#bdc9e1", "#67a9cf", "#1c9099", "#016c59"],
42
- 6: ["#f6eff7", "#d0d1e6", "#a6bddb", "#67a9cf", "#1c9099", "#016c59"],
43
- 7: ["#f6eff7", "#d0d1e6", "#a6bddb", "#67a9cf", "#3690c0", "#02818a", "#016450"],
44
- 8: ["#fff7fb", "#ece2f0", "#d0d1e6", "#a6bddb", "#67a9cf", "#3690c0", "#02818a", "#016450"],
45
- 9: ["#fff7fb", "#ece2f0", "#d0d1e6", "#a6bddb", "#67a9cf", "#3690c0", "#02818a", "#016c59", "#014636"],
46
- },
47
- PuBu: {
48
- 3: ["#ece7f2", "#a6bddb", "#2b8cbe"],
49
- 4: ["#f1eef6", "#bdc9e1", "#74a9cf", "#0570b0"],
50
- 5: ["#f1eef6", "#bdc9e1", "#74a9cf", "#2b8cbe", "#045a8d"],
51
- 6: ["#f1eef6", "#d0d1e6", "#a6bddb", "#74a9cf", "#2b8cbe", "#045a8d"],
52
- 7: ["#f1eef6", "#d0d1e6", "#a6bddb", "#74a9cf", "#3690c0", "#0570b0", "#034e7b"],
53
- 8: ["#fff7fb", "#ece7f2", "#d0d1e6", "#a6bddb", "#74a9cf", "#3690c0", "#0570b0", "#034e7b"],
54
- 9: ["#fff7fb", "#ece7f2", "#d0d1e6", "#a6bddb", "#74a9cf", "#3690c0", "#0570b0", "#045a8d", "#023858"],
55
- },
56
- BuPu: {
57
- 3: ["#e0ecf4", "#9ebcda", "#8856a7"],
58
- 4: ["#edf8fb", "#b3cde3", "#8c96c6", "#88419d"],
59
- 5: ["#edf8fb", "#b3cde3", "#8c96c6", "#8856a7", "#810f7c"],
60
- 6: ["#edf8fb", "#bfd3e6", "#9ebcda", "#8c96c6", "#8856a7", "#810f7c"],
61
- 7: ["#edf8fb", "#bfd3e6", "#9ebcda", "#8c96c6", "#8c6bb1", "#88419d", "#6e016b"],
62
- 8: ["#f7fcfd", "#e0ecf4", "#bfd3e6", "#9ebcda", "#8c96c6", "#8c6bb1", "#88419d", "#6e016b"],
63
- 9: ["#f7fcfd", "#e0ecf4", "#bfd3e6", "#9ebcda", "#8c96c6", "#8c6bb1", "#88419d", "#810f7c", "#4d004b"],
64
- },
65
- RdPu: {
66
- 3: ["#fde0dd", "#fa9fb5", "#c51b8a"],
67
- 4: ["#feebe2", "#fbb4b9", "#f768a1", "#ae017e"],
68
- 5: ["#feebe2", "#fbb4b9", "#f768a1", "#c51b8a", "#7a0177"],
69
- 6: ["#feebe2", "#fcc5c0", "#fa9fb5", "#f768a1", "#c51b8a", "#7a0177"],
70
- 7: ["#feebe2", "#fcc5c0", "#fa9fb5", "#f768a1", "#dd3497", "#ae017e", "#7a0177"],
71
- 8: ["#fff7f3", "#fde0dd", "#fcc5c0", "#fa9fb5", "#f768a1", "#dd3497", "#ae017e", "#7a0177"],
72
- 9: ["#fff7f3", "#fde0dd", "#fcc5c0", "#fa9fb5", "#f768a1", "#dd3497", "#ae017e", "#7a0177", "#49006a"],
73
- },
74
- PuRd: {
75
- 3: ["#e7e1ef", "#c994c7", "#dd1c77"],
76
- 4: ["#f1eef6", "#d7b5d8", "#df65b0", "#ce1256"],
77
- 5: ["#f1eef6", "#d7b5d8", "#df65b0", "#dd1c77", "#980043"],
78
- 6: ["#f1eef6", "#d4b9da", "#c994c7", "#df65b0", "#dd1c77", "#980043"],
79
- 7: ["#f1eef6", "#d4b9da", "#c994c7", "#df65b0", "#e7298a", "#ce1256", "#91003f"],
80
- 8: ["#f7f4f9", "#e7e1ef", "#d4b9da", "#c994c7", "#df65b0", "#e7298a", "#ce1256", "#91003f"],
81
- 9: ["#f7f4f9", "#e7e1ef", "#d4b9da", "#c994c7", "#df65b0", "#e7298a", "#ce1256", "#980043", "#67001f"],
82
- },
83
- OrRd: {
84
- 3: ["#fee8c8", "#fdbb84", "#e34a33"],
85
- 4: ["#fef0d9", "#fdcc8a", "#fc8d59", "#d7301f"],
86
- 5: ["#fef0d9", "#fdcc8a", "#fc8d59", "#e34a33", "#b30000"],
87
- 6: ["#fef0d9", "#fdd49e", "#fdbb84", "#fc8d59", "#e34a33", "#b30000"],
88
- 7: ["#fef0d9", "#fdd49e", "#fdbb84", "#fc8d59", "#ef6548", "#d7301f", "#990000"],
89
- 8: ["#fff7ec", "#fee8c8", "#fdd49e", "#fdbb84", "#fc8d59", "#ef6548", "#d7301f", "#990000"],
90
- 9: ["#fff7ec", "#fee8c8", "#fdd49e", "#fdbb84", "#fc8d59", "#ef6548", "#d7301f", "#b30000", "#7f0000"],
91
- },
92
- YlOrRd: {
93
- 3: ["#ffeda0", "#feb24c", "#f03b20"],
94
- 4: ["#ffffb2", "#fecc5c", "#fd8d3c", "#e31a1c"],
95
- 5: ["#ffffb2", "#fecc5c", "#fd8d3c", "#f03b20", "#bd0026"],
96
- 6: ["#ffffb2", "#fed976", "#feb24c", "#fd8d3c", "#f03b20", "#bd0026"],
97
- 7: ["#ffffb2", "#fed976", "#feb24c", "#fd8d3c", "#fc4e2a", "#e31a1c", "#b10026"],
98
- 8: ["#ffffcc", "#ffeda0", "#fed976", "#feb24c", "#fd8d3c", "#fc4e2a", "#e31a1c", "#b10026"],
99
- 9: ["#ffffcc", "#ffeda0", "#fed976", "#feb24c", "#fd8d3c", "#fc4e2a", "#e31a1c", "#bd0026", "#800026"],
100
- },
101
- YlOrBr: {
102
- 3: ["#fff7bc", "#fec44f", "#d95f0e"],
103
- 4: ["#ffffd4", "#fed98e", "#fe9929", "#cc4c02"],
104
- 5: ["#ffffd4", "#fed98e", "#fe9929", "#d95f0e", "#993404"],
105
- 6: ["#ffffd4", "#fee391", "#fec44f", "#fe9929", "#d95f0e", "#993404"],
106
- 7: ["#ffffd4", "#fee391", "#fec44f", "#fe9929", "#ec7014", "#cc4c02", "#8c2d04"],
107
- 8: ["#ffffe5", "#fff7bc", "#fee391", "#fec44f", "#fe9929", "#ec7014", "#cc4c02", "#8c2d04"],
108
- 9: ["#ffffe5", "#fff7bc", "#fee391", "#fec44f", "#fe9929", "#ec7014", "#cc4c02", "#993404", "#662506"],
109
- },
110
- Purples: {
111
- 3: ["#efedf5", "#bcbddc", "#756bb1"],
112
- 4: ["#f2f0f7", "#cbc9e2", "#9e9ac8", "#6a51a3"],
113
- 5: ["#f2f0f7", "#cbc9e2", "#9e9ac8", "#756bb1", "#54278f"],
114
- 6: ["#f2f0f7", "#dadaeb", "#bcbddc", "#9e9ac8", "#756bb1", "#54278f"],
115
- 7: ["#f2f0f7", "#dadaeb", "#bcbddc", "#9e9ac8", "#807dba", "#6a51a3", "#4a1486"],
116
- 8: ["#fcfbfd", "#efedf5", "#dadaeb", "#bcbddc", "#9e9ac8", "#807dba", "#6a51a3", "#4a1486"],
117
- 9: ["#fcfbfd", "#efedf5", "#dadaeb", "#bcbddc", "#9e9ac8", "#807dba", "#6a51a3", "#54278f", "#3f007d"],
118
- },
119
- Blues: {
120
- 3: ["#deebf7", "#9ecae1", "#3182bd"],
121
- 4: ["#eff3ff", "#bdd7e7", "#6baed6", "#2171b5"],
122
- 5: ["#eff3ff", "#bdd7e7", "#6baed6", "#3182bd", "#08519c"],
123
- 6: ["#eff3ff", "#c6dbef", "#9ecae1", "#6baed6", "#3182bd", "#08519c"],
124
- 7: ["#eff3ff", "#c6dbef", "#9ecae1", "#6baed6", "#4292c6", "#2171b5", "#084594"],
125
- 8: ["#f7fbff", "#deebf7", "#c6dbef", "#9ecae1", "#6baed6", "#4292c6", "#2171b5", "#084594"],
126
- 9: ["#f7fbff", "#deebf7", "#c6dbef", "#9ecae1", "#6baed6", "#4292c6", "#2171b5", "#08519c", "#08306b"],
127
- },
128
- Greens: {
129
- 3: ["#e5f5e0", "#a1d99b", "#31a354"],
130
- 4: ["#edf8e9", "#bae4b3", "#74c476", "#238b45"],
131
- 5: ["#edf8e9", "#bae4b3", "#74c476", "#31a354", "#006d2c"],
132
- 6: ["#edf8e9", "#c7e9c0", "#a1d99b", "#74c476", "#31a354", "#006d2c"],
133
- 7: ["#edf8e9", "#c7e9c0", "#a1d99b", "#74c476", "#41ab5d", "#238b45", "#005a32"],
134
- 8: ["#f7fcf5", "#e5f5e0", "#c7e9c0", "#a1d99b", "#74c476", "#41ab5d", "#238b45", "#005a32"],
135
- 9: ["#f7fcf5", "#e5f5e0", "#c7e9c0", "#a1d99b", "#74c476", "#41ab5d", "#238b45", "#006d2c", "#00441b"],
136
- },
137
- Oranges: {
138
- 3: ["#fee6ce", "#fdae6b", "#e6550d"],
139
- 4: ["#feedde", "#fdbe85", "#fd8d3c", "#d94701"],
140
- 5: ["#feedde", "#fdbe85", "#fd8d3c", "#e6550d", "#a63603"],
141
- 6: ["#feedde", "#fdd0a2", "#fdae6b", "#fd8d3c", "#e6550d", "#a63603"],
142
- 7: ["#feedde", "#fdd0a2", "#fdae6b", "#fd8d3c", "#f16913", "#d94801", "#8c2d04"],
143
- 8: ["#fff5eb", "#fee6ce", "#fdd0a2", "#fdae6b", "#fd8d3c", "#f16913", "#d94801", "#8c2d04"],
144
- 9: ["#fff5eb", "#fee6ce", "#fdd0a2", "#fdae6b", "#fd8d3c", "#f16913", "#d94801", "#a63603", "#7f2704"],
145
- },
146
- Reds: {
147
- 3: ["#fee0d2", "#fc9272", "#de2d26"],
148
- 4: ["#fee5d9", "#fcae91", "#fb6a4a", "#cb181d"],
149
- 5: ["#fee5d9", "#fcae91", "#fb6a4a", "#de2d26", "#a50f15"],
150
- 6: ["#fee5d9", "#fcbba1", "#fc9272", "#fb6a4a", "#de2d26", "#a50f15"],
151
- 7: ["#fee5d9", "#fcbba1", "#fc9272", "#fb6a4a", "#ef3b2c", "#cb181d", "#99000d"],
152
- 8: ["#fff5f0", "#fee0d2", "#fcbba1", "#fc9272", "#fb6a4a", "#ef3b2c", "#cb181d", "#99000d"],
153
- 9: ["#fff5f0", "#fee0d2", "#fcbba1", "#fc9272", "#fb6a4a", "#ef3b2c", "#cb181d", "#a50f15", "#67000d"],
154
- },
155
- Greys: {
156
- 3: ["#f0f0f0", "#bdbdbd", "#636363"],
157
- 4: ["#f7f7f7", "#cccccc", "#969696", "#525252"],
158
- 5: ["#f7f7f7", "#cccccc", "#969696", "#636363", "#252525"],
159
- 6: ["#f7f7f7", "#d9d9d9", "#bdbdbd", "#969696", "#636363", "#252525"],
160
- 7: ["#f7f7f7", "#d9d9d9", "#bdbdbd", "#969696", "#737373", "#525252", "#252525"],
161
- 8: ["#ffffff", "#f0f0f0", "#d9d9d9", "#bdbdbd", "#969696", "#737373", "#525252", "#252525"],
162
- 9: ["#ffffff", "#f0f0f0", "#d9d9d9", "#bdbdbd", "#969696", "#737373", "#525252", "#252525", "#000000"],
163
- },
164
- PuOr: {
165
- 3: ["#f1a340", "#f7f7f7", "#998ec3"],
166
- 4: ["#e66101", "#fdb863", "#b2abd2", "#5e3c99"],
167
- 5: ["#e66101", "#fdb863", "#f7f7f7", "#b2abd2", "#5e3c99"],
168
- 6: ["#b35806", "#f1a340", "#fee0b6", "#d8daeb", "#998ec3", "#542788"],
169
- 7: ["#b35806", "#f1a340", "#fee0b6", "#f7f7f7", "#d8daeb", "#998ec3", "#542788"],
170
- 8: ["#b35806", "#e08214", "#fdb863", "#fee0b6", "#d8daeb", "#b2abd2", "#8073ac", "#542788"],
171
- 9: ["#b35806", "#e08214", "#fdb863", "#fee0b6", "#f7f7f7", "#d8daeb", "#b2abd2", "#8073ac", "#542788"],
172
- 10: ["#7f3b08", "#b35806", "#e08214", "#fdb863", "#fee0b6", "#d8daeb", "#b2abd2", "#8073ac", "#542788", "#2d004b"],
173
- 11: ["#7f3b08", "#b35806", "#e08214", "#fdb863", "#fee0b6", "#f7f7f7", "#d8daeb", "#b2abd2", "#8073ac", "#542788", "#2d004b"],
174
- },
175
- BrBG: {
176
- 3: ["#d8b365", "#f5f5f5", "#5ab4ac"],
177
- 4: ["#a6611a", "#dfc27d", "#80cdc1", "#018571"],
178
- 5: ["#a6611a", "#dfc27d", "#f5f5f5", "#80cdc1", "#018571"],
179
- 6: ["#8c510a", "#d8b365", "#f6e8c3", "#c7eae5", "#5ab4ac", "#01665e"],
180
- 7: ["#8c510a", "#d8b365", "#f6e8c3", "#f5f5f5", "#c7eae5", "#5ab4ac", "#01665e"],
181
- 8: ["#8c510a", "#bf812d", "#dfc27d", "#f6e8c3", "#c7eae5", "#80cdc1", "#35978f", "#01665e"],
182
- 9: ["#8c510a", "#bf812d", "#dfc27d", "#f6e8c3", "#f5f5f5", "#c7eae5", "#80cdc1", "#35978f", "#01665e"],
183
- 10: ["#543005", "#8c510a", "#bf812d", "#dfc27d", "#f6e8c3", "#c7eae5", "#80cdc1", "#35978f", "#01665e", "#003c30"],
184
- 11: ["#543005", "#8c510a", "#bf812d", "#dfc27d", "#f6e8c3", "#f5f5f5", "#c7eae5", "#80cdc1", "#35978f", "#01665e", "#003c30"],
185
- },
186
- PRGn: {
187
- 3: ["#af8dc3", "#f7f7f7", "#7fbf7b"],
188
- 4: ["#7b3294", "#c2a5cf", "#a6dba0", "#008837"],
189
- 5: ["#7b3294", "#c2a5cf", "#f7f7f7", "#a6dba0", "#008837"],
190
- 6: ["#762a83", "#af8dc3", "#e7d4e8", "#d9f0d3", "#7fbf7b", "#1b7837"],
191
- 7: ["#762a83", "#af8dc3", "#e7d4e8", "#f7f7f7", "#d9f0d3", "#7fbf7b", "#1b7837"],
192
- 8: ["#762a83", "#9970ab", "#c2a5cf", "#e7d4e8", "#d9f0d3", "#a6dba0", "#5aae61", "#1b7837"],
193
- 9: ["#762a83", "#9970ab", "#c2a5cf", "#e7d4e8", "#f7f7f7", "#d9f0d3", "#a6dba0", "#5aae61", "#1b7837"],
194
- 10: ["#40004b", "#762a83", "#9970ab", "#c2a5cf", "#e7d4e8", "#d9f0d3", "#a6dba0", "#5aae61", "#1b7837", "#00441b"],
195
- 11: ["#40004b", "#762a83", "#9970ab", "#c2a5cf", "#e7d4e8", "#f7f7f7", "#d9f0d3", "#a6dba0", "#5aae61", "#1b7837", "#00441b"],
196
- },
197
- PiYG: {
198
- 3: ["#e9a3c9", "#f7f7f7", "#a1d76a"],
199
- 4: ["#d01c8b", "#f1b6da", "#b8e186", "#4dac26"],
200
- 5: ["#d01c8b", "#f1b6da", "#f7f7f7", "#b8e186", "#4dac26"],
201
- 6: ["#c51b7d", "#e9a3c9", "#fde0ef", "#e6f5d0", "#a1d76a", "#4d9221"],
202
- 7: ["#c51b7d", "#e9a3c9", "#fde0ef", "#f7f7f7", "#e6f5d0", "#a1d76a", "#4d9221"],
203
- 8: ["#c51b7d", "#de77ae", "#f1b6da", "#fde0ef", "#e6f5d0", "#b8e186", "#7fbc41", "#4d9221"],
204
- 9: ["#c51b7d", "#de77ae", "#f1b6da", "#fde0ef", "#f7f7f7", "#e6f5d0", "#b8e186", "#7fbc41", "#4d9221"],
205
- 10: ["#8e0152", "#c51b7d", "#de77ae", "#f1b6da", "#fde0ef", "#e6f5d0", "#b8e186", "#7fbc41", "#4d9221", "#276419"],
206
- 11: ["#8e0152", "#c51b7d", "#de77ae", "#f1b6da", "#fde0ef", "#f7f7f7", "#e6f5d0", "#b8e186", "#7fbc41", "#4d9221", "#276419"],
207
- },
208
- RdBu: {
209
- 3: ["#ef8a62", "#f7f7f7", "#67a9cf"],
210
- 4: ["#ca0020", "#f4a582", "#92c5de", "#0571b0"],
211
- 5: ["#ca0020", "#f4a582", "#f7f7f7", "#92c5de", "#0571b0"],
212
- 6: ["#b2182b", "#ef8a62", "#fddbc7", "#d1e5f0", "#67a9cf", "#2166ac"],
213
- 7: ["#b2182b", "#ef8a62", "#fddbc7", "#f7f7f7", "#d1e5f0", "#67a9cf", "#2166ac"],
214
- 8: ["#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#d1e5f0", "#92c5de", "#4393c3", "#2166ac"],
215
- 9: ["#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#f7f7f7", "#d1e5f0", "#92c5de", "#4393c3", "#2166ac"],
216
- 10: ["#67001f", "#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#d1e5f0", "#92c5de", "#4393c3", "#2166ac", "#053061"],
217
- 11: ["#67001f", "#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#f7f7f7", "#d1e5f0", "#92c5de", "#4393c3", "#2166ac", "#053061"],
218
- },
219
- RdGy: {
220
- 3: ["#ef8a62", "#ffffff", "#999999"],
221
- 4: ["#ca0020", "#f4a582", "#bababa", "#404040"],
222
- 5: ["#ca0020", "#f4a582", "#ffffff", "#bababa", "#404040"],
223
- 6: ["#b2182b", "#ef8a62", "#fddbc7", "#e0e0e0", "#999999", "#4d4d4d"],
224
- 7: ["#b2182b", "#ef8a62", "#fddbc7", "#ffffff", "#e0e0e0", "#999999", "#4d4d4d"],
225
- 8: ["#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#e0e0e0", "#bababa", "#878787", "#4d4d4d"],
226
- 9: ["#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#ffffff", "#e0e0e0", "#bababa", "#878787", "#4d4d4d"],
227
- 10: ["#67001f", "#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#e0e0e0", "#bababa", "#878787", "#4d4d4d", "#1a1a1a"],
228
- 11: ["#67001f", "#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#ffffff", "#e0e0e0", "#bababa", "#878787", "#4d4d4d", "#1a1a1a"],
229
- },
230
- RdYlBu: {
231
- 3: ["#fc8d59", "#ffffbf", "#91bfdb"],
232
- 4: ["#d7191c", "#fdae61", "#abd9e9", "#2c7bb6"],
233
- 5: ["#d7191c", "#fdae61", "#ffffbf", "#abd9e9", "#2c7bb6"],
234
- 6: ["#d73027", "#fc8d59", "#fee090", "#e0f3f8", "#91bfdb", "#4575b4"],
235
- 7: ["#d73027", "#fc8d59", "#fee090", "#ffffbf", "#e0f3f8", "#91bfdb", "#4575b4"],
236
- 8: ["#d73027", "#f46d43", "#fdae61", "#fee090", "#e0f3f8", "#abd9e9", "#74add1", "#4575b4"],
237
- 9: ["#d73027", "#f46d43", "#fdae61", "#fee090", "#ffffbf", "#e0f3f8", "#abd9e9", "#74add1", "#4575b4"],
238
- 10: ["#a50026", "#d73027", "#f46d43", "#fdae61", "#fee090", "#e0f3f8", "#abd9e9", "#74add1", "#4575b4", "#313695"],
239
- 11: ["#a50026", "#d73027", "#f46d43", "#fdae61", "#fee090", "#ffffbf", "#e0f3f8", "#abd9e9", "#74add1", "#4575b4", "#313695"],
240
- },
241
- Spectral: {
242
- 3: ["#fc8d59", "#ffffbf", "#99d594"],
243
- 4: ["#d7191c", "#fdae61", "#abdda4", "#2b83ba"],
244
- 5: ["#d7191c", "#fdae61", "#ffffbf", "#abdda4", "#2b83ba"],
245
- 6: ["#d53e4f", "#fc8d59", "#fee08b", "#e6f598", "#99d594", "#3288bd"],
246
- 7: ["#d53e4f", "#fc8d59", "#fee08b", "#ffffbf", "#e6f598", "#99d594", "#3288bd"],
247
- 8: ["#d53e4f", "#f46d43", "#fdae61", "#fee08b", "#e6f598", "#abdda4", "#66c2a5", "#3288bd"],
248
- 9: ["#d53e4f", "#f46d43", "#fdae61", "#fee08b", "#ffffbf", "#e6f598", "#abdda4", "#66c2a5", "#3288bd"],
249
- 10: ["#9e0142", "#d53e4f", "#f46d43", "#fdae61", "#fee08b", "#e6f598", "#abdda4", "#66c2a5", "#3288bd", "#5e4fa2"],
250
- 11: ["#9e0142", "#d53e4f", "#f46d43", "#fdae61", "#fee08b", "#ffffbf", "#e6f598", "#abdda4", "#66c2a5", "#3288bd", "#5e4fa2"],
251
- },
252
- RdYlGn: {
253
- 3: ["#fc8d59", "#ffffbf", "#91cf60"],
254
- 4: ["#d7191c", "#fdae61", "#a6d96a", "#1a9641"],
255
- 5: ["#d7191c", "#fdae61", "#ffffbf", "#a6d96a", "#1a9641"],
256
- 6: ["#d73027", "#fc8d59", "#fee08b", "#d9ef8b", "#91cf60", "#1a9850"],
257
- 7: ["#d73027", "#fc8d59", "#fee08b", "#ffffbf", "#d9ef8b", "#91cf60", "#1a9850"],
258
- 8: ["#d73027", "#f46d43", "#fdae61", "#fee08b", "#d9ef8b", "#a6d96a", "#66bd63", "#1a9850"],
259
- 9: ["#d73027", "#f46d43", "#fdae61", "#fee08b", "#ffffbf", "#d9ef8b", "#a6d96a", "#66bd63", "#1a9850"],
260
- 10: ["#a50026", "#d73027", "#f46d43", "#fdae61", "#fee08b", "#d9ef8b", "#a6d96a", "#66bd63", "#1a9850", "#006837"],
261
- 11: ["#a50026", "#d73027", "#f46d43", "#fdae61", "#fee08b", "#ffffbf", "#d9ef8b", "#a6d96a", "#66bd63", "#1a9850", "#006837"],
262
- },
263
- Accent: {
264
- 3: ["#7fc97f", "#beaed4", "#fdc086"],
265
- 4: ["#7fc97f", "#beaed4", "#fdc086", "#ffff99"],
266
- 5: ["#7fc97f", "#beaed4", "#fdc086", "#ffff99", "#386cb0"],
267
- 6: ["#7fc97f", "#beaed4", "#fdc086", "#ffff99", "#386cb0", "#f0027f"],
268
- 7: ["#7fc97f", "#beaed4", "#fdc086", "#ffff99", "#386cb0", "#f0027f", "#bf5b17"],
269
- 8: ["#7fc97f", "#beaed4", "#fdc086", "#ffff99", "#386cb0", "#f0027f", "#bf5b17", "#666666"],
270
- },
271
- Dark2: {
272
- 3: ["#1b9e77", "#d95f02", "#7570b3"],
273
- 4: ["#1b9e77", "#d95f02", "#7570b3", "#e7298a"],
274
- 5: ["#1b9e77", "#d95f02", "#7570b3", "#e7298a", "#66a61e"],
275
- 6: ["#1b9e77", "#d95f02", "#7570b3", "#e7298a", "#66a61e", "#e6ab02"],
276
- 7: ["#1b9e77", "#d95f02", "#7570b3", "#e7298a", "#66a61e", "#e6ab02", "#a6761d"],
277
- 8: ["#1b9e77", "#d95f02", "#7570b3", "#e7298a", "#66a61e", "#e6ab02", "#a6761d", "#666666"],
278
- },
279
- Paired: {
280
- 3: ["#a6cee3", "#1f78b4", "#b2df8a"],
281
- 4: ["#a6cee3", "#1f78b4", "#b2df8a", "#33a02c"],
282
- 5: ["#a6cee3", "#1f78b4", "#b2df8a", "#33a02c", "#fb9a99"],
283
- 6: ["#a6cee3", "#1f78b4", "#b2df8a", "#33a02c", "#fb9a99", "#e31a1c"],
284
- 7: ["#a6cee3", "#1f78b4", "#b2df8a", "#33a02c", "#fb9a99", "#e31a1c", "#fdbf6f"],
285
- 8: ["#a6cee3", "#1f78b4", "#b2df8a", "#33a02c", "#fb9a99", "#e31a1c", "#fdbf6f", "#ff7f00"],
286
- 9: ["#a6cee3", "#1f78b4", "#b2df8a", "#33a02c", "#fb9a99", "#e31a1c", "#fdbf6f", "#ff7f00", "#cab2d6"],
287
- 10: ["#a6cee3", "#1f78b4", "#b2df8a", "#33a02c", "#fb9a99", "#e31a1c", "#fdbf6f", "#ff7f00", "#cab2d6", "#6a3d9a"],
288
- 11: ["#a6cee3", "#1f78b4", "#b2df8a", "#33a02c", "#fb9a99", "#e31a1c", "#fdbf6f", "#ff7f00", "#cab2d6", "#6a3d9a", "#ffff99"],
289
- 12: ["#a6cee3", "#1f78b4", "#b2df8a", "#33a02c", "#fb9a99", "#e31a1c", "#fdbf6f", "#ff7f00", "#cab2d6", "#6a3d9a", "#ffff99", "#b15928"],
290
- },
291
- Pastel1: {
292
- 3: ["#fbb4ae", "#b3cde3", "#ccebc5"],
293
- 4: ["#fbb4ae", "#b3cde3", "#ccebc5", "#decbe4"],
294
- 5: ["#fbb4ae", "#b3cde3", "#ccebc5", "#decbe4", "#fed9a6"],
295
- 6: ["#fbb4ae", "#b3cde3", "#ccebc5", "#decbe4", "#fed9a6", "#ffffcc"],
296
- 7: ["#fbb4ae", "#b3cde3", "#ccebc5", "#decbe4", "#fed9a6", "#ffffcc", "#e5d8bd"],
297
- 8: ["#fbb4ae", "#b3cde3", "#ccebc5", "#decbe4", "#fed9a6", "#ffffcc", "#e5d8bd", "#fddaec"],
298
- 9: ["#fbb4ae", "#b3cde3", "#ccebc5", "#decbe4", "#fed9a6", "#ffffcc", "#e5d8bd", "#fddaec", "#f2f2f2"],
299
- },
300
- Pastel2: {
301
- 3: ["#b3e2cd", "#fdcdac", "#cbd5e8"],
302
- 4: ["#b3e2cd", "#fdcdac", "#cbd5e8", "#f4cae4"],
303
- 5: ["#b3e2cd", "#fdcdac", "#cbd5e8", "#f4cae4", "#e6f5c9"],
304
- 6: ["#b3e2cd", "#fdcdac", "#cbd5e8", "#f4cae4", "#e6f5c9", "#fff2ae"],
305
- 7: ["#b3e2cd", "#fdcdac", "#cbd5e8", "#f4cae4", "#e6f5c9", "#fff2ae", "#f1e2cc"],
306
- 8: ["#b3e2cd", "#fdcdac", "#cbd5e8", "#f4cae4", "#e6f5c9", "#fff2ae", "#f1e2cc", "#cccccc"],
307
- },
308
- Set1: {
309
- 3: ["#e41a1c", "#377eb8", "#4daf4a"],
310
- 4: ["#e41a1c", "#377eb8", "#4daf4a", "#984ea3"],
311
- 5: ["#e41a1c", "#377eb8", "#4daf4a", "#984ea3", "#ff7f00"],
312
- 6: ["#e41a1c", "#377eb8", "#4daf4a", "#984ea3", "#ff7f00", "#ffff33"],
313
- 7: ["#e41a1c", "#377eb8", "#4daf4a", "#984ea3", "#ff7f00", "#ffff33", "#a65628"],
314
- 8: ["#e41a1c", "#377eb8", "#4daf4a", "#984ea3", "#ff7f00", "#ffff33", "#a65628", "#f781bf"],
315
- 9: ["#e41a1c", "#377eb8", "#4daf4a", "#984ea3", "#ff7f00", "#ffff33", "#a65628", "#f781bf", "#999999"],
316
- },
317
- Set2: {
318
- 3: ["#66c2a5", "#fc8d62", "#8da0cb"],
319
- 4: ["#66c2a5", "#fc8d62", "#8da0cb", "#e78ac3"],
320
- 5: ["#66c2a5", "#fc8d62", "#8da0cb", "#e78ac3", "#a6d854"],
321
- 6: ["#66c2a5", "#fc8d62", "#8da0cb", "#e78ac3", "#a6d854", "#ffd92f"],
322
- 7: ["#66c2a5", "#fc8d62", "#8da0cb", "#e78ac3", "#a6d854", "#ffd92f", "#e5c494"],
323
- 8: ["#66c2a5", "#fc8d62", "#8da0cb", "#e78ac3", "#a6d854", "#ffd92f", "#e5c494", "#b3b3b3"],
324
- },
325
- Set3: {
326
- 3: ["#8dd3c7", "#ffffb3", "#bebada"],
327
- 4: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072"],
328
- 5: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3"],
329
- 6: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462"],
330
- 7: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462", "#b3de69"],
331
- 8: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462", "#b3de69", "#fccde5"],
332
- 9: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462", "#b3de69", "#fccde5", "#d9d9d9"],
333
- 10: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462", "#b3de69", "#fccde5", "#d9d9d9", "#bc80bd"],
334
- 11: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462", "#b3de69", "#fccde5", "#d9d9d9", "#bc80bd", "#ccebc5"],
335
- 12: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462", "#b3de69", "#fccde5", "#d9d9d9", "#bc80bd", "#ccebc5", "#ffed6f"],
336
- },
337
- YlOrBr_reverse: {
338
- 3: ["#d95f0e", "#fec44f", "#fff7bc"],
339
- 4: ["#cc4c02", "#fe9929", "#fed98e", "#ffffd4"],
340
- 5: ["#993404", "#d95f0e", "#fe9929", "#fed98e", "#ffffd4"],
341
- 6: ["#993404", "#d95f0e", "#fe9929", "#fec44f", "#fee391", "#ffffd4"],
342
- 7: ["#8c2d04", "#cc4c02", "#ec7014", "#fe9929", "#fec44f", "#fee391", "#ffffd4"],
343
- 8: ["#8c2d04", "#cc4c02", "#ec7014", "#fe9929", "#fec44f", "#fee391", "#fff7bc", "#ffffe5"],
344
- 9: ["#662506", "#993404", "#cc4c02", "#ec7014", "#fe9929", "#fec44f", "#fee391", "#fff7bc", "#ffffe5"],
345
- },
346
- Reds_reverse: {
347
- 3: ["#de2d26", "#fc9272", "#fee0d2"],
348
- 4: ["#cb181d", "#fb6a4a", "#fcae91", "#fee5d9"],
349
- 5: ["#a50f15", "#de2d26", "#fb6a4a", "#fcae91", "#fee5d9"],
350
- 6: ["#a50f15", "#de2d26", "#fb6a4a", "#fc9272", "#fcbba1", "#fee5d9"],
351
- 7: ["#99000d", "#cb181d", "#ef3b2c", "#fb6a4a", "#fc9272", "#fcbba1", "#fee5d9"],
352
- 8: ["#99000d", "#cb181d", "#ef3b2c", "#fb6a4a", "#fc9272", "#fcbba1", "#fee0d2", "#fff5f0"],
353
- 9: ["#67000d", "#a50f15", "#cb181d", "#ef3b2c", "#fb6a4a", "#fc9272", "#fcbba1", "#fee0d2", "#fff5f0"],
354
- },
355
- YlGn_reverse: {
356
- 3: ["#31a354", "#addd8e", "#f7fcb9"],
357
- 4: ["#238443", "#78c679", "#c2e699", "#ffffcc"],
358
- 5: ["#006837", "#31a354", "#78c679", "#c2e699", "#ffffcc"],
359
- 6: ["#006837", "#31a354", "#78c679", "#addd8e", "#d9f0a3", "#ffffcc"],
360
- 7: ["#005a32", "#238443", "#41ab5d", "#78c679", "#addd8e", "#d9f0a3", "#ffffcc"],
361
- 8: ["#005a32", "#238443", "#41ab5d", "#78c679", "#addd8e", "#d9f0a3", "#f7fcb9", "#ffffe5"],
362
- 9: ["#004529", "#006837", "#238443", "#41ab5d", "#78c679", "#addd8e", "#d9f0a3", "#f7fcb9", "#ffffe5"],
363
- },
364
- Greens_reverse: {
365
- 3: ["#31a354", "#a1d99b", "#e5f5e0"],
366
- 4: ["#238b45", "#74c476", "#bae4b3", "#edf8e9"],
367
- 5: ["#006d2c", "#31a354", "#74c476", "#bae4b3", "#edf8e9"],
368
- 6: ["#006d2c", "#31a354", "#74c476", "#a1d99b", "#c7e9c0", "#edf8e9"],
369
- 7: ["#005a32", "#238b45", "#41ab5d", "#74c476", "#a1d99b", "#c7e9c0", "#edf8e9"],
370
- 8: ["#005a32", "#238b45", "#41ab5d", "#74c476", "#a1d99b", "#c7e9c0", "#e5f5e0", "#f7fcf5"],
371
- 9: ["#00441b", "#006d2c", "#238b45", "#41ab5d", "#74c476", "#a1d99b", "#c7e9c0", "#e5f5e0", "#f7fcf5"],
372
- },
373
- Blues_reverse: {
374
- 3: ["#3182bd", "#9ecae1", "#deebf7"],
375
- 4: ["#2171b5", "#6baed6", "#bdd7e7", "#eff3ff"],
376
- 5: ["#08519c", "#3182bd", "#6baed6", "#bdd7e7", "#eff3ff"],
377
- 6: ["#08519c", "#3182bd", "#6baed6", "#9ecae1", "#c6dbef", "#eff3ff"],
378
- 7: ["#084594", "#2171b5", "#4292c6", "#6baed6", "#9ecae1", "#c6dbef", "#eff3ff"],
379
- 8: ["#084594", "#2171b5", "#4292c6", "#6baed6", "#9ecae1", "#c6dbef", "#deebf7", "#f7fbff"],
380
- 9: ["#08306b", "#08519c", "#2171b5", "#4292c6", "#6baed6", "#9ecae1", "#c6dbef", "#deebf7", "#f7fbff"],
381
- },
382
- BuPu_reverse: {
383
- 3: ["#8856a7", "#9ebcda", "#e0ecf4"],
384
- 4: ["#88419d", "#8c96c6", "#b3cde3", "#edf8fb"],
385
- 5: ["#810f7c", "#8856a7", "#8c96c6", "#b3cde3", "#edf8fb"],
386
- 6: ["#810f7c", "#8856a7", "#8c96c6", "#9ebcda", "#bfd3e6", "#edf8fb"],
387
- 7: ["#6e016b", "#88419d", "#8c6bb1", "#8c96c6", "#9ebcda", "#bfd3e6", "#edf8fb"],
388
- 8: ["#6e016b", "#88419d", "#8c6bb1", "#8c96c6", "#9ebcda", "#bfd3e6", "#e0ecf4", "#f7fcfd"],
389
- 9: ["#4d004b", "#810f7c", "#88419d", "#8c6bb1", "#8c96c6", "#9ebcda", "#bfd3e6", "#e0ecf4", "#f7fcfd"],
390
- },
391
- RdPu_reverse: {
392
- 3: ["#c51b8a", "#fa9fb5", "#fde0dd"],
393
- 4: ["#ae017e", "#f768a1", "#fbb4b9", "#feebe2"],
394
- 5: ["#7a0177", "#c51b8a", "#f768a1", "#fbb4b9", "#feebe2"],
395
- 6: ["#7a0177", "#c51b8a", "#f768a1", "#fa9fb5", "#fcc5c0", "#feebe2"],
396
- 7: ["#7a0177", "#ae017e", "#dd3497", "#f768a1", "#fa9fb5", "#fcc5c0", "#feebe2"],
397
- 8: ["#7a0177", "#ae017e", "#dd3497", "#f768a1", "#fa9fb5", "#fcc5c0", "#fde0dd", "#fff7f3"],
398
- 9: ["#49006a", "#7a0177", "#ae017e", "#dd3497", "#f768a1", "#fa9fb5", "#fcc5c0", "#fde0dd", "#fff7f3"],
399
- },
400
- PuRd_reverse: {
401
- 3: ["#dd1c77", "#c994c7", "#e7e1ef"],
402
- 4: ["#ce1256", "#df65b0", "#d7b5d8", "#f1eef6"],
403
- 5: ["#980043", "#dd1c77", "#df65b0", "#d7b5d8", "#f1eef6"],
404
- 6: ["#980043", "#dd1c77", "#df65b0", "#c994c7", "#d4b9da", "#f1eef6"],
405
- 7: ["#91003f", "#ce1256", "#e7298a", "#df65b0", "#c994c7", "#d4b9da", "#f1eef6"],
406
- 8: ["#91003f", "#ce1256", "#e7298a", "#df65b0", "#c994c7", "#d4b9da", "#e7e1ef", "#f7f4f9"],
407
- 9: ["#67001f", "#980043", "#ce1256", "#e7298a", "#df65b0", "#c994c7", "#d4b9da", "#e7e1ef", "#f7f4f9"],
408
- },
409
- Greys_reverse: {
410
- 3: ["#636363", "#bdbdbd", "#f0f0f0"],
411
- 4: ["#525252", "#969696", "#cccccc", "#f7f7f7"],
412
- 5: ["#252525", "#636363", "#969696", "#cccccc", "#f7f7f7"],
413
- 6: ["#252525", "#636363", "#969696", "#bdbdbd", "#d9d9d9", "#f7f7f7"],
414
- 7: ["#252525", "#525252", "#737373", "#969696", "#bdbdbd", "#d9d9d9", "#f7f7f7"],
415
- 8: ["#252525", "#525252", "#737373", "#969696", "#bdbdbd", "#d9d9d9", "#f0f0f0", "#ffffff"],
416
- 9: ["#000000", "#252525", "#525252", "#737373", "#969696", "#bdbdbd", "#d9d9d9", "#f0f0f0", "#ffffff"],
417
- },
418
- };
419
-
420
- // Qualitative colors From ColorBrewer (reordered 12-class)
421
- export const qualitativeColors = [
422
- "#1f78b4",
423
- "#ff7f00",
424
- "#33a02c",
425
- "#a6cee3",
426
- "#b2df8a",
427
- "#fb9a99",
428
- "#fdbf6f",
429
- "#cab2d6",
430
- "#ffff99",
431
- "#b15928",
432
- "#6a3d9a",
433
- "#e31a1c",
434
- ];
@@ -1,19 +0,0 @@
1
- export const defaultLegendSet = {
2
- legends: [
3
- {
4
- startValue: 0,
5
- endValue: 33,
6
- color: "#ff0000",
7
- },
8
- {
9
- startValue: 33,
10
- endValue: 66,
11
- color: "#ffff27",
12
- },
13
- {
14
- startValue: 66,
15
- endValue: 100,
16
- color: "#00ff00",
17
- },
18
- ],
19
- };
@@ -1,47 +0,0 @@
1
- import {geoJSON, LatLngTuple} from "leaflet";
2
- import {useEffect, useMemo} from "react";
3
- import {useMapOrganisationUnit} from "../components/MapProvider/hooks";
4
- import {useElementSize, useMediaQuery} from "usehooks-ts";
5
- import {isEmpty} from "lodash";
6
- import {useMap} from "react-leaflet";
7
-
8
- export function useMapBounds() {
9
- const { orgUnits } = useMapOrganisationUnit();
10
- const geoJSONObject = useMemo(
11
- () =>
12
- geoJSON({
13
- type: "FeatureCollection",
14
- features: orgUnits?.map((orgUnit) => orgUnit.geoJSON),
15
- } as any),
16
- [orgUnits]
17
- );
18
-
19
- const center = useMemo(() => {
20
- return geoJSONObject.getBounds().getCenter();
21
- }, [orgUnits]);
22
- const bounds: any = useMemo(() => {
23
- return geoJSONObject.getBounds();
24
- }, [orgUnits]);
25
-
26
- return {
27
- center,
28
- bounds,
29
- };
30
- }
31
-
32
- export function useCenterMap({ bounds }: { bounds: LatLngTuple[] }) {
33
- const map = useMap();
34
- const [ref, { width, height }] = useElementSize();
35
-
36
- useEffect(() => {
37
- if (!isEmpty(bounds)) {
38
- map.fitBounds(bounds);
39
- }
40
- }, [width, height]);
41
-
42
- return ref;
43
- }
44
-
45
- export function usePrintMedia() {
46
- return useMediaQuery("@media print");
47
- }
@@ -1,65 +0,0 @@
1
- import {Map as LeafletMap} from "leaflet";
2
- import React, {forwardRef} from "react";
3
- import MapArea from "./components/MapArea";
4
- import {CustomBoundaryLayer, CustomPointLayer} from "./components/MapLayer/interfaces";
5
- import {MapProvider} from "./components/MapProvider";
6
- import {MapProps} from "./interfaces";
7
- import "leaflet/dist/leaflet.css";
8
-
9
- const MapComponent = (
10
- {
11
- orgUnitSelection,
12
- pointLayer,
13
- boundaryLayer,
14
- thematicLayers,
15
- earthEngineLayers,
16
- periodSelection,
17
- mapOptions,
18
- key,
19
- controls,
20
- legends
21
- }: MapProps,
22
- ref: React.Ref<LeafletMap> | undefined
23
- ) => {
24
- const sanitizedPointLayers: CustomPointLayer[] = [
25
- {
26
- type: "point",
27
- id: "point",
28
- enabled: pointLayer?.enabled ?? false,
29
- ...pointLayer,
30
- },
31
- ];
32
- const sanitizedBoundaryLayers: CustomBoundaryLayer[] = [
33
- {
34
- type: "overlay",
35
- id: "boundary",
36
- enabled: boundaryLayer?.enabled ?? false,
37
- },
38
- ];
39
-
40
- return (
41
- <>
42
- <MapProvider periodSelection={periodSelection} orgUnitSelection={orgUnitSelection}>
43
- <MapArea
44
- layers={{
45
- thematicLayers,
46
- earthEngineLayers,
47
- boundaryLayers: sanitizedBoundaryLayers,
48
- pointLayers: sanitizedPointLayers,
49
- }}
50
- legends={legends}
51
- controls={controls}
52
- key={key}
53
- ref={ref}
54
- mapOptions={mapOptions}
55
- />
56
- </MapProvider>
57
- </>
58
- );
59
- };
60
- export const Map: React.FC<MapProps> = forwardRef(MapComponent);
61
-
62
- export * from "./components/EarthEngineLayerConfiguration";
63
- export * from "./components/ThematicLayerConfiguration";
64
- export * from "./interfaces";
65
- export * from "./constants/colors";