Skip to content

Commit

Permalink
Added default-config util
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWilmot committed Sep 24, 2022
1 parent 555a4ce commit 968de10
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions addon/utils/default-config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import * as Vega from 'vega';

export const DEFAULT_CONFIG: Vega.Config = {
background: '#fff',
arc: { fill: '#3e5c69' },
area: { fill: '#3e5c69' },
line: { stroke: '#3e5c69' },
path: { stroke: '#3e5c69' },
rect: { fill: '#3e5c69' },
shape: { stroke: '#3e5c69' },
symbol: { fill: '#3e5c69' },
axis: {
domainWidth: 0.5,
grid: true,
labelPadding: 2,
tickSize: 5,
tickWidth: 0.5,
titleFontWeight: 'normal',
},
axisBand: { grid: false },
axisX: { gridWidth: 0.2 },
axisY: { gridDash: [3], gridWidth: 0.4 },
legend: { labelFontSize: 11, padding: 1, symbolType: 'square' },
range: {
category: [
'#3e5c69',
'#6793a6',
'#182429',
'#0570b0',
'#3690c0',
'#74a9cf',
'#a6bddb',
'#e2ddf2',
],
},
};
1 change: 1 addition & 0 deletions app/utils/default-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { DEFAULT_CONFIG } from '@opendatafit/ember-vega-modifier/utils/default-config';

0 comments on commit 968de10

Please sign in to comment.