import React from 'react' ; import { AreaSeries , Chart , ScaleType , Settings } from '@elastic/charts' ; import { KIBANA_METRICS } from '@elastic/charts/src/utils/data_samples/test_dataset_kibana' ; import { useBaseTheme } from '../../use_base_theme' ; export const Example = ( ) => { const { data } = KIBANA_METRICS . metrics . kibana_os_load [ 0 ] ; return ( < Chart > < Settings baseTheme = { useBaseTheme ( ) } / > < AreaSeries id = "area" xScaleType = { ScaleType . Time } yScaleType = { ScaleType . Linear } xAccessor = { 0 } yAccessors = { [ 1 ] } data = { data } / > < /Chart>); } ;