Skip to content

Commit

Permalink
Merge pull request #824 from CodeForAfrica/feat/stacked_chart_hurumap…
Browse files Browse the repository at this point in the history
…_package

@HURUmap/StackedChart
  • Loading branch information
m453h committed Aug 6, 2024
2 parents fc4fc61 + 31060ec commit dd5c3d9
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 449 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Scope } from "@hurumap/core";

import StackedChartScope from "./StackedChartScope";

import { hurumapArgs } from "@/climatemappedafrica/config";
import theme from "@/climatemappedafrica/theme";

Expand All @@ -13,6 +11,7 @@ const {
TreemapChartScope,
VerticalBarChartScope,
VerticalStackedChartScope,
StackedChartScope,
} = Scope;

export default function configureScope(
Expand Down Expand Up @@ -66,16 +65,7 @@ export default function configureScope(
if (isMobile) {
vegaSpec = VerticalStackedChartScope(scopeOptions);
} else {
vegaSpec = StackedChartScope(
indicator?.data,
indicator?.metadata,
configuration,
secondaryIndicator?.data ?? null,
showParent ? indicator?.parentData : [{}],
showParent ? secondaryIndicator?.parentData : [{}],
profileNames,
isCompare,
);
vegaSpec = StackedChartScope(scopeOptions);
}
break;
default:
Expand Down
Loading

0 comments on commit dd5c3d9

Please sign in to comment.