Skip to content

Commit

Permalink
chore: Remove TreemapChartScope from PesaYetu
Browse files Browse the repository at this point in the history
  • Loading branch information
m453h committed Aug 5, 2024
1 parent 1ffc453 commit cab619e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 246 deletions.
242 changes: 0 additions & 242 deletions apps/pesayetu/src/components/HURUmap/Chart/TreemapChartScope.js

This file was deleted.

6 changes: 3 additions & 3 deletions apps/pesayetu/src/components/HURUmap/Chart/configureScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { Scope } from "@hurumap/core";

import MultiLineChartScope from "./MultiLineChartScope";
import StackedChartScope from "./StackedChartScope";
import TreemapChartScope from "./TreemapChartScope";
import VerticalBarChartScope from "./VerticalBarChartScope";
import VerticalStackedChartScope from "./VerticalStackedChartScope";

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

const { BarChartScope, LineChartScope, DonutChartScope } = Scope;
const { BarChartScope, LineChartScope, DonutChartScope, TreemapChartScope } =
Scope;

export default function configureScope(
indicator,
Expand Down Expand Up @@ -74,7 +74,7 @@ export default function configureScope(
vegaSpec = DonutChartScope(scopeOptions);
break;
case "treemap":
vegaSpec = TreemapChartScope(..._scopeOptions);
vegaSpec = TreemapChartScope(scopeOptions);
break;
case "stacked":
if (isMobile) {
Expand Down
2 changes: 1 addition & 1 deletion packages/hurumap-core/src/Scope/TreemapChartScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function TreemapChartScope({
],
},
];
console.log(theme);

return merge(
Scope({
primaryData,
Expand Down

0 comments on commit cab619e

Please sign in to comment.