UNPKG

@opendatasoft/visualizations-react

Version:

Opendatasoft's React wrapper for visualization components.

50 lines (49 loc) 1.48 kB
import { Story, Meta } from '@storybook/react'; import type { ChartOptions, DataFrame } from '@opendatasoft/visualizations'; import type { Props } from 'reactify'; declare enum Locales { English_UnitedStates = "en-US", English_UnitedKingdom = "en-GB", French_France = "fr-FR", French_Switzerland = "fr-CH", Dutch_Neterlands = "nl-NL", Portuguese_Portugal = "pt-PT", Italian_Italy = "it-IT", Italian_Switzerland = "it-CH", Arabic_ArabEmirates = "ar-AE", Arabic_SaudiArabia = "ar-SA", Arabic_Qatar = "ar-QA", German_Germany = "de-DE", German_Switzerland = "de-CH", Spanish_Spain = "es-ES", Catalan_Spain = "ca-ES", Basque = "eu", Swedish_Sweden = "sv-SE" } /** * Number format notations and options * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat */ declare enum NumberFormatNotations { Standard = "standard", CompactShort = "Compact short", CompactLong = "Compact long" } /** * Chart assembly options for line and bar charts */ declare enum Assemblage { Separate = "separate", Stacked = "stacked", Percentage = "percentage" } declare const meta: Meta; export default meta; type TemplateProps = { locale: Locales; notation: NumberFormatNotations; decimals: number; assemblage: Assemblage; chartOptions: Props<DataFrame, ChartOptions>; }; export declare const Default: Story<TemplateProps>;