Skip to content

Commit

Permalink
fix(website): changes to get deployment to work
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze authored and plouc committed Nov 6, 2020
1 parent 0793553 commit 09f4683
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pie/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ export const defaultProps = {

role: 'img',

pixelRatio: window?.devicePixelRatio ?? 1,
pixelRatio: typeof window !== 'undefined' ? window.devicePixelRatio ?? 1 : 1,
}
2 changes: 2 additions & 0 deletions website/src/pages/bar/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const initialProperties = {
layout: 'horizontal',
reverse: false,

valueScale: { type: 'linear' },

colors: { scheme: 'red_blue' },
colorBy: 'id',
borderWidth: 0,
Expand Down

0 comments on commit 09f4683

Please sign in to comment.