Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export function PageViewsChart({ data, loading }: Props) {
labelFormat={(d) => numeral(d).format('0a')}
/>
<BarSeries
timeZone="local"
id={I18LABELS.pageViews}
xScaleType={ScaleType.Time}
yScaleType={ScaleType.Linear}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export function ServiceProfilingTimeline({
{specs.map((spec) => (
<BarSeries
{...spec}
timeZone="local"
key={spec.id}
xScaleType={ScaleType.Time}
yScaleType={ScaleType.Linear}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export function SparkPlot({
xAccessor={'x'}
yAccessors={['y']}
data={series}
timeZone="local"
color={colorValue}
curve={CurveType.CURVE_MONOTONE_X}
/>
Expand All @@ -117,6 +118,7 @@ export function SparkPlot({
xAccessor={'x'}
yAccessors={['y']}
data={comparisonSeries}
timeZone="local"
color={theme.eui.euiColorLightestShade}
curve={CurveType.CURVE_MONOTONE_X}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export const DocumentCountChart: FC<Props> = ({
xAccessor="time"
yAccessors={['value']}
data={adjustedChartPoints}
timeZone="local"
/>
</Chart>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ export const DatafeedChartFlyout: FC<DatafeedChartFlyoutProps> = ({ jobId, end,
yAccessors={[1]}
data={sourceData}
curve={CurveType.LINEAR}
timeZone="local"
/>
<LineSeries
key={'job-results'}
Expand All @@ -455,6 +456,7 @@ export const DatafeedChartFlyout: FC<DatafeedChartFlyoutProps> = ({ jobId, end,
yAccessors={[1]}
data={bucketData}
curve={CurveType.LINEAR}
timeZone="local"
/>
</Chart>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const ModelBounds: FC<Props> = ({ modelData }) => {
curve={CurveType.CURVE_MONOTONE_X}
areaSeriesStyle={areaSeriesStyle}
color={MODEL_COLOR}
timeZone="local"
/>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const EventRateChart: FC<Props> = ({
yAccessors={['value']}
data={eventRateChartData}
color={barColor}
timeZone="local"
/>
</Chart>
</LoadingWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export function APMSection({ bucketSize }: Props) {
xAccessor={'x'}
yAccessors={['y']}
color={transactionsColor}
timeZone="local"
/>
<Axis
id="y-axis"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export function MetricWithSparkline({ id, formatter, value, timeseries, color }:
xAccessor={'timestamp'}
yAccessors={[id]}
color={colors[color] || '#006BB4'}
timeZone="local"
/>
</Chart>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const AlertsHistogram = React.memo<AlertsHistogramProps>(
yAccessors={yAccessors}
splitSeriesAccessors={splitSeriesAccessors}
data={data}
timeZone={'local'}
/>
</Chart>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const DurationLineSeriesList = ({ monitorType, lines }: Props) => (
curve={CurveType.CURVE_MONOTONE_X}
// this id is used for the line chart representing the average duration length
data={line.map(({ x, y }) => [x, y || null])}
timeZone="local"
id={`loc-avg-${name}`}
key={`loc-line-${name}`}
name={name}
Expand All @@ -31,7 +32,6 @@ export const DurationLineSeriesList = ({ monitorType, lines }: Props) => (
yAccessors={[1]}
yScaleType={ScaleType.Linear}
fit={Fit.Linear}
timeZone="local"
tickFormat={(d) =>
monitorType === 'browser'
? `${microToSec(d)} ${SEC_LABEL}`
Expand Down