|
@@ -4,6 +4,8 @@ import XAxis from 'sentry/components/charts/components/xAxis';
|
|
|
import YAxis from 'sentry/components/charts/components/yAxis';
|
|
|
import {lightTheme as theme} from 'sentry/utils/theme';
|
|
|
|
|
|
+export const DEFAULT_FONT_FAMILY = 'sans-serif';
|
|
|
+
|
|
|
/**
|
|
|
* Size configuration for SLACK_* type charts
|
|
|
*/
|
|
@@ -20,10 +22,26 @@ export const slackGeoChartSize = {
|
|
|
/**
|
|
|
* Default echarts option config for slack charts
|
|
|
*/
|
|
|
+
|
|
|
export const slackChartDefaults = {
|
|
|
grid: Grid({left: 5, right: 5, bottom: 5}),
|
|
|
backgroundColor: theme.background,
|
|
|
- legend: Legend({theme, itemHeight: 6, top: 2, right: 10}),
|
|
|
- yAxis: YAxis({theme, splitNumber: 3, axisLabel: {fontSize: 11}}),
|
|
|
- xAxis: XAxis({theme, nameGap: 5, isGroupedByDate: true, axisLabel: {fontSize: 11}}),
|
|
|
+ legend: Legend({
|
|
|
+ theme,
|
|
|
+ itemHeight: 6,
|
|
|
+ top: 2,
|
|
|
+ right: 10,
|
|
|
+ textStyle: {fontFamily: DEFAULT_FONT_FAMILY},
|
|
|
+ }),
|
|
|
+ yAxis: YAxis({
|
|
|
+ theme,
|
|
|
+ splitNumber: 3,
|
|
|
+ axisLabel: {fontSize: 11, fontFamily: DEFAULT_FONT_FAMILY},
|
|
|
+ }),
|
|
|
+ xAxis: XAxis({
|
|
|
+ theme,
|
|
|
+ nameGap: 5,
|
|
|
+ isGroupedByDate: true,
|
|
|
+ axisLabel: {fontSize: 11, fontFamily: DEFAULT_FONT_FAMILY},
|
|
|
+ }),
|
|
|
};
|