-
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
.stack() with .options() #769
Comments
You shouldn't need to, because the individual series are not displayed by separate charts, but by one chart. What are you trying to do? |
I use dc.js in an angular.js application through angular-dc. The problem is that stacking isn't supported by now. |
Okay, thanks. I'm not very familiar with angular-dc. What problem are you running into? Is this something that needs to be supported in the wrapper, or is there a way I can help on the dc.js side? |
At the moment it isn't possible to use the .stack() method without workaorunds with the wrapper. The conceived way of angular-dc is to replace the dc.js method chaining through attributes in angular directives. For example: pieChart
.width(300)
.height(300)
.dimension(stateDimension)
.group(sumGroup); In angular-dc you would set the options in the DOM with a directive. It wants the data in this case as attributes: <div dc-chart="pieChart" dc-width="300" dc-height="300" dc-dimension="stateDimension" dc-group="sumGroup"></div> .stack()'s pendant would be dc-stack. But dc-stack isn't supported by now and would be contravene with the approach to reflect every dc.js method with an attribute. You can see the issue on angular-dc here: TomNeyland/angular-dc#19 |
I see. At a glance, it appears to me that Again, at a glance, never having looked at angular-dc, I wonder if the |
Yep, that's right. Because of that the possibility of passing arrays as parameter is discussed. For me there's nothing for it but to use the workaround. |
It might be a breaking change in some cases, but E.g. To be safe, it would have to be I'd want to make sure first, though. |
Hi,
Is it possible to use .options() with .stack()? Maybe in form of an array?
The text was updated successfully, but these errors were encountered: