Skip to content

Commit

Permalink
Use warmer colors for bucket's overview chart (#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiskus authored Sep 7, 2021
1 parent bbb37b8 commit 66bc5cc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 14 deletions.
11 changes: 11 additions & 0 deletions catalog/app/components/StackedAreaChart/StackedAreaChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ import * as M from '@material-ui/core'
import * as SVG from 'utils/SVG'
import usePrevious from 'utils/usePrevious'

const useStyles = M.makeStyles({
root: {
opacity: 0.8,
'&:hover': {
opacity: 1,
},
},
})

export default function MultiSparkline({
data, // PT.arrayOf(PT.arrayOf(PT.number)).isRequired,
onCursor,
Expand All @@ -31,6 +40,7 @@ export default function MultiSparkline({
boxProps,
...props
}) {
const classes = useStyles()
const stacked = React.useMemo(
() =>
R.pipe(
Expand Down Expand Up @@ -109,6 +119,7 @@ export default function MultiSparkline({

return (
<M.Box
className={classes.root}
component="svg"
viewBox={`0 0 ${width} ${height}`}
onMouseLeave={handleLeave}
Expand Down
26 changes: 12 additions & 14 deletions catalog/app/containers/Bucket/Overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,18 @@ const RODA_BUCKET = 'quilt-open-data-bucket'
const MAX_EXTS = 7
// must have length >= MAX_EXTS
const COLOR_MAP = [
'#6996ff',
M.colors.blue[300],
M.colors.teal.A200,
M.colors.lightGreen[300],
M.colors.amber[300],
M.colors.deepOrange[300],
M.colors.pink[300],
M.colors.purple[300],
M.colors.indigo[300],
M.colors.cyan[300],
M.colors.green[300],
M.colors.lime[300],
M.colors.yellow[300],
M.colors.brown[300],
'#8ad3cb',
'#d7ce69',
'#bfbadb',
'#f4806c',
'#83b0d1',
'#b2de67',
'#bc81be',
'#f0b5d3',
'#7ba39f',
'#9894ad',
'#be7265',
'#94ad6b',
]

function mkKeyedPool(pool) {
Expand Down

0 comments on commit 66bc5cc

Please sign in to comment.