How to use the @elastic/charts.Position.Left 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 / uptime / public / components / functional / charts / snapshot_histogram.tsx View on Github external
id={getAxisId(
              i18n.translate('xpack.uptime.snapshotHistogram.xAxisId', {
                defaultMessage: 'Snapshot X Axis',
              })
            )}
            position={Position.Bottom}
            showOverlappingTicks={false}
            tickFormat={timeFormatter(getChartDateLabel(absoluteStartDate, absoluteEndDate))}
          />
          
           [x, upCount || 0])}
            id={upSpecId}
            name={upMonitorsId}
            stackAccessors={[0]}
            timeZone="local"
            xAccessor={0}
            xScaleType={ScaleType.Time}
github elastic / kibana / x-pack / legacy / plugins / uptime / public / components / functional / charts / checks_chart.tsx View on Github external
Number(d).toFixed(0)}
            title={i18n.translate('xpack.uptime.monitorChart.checksChart.leftAxis.title', {
              defaultMessage: 'Number of checks',
              description: 'The heading of the y-axis of a chart of timeseries data',
            })}
          />
           ({
              x,
              [upString]: up || 0,
            }))}
            id={upSeriesSpecId}
            stackAccessors={['x']}
            timeZone="local"
            xAccessor="x"
github elastic / kibana / x-pack / legacy / plugins / siem / public / components / charts / barchart.tsx View on Github external
data={series.value!}
            stackAccessors={get('configs.series.stackAccessors', chartConfigs)}
            customSeriesColors={getSeriesStyle(barSeriesKey, series.color, seriesType)}
          />
        ) : null;
      })}

      

      
    
  ) : null;
});
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
radius: 0,
                opacity: 0,
              },
              area: { visible: true, opacity: 1 },
            },
          }}
          tooltip={{ headerFormatter }}
        />
         kibanaFieldFormat(d, fieldFormat)}
        />
         d.toFixed(3)}
          hide={true}
        />
         0 ? chartData : [{ x: 0, y: 0 }]}
          curve={CurveType.CURVE_STEP_AFTER}
        />
      
    
  );
github elastic / kibana / x-pack / legacy / plugins / infra / public / pages / metrics / components / chart_section_vis.tsx View on Github external
})}
      />
    );
  }

  return (
    
      <div style="{{">
        
          
          
          {metric &amp;&amp;
            metric.series.map(series =&gt; (
              
            ))}
          </div>
github elastic / kibana / x-pack / legacy / plugins / uptime / public / components / functional / charts / duration_chart.tsx View on Github external
showLegend={true}
            legendPosition={Position.Bottom}
          /&gt;
          
           Number(d).toFixed(0)}
            title={i18n.translate('xpack.uptime.monitorCharts.durationChart.leftAxis.title', {
              defaultMessage: 'Duration ms',
            })}
          /&gt;
          {lineSeries}
        
      
    
  );
};
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
theme={[customTheme(), chartsTheme]}
              xDomain={domain}
              showLegend={!!termField}
              legendPosition={Position.Bottom}
            /&gt;
            
            
            {alertVisualizationDataKeys.map((key: string) =&gt; {
              return (
                
              );
            })}
            {actualThreshold.map((_value: any, i: number) =&gt; {
github elastic / kibana / x-pack / legacy / plugins / siem / public / components / charts / areachart.tsx View on Github external
yAccessors={['y']}
              areaSeriesStyle={getSeriesLineStyle()}
              customSeriesColors={getSeriesStyle(seriesKey, series.color)}
            /&gt;
          ) : null;
        })}

        

        
      
    
  ) : null;
});
github elastic / kibana / x-pack / legacy / plugins / infra / public / components / metrics_explorer / chart.tsx View on Github external
key={id}
                metric={metric}
                id={id}
                series={series}
                stack={chartOptions.stack}
              /&gt;
            ))}
            
            
            
          
        ) : options.metrics.length &gt; 0 ? (
          
        ) : (
          
        )}