Skip to content

Commit

Permalink
sizerange added
Browse files Browse the repository at this point in the history
  • Loading branch information
anikdhabal committed Aug 28, 2023
1 parent bb8f409 commit b276ae2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import React, { useRef, useState, useLayoutEffect } from 'react';
import moment from 'moment';
import PropTypes from 'prop-types';
import { ScatterChart, XAxis, YAxis, Scatter, Tooltip, ResponsiveContainer, Cell } from 'recharts';
import { ScatterChart, XAxis, YAxis, ZAxis, Scatter, Tooltip, ResponsiveContainer, Cell } from 'recharts';

import { FALLBACK_TRACE_NAME } from '../../../constants';
import { ONE_MILLISECOND, formatDuration } from '../../../utils/date';
Expand Down Expand Up @@ -79,6 +79,7 @@ export default function ScatterPlot(props) {
tickCount={3}
tickFormatter={t => formatDuration(t)}
/>
<ZAxis dataKey="size" type="number" range={[90, 300]} />
<Scatter
data={data}
onClick={onValueClick}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class UnconnectedSearchResults extends React.PureComponent<SearchResultsP
x: t.startTime,
y: t.duration,
traceID: t.traceID,
size: t.spans.length,
size: t.spans.length * 30,
name: t.traceName,
color: t.spans.some(sp => sp.tags.some(isErrorTag)) ? 'red' : '#12939A',
}))}
Expand Down

0 comments on commit b276ae2

Please sign in to comment.