Skip to content

Commit

Permalink
fix(explore) Adding units to charts yaxis based on visualize param. (#…
Browse files Browse the repository at this point in the history
…77014)

<img width="1015" alt="Screenshot 2024-09-05 at 12 55 18 PM"
src="https://github.com/user-attachments/assets/d124ed4c-6c30-4988-8e84-fd3f97de2885">

Co-authored-by: Abdullah Khan <abdullahkhan@PG9Y57YDXQ.local>
  • Loading branch information
Abdkhan14 and Abdullah Khan authored Sep 5, 2024
1 parent 4c161d1 commit a95497e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions static/app/views/explore/charts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {CompactSelect} from 'sentry/components/compactSelect';
import {CHART_PALETTE} from 'sentry/constants/chartPalette';
import {t} from 'sentry/locale';
import {space} from 'sentry/styles/space';
import {tooltipFormatter} from 'sentry/utils/discover/charts';
import {aggregateOutputType} from 'sentry/utils/discover/fields';
import {MutableSearch} from 'sentry/utils/tokenizeSearch';
import usePageFilters from 'sentry/utils/usePageFilters';
import {useChartInterval} from 'sentry/views/explore/hooks/useChartInterval';
Expand Down Expand Up @@ -92,11 +92,8 @@ export function ExploreCharts({query}: ExploreChartsProps) {
loading={series.isPending}
chartColors={CHART_PALETTE[2]}
type={chartType}
aggregateOutputFormat="number"
aggregateOutputFormat={aggregateOutputType(visualize)}
showLegend
tooltipFormatterOptions={{
valueFormatter: value => tooltipFormatter(value),
}}
/>
</ChartPanel>
</ChartContainer>
Expand Down

0 comments on commit a95497e

Please sign in to comment.