How to use the @elastic/charts.Position.Bottom function in @elastic/charts

To help you get started, we’ve selected a few @elastic/charts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github elastic / kibana / x-pack / legacy / plugins / siem / public / components / charts / areachart.tsx View on Github external
name={series.key.replace('Histogram', '')}
              data={series.value || undefined}
              xScaleType={getOr(ScaleType.Linear, 'configs.series.xScaleType', chartConfigs)}
              yScaleType={getOr(ScaleType.Linear, 'configs.series.yScaleType', chartConfigs)}
              timeZone={browserTimezone}
              xAccessor="x"
              yAccessors={['y']}
              areaSeriesStyle={getSeriesLineStyle()}
              customSeriesColors={getSeriesStyle(seriesKey, series.color)}
            />
          ) : null;
        })}

        

        
      
    
  ) : null;
});
github elastic / kibana / x-pack / legacy / plugins / uptime / public / components / functional / charts / duration_chart.tsx View on Github external
id="xpack.uptime.monitorCharts.monitorDuration.titleLabel"
            defaultMessage="Monitor duration"
            description="The 'ms' is an abbreviation for milliseconds."
          />
        
      
      
        
          
          
           Number(d).toFixed(0)}
            title={i18n.translate('xpack.uptime.monitorCharts.durationChart.leftAxis.title', {
              defaultMessage: 'Duration ms',
            })}
          />
          {lineSeries}
github elastic / kibana / x-pack / plugins / infra / public / components / metrics_explorer / chart.tsx View on Github external
series={series}
                source={source}
                timeRange={timeRange}
              />
            
          
        )}
        <div width="" style="{{">
          {series.rows.length &gt; 0 ? (
            
              {metrics.map((metric, id) =&gt; (
                
              ))}
              
              
              
            
          ) : options.metrics.length &gt; 0 ? (
            
          ) : (
            
          )}
        </div>
      
    );
  }
);
github elastic / kibana / x-pack / legacy / plugins / ml / public / jobs / new_job / pages / components / charts / common / axes.tsx View on Github external
export const Axes: FC = ({ chartData }) =&gt; {
  const yDomain = chartData !== undefined ? getYRange(chartData) : undefined;

  return (
    
      
      
    
  );
};
github elastic / kibana / x-pack / legacy / plugins / triggers_actions_ui / np_ready / public / application / components / builtin_alert_types / threshold / visualization.tsx View on Github external
const dateFormatter = (d: number) =&gt; {
      return moment(d)
        .tz(timezone)
        .format(getTimeBuckets(alert.params).getScaledDateFormat());
    };
    const aggLabel = aggregationTypes[aggType].text;
    return (
      <div data-test-subj="alertVisualizationChart">
        
        {alertVisualizationDataKeys.length ? (
          
            
            
            
            {alertVisualizationDataKeys.map((key: string) =&gt; {
              return (
                </div>
github elastic / kibana / x-pack / legacy / plugins / ml / public / datavisualizer / index_based / components / field_data_card / metric_distribution_chart / metric_distribution_chart.tsx View on Github external
strokeWidth: 1,
                visible: true,
              },
              point: {
                visible: false,
                radius: 0,
                opacity: 0,
              },
              area: { visible: true, opacity: 1 },
            },
          }}
          tooltip={{ headerFormatter }}
        /&gt;
         kibanaFieldFormat(d, fieldFormat)}
        /&gt;
         d.toFixed(3)}
          hide={true}
        /&gt;
         0 ? chartData : [{ x: 0, y: 0 }]}
github elastic / kibana / x-pack / legacy / plugins / lens / public / xy_visualization_plugin / xy_expression.tsx View on Github external
theme={chartTheme}
        rotation={shouldRotate ? 90 : 0}
      /&gt;

       xAxisFormatter.convert(d)}
      /&gt;

       yAxisFormatter.convert(d)}
      /&gt;

      {layers.map(
        (
          {
            splitAccessor,
            seriesType,
            accessors,
            xAccessor,
            layerId,
            columnToLabel,
            yScaleType,
github elastic / kibana / x-pack / legacy / plugins / infra / public / components / metrics_explorer / chart.tsx View on Github external
<div width="" style="{{">
        {series.rows.length &gt; 0 ? (
          
            {metrics.map((metric, id) =&gt; (
              
            ))}
            
            
            
          
        ) : options.metrics.length &gt; 0 ? (</div>
github elastic / kibana / x-pack / legacy / plugins / watcher / public / sections / watch_edit / components / threshold_watch_edit / watch_visualization.tsx View on Github external
const dateFormatter = (d: number) =&gt; {
      return moment(d)
        .tz(timezone)
        .format(getTimeBuckets(watch).getScaledDateFormat());
    };
    const aggLabel = aggTypes[watch.aggType].text;
    return (
      <div data-test-subj="watchVisualizationChart">
        
        {watchVisualizationDataKeys.length ? (
          
            
            
            
            {watchVisualizationDataKeys.map((key: string) =&gt; {
              return (
                </div>