diff --git a/src/app/modules/chart-module/routes/mapping/error.tsx b/src/app/modules/chart-module/routes/mapping/error.tsx new file mode 100644 index 000000000..5733af70f --- /dev/null +++ b/src/app/modules/chart-module/routes/mapping/error.tsx @@ -0,0 +1,418 @@ +import React from "react"; +import { styles as commonStyles } from "app/modules/chart-module/routes/common/styles"; + +import GeomapPlaceholder from "app/modules/chart-module/components/placeholder/geomapPlaceholder"; +import { ReactComponent as LinechartPlaceholderImage } from "app/modules/chart-module/assets/lineChartPlaceholder.svg"; +import { ReactComponent as BigNumberPlaceholderImage } from "app/modules/chart-module/assets/bigNumberPlaceholder.svg"; +import { ReactComponent as BarChartPlaceholderImage } from "app/modules/chart-module/assets/barChartPlaceholder.svg"; +import { ReactComponent as SankeyPlaceholderImage } from "app/modules/chart-module/assets/sankeyPlaceholder.svg"; +import { ReactComponent as TreemapPlaceholderImage } from "app/modules/chart-module/assets/treemapPlaceholder.svg"; + +import { ReactComponent as SunburstPlaceholderImage } from "app/modules/chart-module/assets/sunburstPlaceholder.svg"; +import { ReactComponent as PieChartPlaceholderImage } from "app/modules/chart-module/assets/pieChartPlaceholder.svg"; +import { ReactComponent as CirclepackingPlaceholderImage } from "app/modules/chart-module/assets/circlepackingPlaceholder.svg"; +import { ReactComponent as ForcegraphPlaceholderImage } from "app/modules/chart-module/assets/forcegraphPlaceholder.svg"; +import { ReactComponent as CirculargraphPlaceholderImage } from "app/modules/chart-module/assets/circulargraphPlaceholder.svg"; +import { ReactComponent as RadarChartPlaceholderImage } from "app/modules/chart-module/assets/radarChartPlaceholder.svg"; +import { ReactComponent as ScatterChartPlaceholderImage } from "app/modules/chart-module/assets/scatterChartPlaceholder.svg"; +import { ReactComponent as GraphglPlaceholderImage } from "app/modules/chart-module/assets/graphglPlaceholder.svg"; +import { ReactComponent as HeatmapPlaceholderImage } from "app/modules/chart-module/assets/heatmapPlaceholder.svg"; +import { ReactComponent as AreatimeaxisPlaceholderImage } from "app/modules/chart-module/assets/areatimeaxisPlaceholder.svg"; +import ErrorOutlineIcon from "@material-ui/icons/ErrorOutline"; + +import { useStoreState } from "app/state/store/hooks"; +import { CHART_DEFAULT_HEIGHT } from "../../data"; +export default function MappingErrorComponent(props: { + page: string; + chartError: boolean; + dataError: boolean; + chartErrorMessage: string; +}) { + const chartType = useStoreState((state) => state.charts.chartType.value); + + const chartPlaceholders = [ + { + id: "echartsBarchart", + placeholder: ( +
+ Something went wrong rendering your chart!
Check your
+ mapping or pick different dimensions.
+
"Error rendering dimensions"
+ > + {/* {(props.chartError || props.dataError) && ( + )} */} +