@elastic/charts
Version:
Elastic-Charts data visualization library
493 lines • 14.1 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AMSTERDAM_LIGHT_THEME = void 0;
const legacy_colors_1 = require("./legacy_colors");
const theme_common_1 = require("./theme_common");
const colors_1 = require("../../common/colors");
const constants_1 = require("../../common/constants");
const default_theme_attributes_1 = require("../../common/default_theme_attributes");
const common_1 = require("../common");
exports.AMSTERDAM_LIGHT_THEME = {
chartPaddings: theme_common_1.DEFAULT_CHART_PADDING,
chartMargins: theme_common_1.DEFAULT_CHART_MARGINS,
lineSeriesStyle: {
line: {
visible: true,
strokeWidth: 2,
opacity: 1,
dimmed: { opacity: 0.25 },
focused: { strokeWidth: 1 },
},
point: {
visible: 'auto',
strokeWidth: 0,
stroke: common_1.ColorVariant.Series,
fill: common_1.ColorVariant.Series,
radius: 3,
opacity: 1,
dimmed: { opacity: 0.25 },
},
isolatedPoint: {
enabled: true,
visible: 'auto',
stroke: common_1.ColorVariant.Series,
strokeWidth: 1,
fill: common_1.ColorVariant.Series,
opacity: 1,
},
fit: {
line: {
opacity: 1,
visible: true,
dash: [5, 5],
stroke: common_1.ColorVariant.Series,
},
},
pointVisibilityMinDistance: 40,
},
bubbleSeriesStyle: {
point: {
visible: 'always',
strokeWidth: 0,
fill: common_1.ColorVariant.Series,
radius: 2,
opacity: 1,
dimmed: { opacity: 0.25 },
},
},
areaSeriesStyle: {
area: {
visible: true,
opacity: 0.3,
dimmed: { opacity: 0.25 },
},
line: {
visible: true,
strokeWidth: 2,
opacity: 1,
dimmed: { opacity: 0.25 },
focused: { strokeWidth: 1 },
},
point: {
visible: 'never',
strokeWidth: 0,
stroke: common_1.ColorVariant.Series,
fill: common_1.ColorVariant.Series,
radius: 3,
opacity: 1,
dimmed: { opacity: 0.25 },
},
isolatedPoint: {
enabled: true,
visible: 'auto',
stroke: common_1.ColorVariant.Series,
strokeWidth: 0,
fill: common_1.ColorVariant.Series,
opacity: 1,
},
fit: {
line: {
visible: true,
dash: [5, 5],
stroke: common_1.ColorVariant.Series,
opacity: 1,
},
area: {
visible: true,
opacity: 0.15,
fill: common_1.ColorVariant.Series,
},
},
pointVisibilityMinDistance: 20,
},
barSeriesStyle: {
rect: {
opacity: 1,
dimmed: { opacity: 0.25 },
},
rectBorder: {
visible: false,
strokeWidth: 1,
},
displayValue: {
fontSize: 10,
fontStyle: 'normal',
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
alignment: { horizontal: 'center', vertical: 'middle' },
padding: 0,
fill: { textBorder: 0 },
offsetX: 0,
offsetY: 0,
},
},
arcSeriesStyle: {
arc: {
visible: true,
stroke: colors_1.Colors.Black.keyword,
strokeWidth: 1,
opacity: 1,
},
},
sharedStyle: theme_common_1.DEFAULT_GEOMETRY_STYLES,
scales: {
barsPadding: 0.25,
histogramPadding: 0.05,
},
axes: {
axisTitle: {
visible: true,
fontSize: 12,
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
padding: {
inner: 10,
outer: 0,
},
fill: '#343741',
},
axisPanelTitle: {
visible: true,
fontSize: 10,
fontFamily: 'sans-serif',
padding: {
inner: 8,
outer: 0,
},
fill: '#333',
},
axisLine: {
visible: true,
stroke: '#eaedf3',
strokeWidth: 1,
},
tickLabel: {
visible: true,
fontSize: 10,
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
fontStyle: 'normal',
fill: '#646a77',
padding: { outer: 8, inner: 10 },
rotation: 0,
offset: {
x: 0,
y: 0,
reference: 'local',
},
alignment: {
vertical: 'near',
horizontal: 'near',
},
},
tickLine: {
visible: false,
stroke: '#eaedf3',
strokeWidth: 1,
size: 10,
padding: 10,
},
gridLine: {
horizontal: {
visible: true,
stroke: '#E9EDF3',
strokeWidth: 1,
opacity: 1,
dash: [0, 0],
},
vertical: {
visible: true,
stroke: '#E9EDF3',
strokeWidth: 1,
opacity: 1,
dash: [0, 0],
},
},
},
colors: {
vizColors: legacy_colors_1.palettes.echPaletteColorBlind.colors,
defaultVizColor: '#6092C0',
},
legend: {
verticalWidth: 200,
horizontalHeight: 64,
spacingBuffer: 10,
margin: 0,
labelOptions: {
maxLines: 1,
widthLimit: 250,
},
},
crosshair: {
band: {
visible: true,
fill: '#F1F4FA',
},
line: {
visible: true,
stroke: '#69707D',
strokeWidth: 1,
dash: [4, 4],
},
crossLine: {
visible: true,
stroke: '#69707D',
strokeWidth: 1,
dash: [4, 4],
},
},
background: {
color: '#FFF',
fallbackColor: '#FFF',
},
goal: {
minFontSize: 8,
maxFontSize: 64,
maxCircularSize: 360,
maxBulletSize: 500,
barThicknessMinSizeRatio: 1 / 10,
baselineArcThickness: 32,
baselineBarThickness: 32,
marginRatio: 0.05,
maxTickFontSize: 24,
maxLabelFontSize: 32,
maxCentralFontSize: 38,
arcBoxSamplePitch: (5 / 360) * constants_1.TAU,
capturePad: 16,
tickLabel: {
fontStyle: 'normal',
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
fill: '#646a77',
},
majorLabel: {
fontStyle: 'normal',
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
fill: '#343741',
},
minorLabel: {
fontStyle: 'normal',
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
fill: '#646a77',
},
majorCenterLabel: {
fontStyle: 'normal',
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
fill: '#343741',
},
minorCenterLabel: {
fontStyle: 'normal',
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
fill: '#646a77',
},
targetLine: {
stroke: '#343741',
},
tickLine: {
stroke: '#98A2B3',
},
progressLine: {
stroke: '#343741',
},
},
partition: {
outerSizeRatio: 1,
emptySizeRatio: 0,
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
minFontSize: 8,
maxFontSize: 16,
idealFontSizeJump: 1.05,
maximizeFontSize: false,
circlePadding: 4,
radialPadding: constants_1.TAU / 360,
horizontalTextAngleThreshold: constants_1.TAU / 12,
horizontalTextEnforcer: 1,
fillLabel: {
textColor: common_1.ColorVariant.Adaptive,
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
fontStyle: 'normal',
fontVariant: 'normal',
fontWeight: 400,
valueFont: {
fontWeight: 700,
fontStyle: 'normal',
fontVariant: 'normal',
},
padding: 2,
clipText: false,
},
linkLabel: {
maximumSection: 10,
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
fontSize: 11,
fontStyle: 'normal',
fontVariant: 'normal',
fontWeight: 400,
gap: 10,
spacing: 2,
horizontalStemLength: 10,
radiusPadding: 10,
lineWidth: 1,
maxCount: 5,
maxTextLength: 100,
textColor: '#343741',
minimumStemLength: 0,
stemAngle: constants_1.TAU / 8,
padding: 0,
valueFont: {
fontWeight: 400,
fontStyle: 'normal',
fontVariant: 'normal',
},
},
sectorLineWidth: 1.5,
sectorLineStroke: '#FFF',
dimmed: { opacity: 0.25 },
},
heatmap: {
brushArea: {
visible: true,
stroke: '#69707D',
strokeWidth: 2,
},
brushMask: {
visible: true,
fill: '#73737380',
},
brushTool: {
visible: false,
fill: 'gray',
},
xAxisLabel: {
visible: true,
fontSize: 12,
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
fontStyle: 'normal',
textColor: 'black',
fontVariant: 'normal',
fontWeight: 'normal',
padding: { top: 5, bottom: 5, left: 5, right: 5 },
rotation: 0,
},
yAxisLabel: {
visible: true,
width: 'auto',
fontSize: 12,
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
fontStyle: 'normal',
textColor: 'black',
fontVariant: 'normal',
fontWeight: 'normal',
padding: { top: 5, bottom: 5, left: 5, right: 5 },
},
grid: {
stroke: {
width: 1,
color: 'gray',
},
},
cell: {
maxWidth: 'fill',
maxHeight: 'fill',
align: 'center',
label: {
visible: true,
maxWidth: 'fill',
minFontSize: 8,
maxFontSize: 12,
fontFamily: 'Sans-Serif',
fontStyle: 'normal',
textColor: colors_1.Colors.Black.keyword,
fontVariant: 'normal',
fontWeight: 'normal',
useGlobalMinFontSize: true,
},
border: {
strokeWidth: 0,
stroke: 'gray',
},
},
},
metric: {
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
textLightColor: '#E0E5EE',
textDarkColor: '#343741',
textSubtitleLightColor: '#E0E5EE',
textSubtitleDarkColor: '#343741',
textExtraLightColor: '#E0E5EE',
textExtraDarkColor: '#343741',
valueFontSize: 'default',
minValueFontSize: 12,
titlesTextAlign: 'left',
extraTextAlign: 'right',
valueTextAlign: 'right',
valuePosition: 'bottom',
iconAlign: 'right',
border: '#EDF0F5',
barBackground: '#EDF0F5',
emptyBackground: colors_1.Colors.Transparent.keyword,
nonFiniteText: 'N/A',
minHeight: 64,
titleWeight: 500,
},
bulletGraph: {
fontFamily: default_theme_attributes_1.DEFAULT_FONT_FAMILY,
textColor: '#343741',
border: '#EDF0F5',
barBackground: '#343741',
colorBands: ['#AA87D1', '#D9C6EF'],
nonFiniteText: 'N/A',
minHeight: 64,
angularTickLabelPadding: 10,
fallbackBandColor: '#98A2B3',
},
tooltip: {
maxWidth: 500,
maxTableHeight: 120,
defaultDotColor: colors_1.Colors.Black.keyword,
},
flamegraph: {
navigation: {
textColor: '#343741',
buttonTextColor: '#0061A6',
buttonDisabledTextColor: '#A2ABBA',
buttonBackgroundColor: '#CCE4F5',
buttonDisabledBackgroundColor: '#D3DAE626',
},
scrollbarThumb: '#343741',
scrollbarTrack: '#D3DAE6',
minimapFocusBorder: 'magenta',
},
highlighter: {
point: {
opacity: 1,
fill: common_1.ColorVariant.Series,
stroke: common_1.ColorVariant.Series,
strokeWidth: 0,
radius: 3,
onHover: {
opacity: 0.5,
fill: common_1.ColorVariant.Series,
stroke: common_1.ColorVariant.None,
strokeWidth: 0,
radius: 5,
},
},
},
lineAnnotation: {
line: {
stroke: '#69707D',
strokeWidth: 1,
opacity: 1,
},
},
rectAnnotation: {
strokeWidth: 0,
opacity: 0.25,
fill: '#69707D',
stroke: '#69707D',
},
brush: {
fill: colors_1.Colors.Gray.keyword,
opacity: 0.6,
stroke: colors_1.Colors.Transparent.keyword,
strokeWidth: 0,
},
};
//# sourceMappingURL=amsterdam_light_theme.js.map