import { StreamOrdinalFrame } from "semiotic" const frameProps = { /* --- Data --- */ data: [{ date: "2016-1", total: 288653430 }, { date: "2016-2", total: 213602441 }, ... ], chartType: "swarm", /* --- Size --- */ size: [700,450], margin: { left: 20, top: 50, bottom: 75, right: 20 }, /* --- Layout --- */ projection: "horizontal", /* --- Process --- */ oAccessor: "none", rAccessor: "total", rExtent: [0,], /* --- Customize --- */ title: "Weekly(1-52) Box Office Totals from 2016 - mid 2017", showAxes: true, /* --- Interact --- */ enableHover: true, /* --- Annotate --- */ tooltipContent: d => ( <div className="tooltip-content"> {d.date} - {Math.round(d.total / 1000000)}m </div> ) } export default () => { return <StreamOrdinalFrame {...frameProps} /> }