We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
loadData
if (window.resCache){ fmtData() init() } else{ d3.loadData('round-1.csv', 'round-2.csv', (err, res) => { window.resCache = res fmtData() init() }) }
.key
nestBy
sortBy
var stateData = d3.nestBy(may11, d => d.prediction_date + d.target_date + d.state) stateData.forEach(d => { var f = d[0] d.prediction_date = d[0].prediction_date d.target_date = d[0].target_date d.state = d[0].state
d
.at({d: d => ['M', c.x(d.i), , 'H 0'].join(' ')})
.at({d: d => ['M', c.x(d.i), , 'H 0']})
Maybe incorporate into drawAxis
drawAxis
function addAxisLabel(c, xText, yText){ c.svg.select('.x').append('g') .translate([c.width/2, 35]) .append('text') .text(xText) .at({textAnchor: 'middle'}) .st({fill: '#000', fontWeight: 600}) c.svg.select('.y') .append('g') .translate([-50, c.height/2]) .append('text') .text(yText) .at({textAnchor: 'middle', transform: 'rotate(-90)'}) .st({fill: '#000', fontWeight: 600}) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
loadData
cache files; useful for hot reloading big things.key
,nestBy
should havesortBy
on array elements. The top level array should expose the map used to construct it.d
attribute is an array, join it with a space.at({d: d => ['M', c.x(d.i), , 'H 0'].join(' ')})
.at({d: d => ['M', c.x(d.i), , 'H 0']})
Maybe incorporate into
drawAxis
The text was updated successfully, but these errors were encountered: