-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
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
draw line chart path in the order determined by ordering #598
Comments
Gordon, I made an example Plunk showing how I implemented a workaround. And I posted it on the StackOverflow entry. |
Notes on the ordinal case:
Two methods for getting the ordinal domain right:
Seems pretty clear that we must adapt the stack mixin to use |
Another example: lineChart_addChurn
.width(300)
.height(200)
.x(d3.scale.ordinal().domain(data.map(function (d) {return d.Month;})))
.xUnits(dc.units.ordinal)
.clipPadding(10)
.compose([
dc.lineChart(lineChart_addChurn)
.dimension(dim_line_month)
.colors('red')
.interpolate('step-after')
.renderArea(false)
.renderDataPoints(true)
.group(group_line_adds, "Top Line"),
dc.lineChart(lineChart_addChurn)
.dimension(dim_line_month)
.colors('blue')
.interpolate('step-after')
.renderArea(false)
.renderDataPoints(true)
.group(group_line_churn, "Bottom Line")
])
.brushOn(false)
.render(); http://stackoverflow.com/questions/37055306/dc-js-composite-line-chart-unexpected-behaviour |
reverse, backward now available for ordinal line transition test reverse works okay but backward exhibits #598
See this SO question:
http://stackoverflow.com/questions/23774871/dc-js-sort-ordinal-chart-by-y-axis-value
The text was updated successfully, but these errors were encountered: