upsetjs import got from './got' ; import { extractSets , UpSetQueries } from '@upsetjs/model' ; export const elems = got ; export const sets = extractSets ( elems , { order : 'cardinality' } ) ; export const queries = [ { name : 'Q1' , color : 'steelblue' , elems : elems . filter ( ( ) => Math . random ( ) > 0.7 ) } , { name : 'Q2' , color : 'red' , elems : elems . filter ( ( ) => Math . random ( ) > 0.8 ) } , ] ; export const colors = [ '#66c2a5' , '#fc8d62' , '#8da0cb' , '#e78ac3' , '#a6d854' , '#ffd92f' , '#e5c494' ] ;