import { __extends } from "tslib";
import * as React from 'react';
import { ComponentPage, ExampleCard, PropertiesTableSet, } from '@fluentui/react-docsite-components';
import { StackedBarChartBasicExample } from './StackedBarChart.Basic.Example';
import { StackedBarChartBenchmarkExample } from './StackedBarChart.Benchmark.Example';
import { StackedBarChartMultipleExample } from './StackedBarChart.Multiple.Example';
import { StackedBarChartDynamicExample } from './StackedBarChart.Dynamic.Example';
import { MultiStackedBarChartExample } from './MultiStackedBarChart.Example';
import { StackedBarChartBaseBarExample } from './StackedBarChart.BaseBar.Example';
import { MultiStackedBarChartWithPlaceholderExample } from './MultiStackedBarChartWithPlaceHolder.Example';
var StackedBarChartBasicExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-charting/StackedBarChart/StackedBarChart.Basic.Example.tsx');
var StackedBarChartBenchmarkExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-charting/StackedBarChart/StackedBarChart.Benchmark.Example.tsx');
var StackedBarChartMultipleExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-charting/StackedBarChart/StackedBarChart.Multiple.Example.tsx');
var StackedBarChartDynamicExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-charting/StackedBarChart/StackedBarChart.Dynamic.Example.tsx');
var MultiStackedBarChartExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-charting/StackedBarChart/MultiStackedBarChart.Example.tsx');
var StackedBarChartBaseBarExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-charting/StackedBarChart/StackedBarChart.BaseBar.Example.tsx');
var MultiStackedBarChartWithPlaceholderExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-charting/StackedBarChart/MultiStackedBarChartWithPlaceHolder.Example.tsx');
var StackedBarChartPage = /** @class */ (function (_super) {
    __extends(StackedBarChartPage, _super);
    function StackedBarChartPage() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    StackedBarChartPage.prototype.render = function () {
        return (React.createElement(ComponentPage, { title: "StackedBarChart", componentName: "StackedBarChartExample", exampleCards: React.createElement("div", null,
                React.createElement(ExampleCard, { title: "StackedBarChart basic", code: StackedBarChartBasicExampleCode },
                    React.createElement(StackedBarChartBasicExample, null)),
                React.createElement(ExampleCard, { title: "StackedBarChart benchmark", code: StackedBarChartBenchmarkExampleCode },
                    React.createElement(StackedBarChartBenchmarkExample, null)),
                React.createElement(ExampleCard, { title: "StackBarChart Empty", code: StackedBarChartBaseBarExampleCode },
                    React.createElement(StackedBarChartBaseBarExample, null)),
                React.createElement(ExampleCard, { title: "StackedBarChart with multiple data points", code: StackedBarChartMultipleExampleCode },
                    React.createElement(StackedBarChartMultipleExample, null)),
                React.createElement(ExampleCard, { title: "StackedBarChart dynamic", code: StackedBarChartDynamicExampleCode },
                    React.createElement(StackedBarChartDynamicExample, null)),
                React.createElement(ExampleCard, { title: "Multiple StackedBarCharts", code: MultiStackedBarChartExampleCode },
                    React.createElement(MultiStackedBarChartExample, null)),
                React.createElement(ExampleCard, { title: "Multiple StackedBarCharts with placeholder", code: MultiStackedBarChartWithPlaceholderExampleCode },
                    React.createElement(MultiStackedBarChartWithPlaceholderExample, null))), propertiesTables: React.createElement(PropertiesTableSet, { sources: [
                    require('!raw-loader?esModule=false!@fluentui/react-charting/src/components/StackedBarChart/StackedBarChart.types.ts'),
                ] }), overview: React.createElement("div", null,
                React.createElement("p", null, "StackedBarChart shows the data in a bar format. It has two variations: single stacked and multi-stacked. Below are a few points that will help you understand the stacked bar chart better:"),
                React.createElement("ul", null,
                    React.createElement("li", null, "The stacked bar chart comes with a legends component built in."),
                    React.createElement("li", null, "Single stacked bar chart takes 'data' attribute which is of type IChartDataPoint[]"),
                    React.createElement("li", null, "Multi-stacked bar chart takes 'data' attribute which is of type IChartDataPoint[][]. It will render the chart based upon the values given to this attribute."),
                    React.createElement("li", null, "Ratio on top of the chart is shown if it has only two data points. For the rest of cases the ratio is not shown"),
                    React.createElement("li", null, "A number is displayed on the top of stacked bar chart if it has only one data point. This number shown is the data you pass"),
                    React.createElement("li", null, "MultiStackedBarChart has a option 'showRatio' this will help you hide the ratio for the chart. It is a boolean[], you can use the values to control displaying ratio for each chart in MultiStackedBarChart."),
                    React.createElement("li", null, "If a chart in MultiStackedBarChart shows ratio, legends are not displayed for that chart and vice-versa."))), isHeaderVisible: this.props.isHeaderVisible }));
    };
    return StackedBarChartPage;
}(React.Component));
export { StackedBarChartPage };
//# sourceMappingURL=StackedBarChartPage.js.map