/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faDownload } from "@fortawesome/free-solid-svg-icons"; import { useSampleDataset } from "../hooks"; import LineChartWidget from "../components/LineChartWidget"; import TableWidget from "../components/TableWidget"; import ColumnChartWidget from "../components/ColumnChartWidget"; import PartWholeChartWidget from "../components/PartWholeChartWidget"; import Button from "../components/Button"; import { useTranslation } from "react-i18next"; import BarChartWidget from "../components/BarChartWidget"; import PieChartWidget from "../components/PieChartWidget"; import DonutChartWidget from "../components/DonutChartWidget"; import AlertContainer from "./AlertContainer"; const LINE_CHART_CSV = "Example-CSV-Line.csv"; const BAR_CHART_CSV = "Example-CSV-Bar.csv"; const COLUMN_CHART_CSV = "Example-CSV-Column.csv"; const PART_TO_WHOLE_CSV = "Example-CSV-Part-to-whole.csv"; const PIE_CHART_CSV = "Example-CSV-Pie.csv"; const DONUT_CHART_CSV = "Example-CSV-Donut.csv"; const TABLE_CSV = "Example-CSV-Table.csv"; function FormattingCSV() { const lineChart = useSampleDataset(LINE_CHART_CSV); const table = useSampleDataset(TABLE_CSV); const column = useSampleDataset(COLUMN_CHART_CSV); const bar = useSampleDataset(BAR_CHART_CSV); const partToWhole = useSampleDataset(PART_TO_WHOLE_CSV); const pie = useSampleDataset(PIE_CHART_CSV); const donut = useSampleDataset(DONUT_CHART_CSV); const { t } = useTranslation(); const onDownload = (sampleCsv: string) => { window.open(`${process.env.PUBLIC_URL}/samplecsv/${sampleCsv}`); }; return ( <>

{t("FormatCSVScreen.FormattingCSVFiles")}

{t("FormatCSVScreen.FormattingCSVDescription")}

{t("FormatCSVScreen.MacOS")}

{t("FormatCSVScreen.MacOSDescription")}

{t("FormatCSVScreen.LineChart")}

{t("FormatCSVScreen.LineChartDescription")}

{t("FormatCSVScreen.LineChartExample")}

{t("FormatCSVScreen.BarChart")}

{t("FormatCSVScreen.BarChartDescription")}

{t("FormatCSVScreen.BarChartExample")}

{t("FormatCSVScreen.ColumnChart")}

{t("FormatCSVScreen.ColumnChartDescription")}

{t("FormatCSVScreen.ColumnChartExample")}

{t("FormatCSVScreen.PartToWholeChart")}

{t("FormatCSVScreen.PartToWholeChartDescription")}

{t("FormatCSVScreen.PartToWholeChartExample")}

{t("FormatCSVScreen.PieChart")}

{t("FormatCSVScreen.PieChartDescription")}

{t("FormatCSVScreen.PieChartExample")}

{t("FormatCSVScreen.DonutChart")}

{t("FormatCSVScreen.DonutChartDescription")}

{t("FormatCSVScreen.DonutChartExample")}

{t("Table")}

{t("FormatCSVScreen.TableDescription")}

{t("FormatCSVScreen.TableExample")}

); } export default FormattingCSV;