import * as React from 'react'; import { ComponentPage, ExampleCard, IComponentDemoPageProps, PropertiesTableSet, } from '@fluentui/react-docsite-components'; import { LegendOverflowExample } from './Legends.Overflow.Example'; import { LegendBasicExample } from './Legends.Basic.Example'; import { LegendWrapLinesExample } from './Legends.WrapLines.Example'; const LegendsOverflowExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-charting/Legends/Legends.Overflow.Example.tsx') as string; const LegendsWrapLinesExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-charting/Legends/Legends.WrapLines.Example.tsx') as string; const LegendsBasicExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-charting/Legends/Legends.Basic.Example.tsx') as string; export class LegendsPage extends React.Component { public render(): JSX.Element { return ( } propertiesTables={ ('!raw-loader?esModule=false!@fluentui/react-charting/src/components/Legends/Legends.types.ts'), ]} renderOnly={['ILegendsProps', 'ILegend', 'ILegendsStyles']} /> } overview={

The legends wrap based upon the space available for them. If there is not enough space to show all legends on a single line, the legends fall into an overflow menu. Text appears indicating the number of legends in the overflow menu. The legends are selectable and action to be performed upon clicking a certain legend can be passed.

} /> ); } }