angular-dc icon indicating copy to clipboard operation
angular-dc copied to clipboard

How to pass optional group 'name' to the chart.

Open sergio91 opened this issue 10 years ago • 3 comments

Hi,

I have a very similar issue as #23. The optional value you can pass to .group([value,[name]]) isn't available via angular as far as I can see. I do not mean legend like in #23 or chart group, but I think he was talking about 'name' and not 'legend'. My problem is how do you pass a group name to the chart via angular? dc-group only accepts one value and not the second optional parameter.

Thanks, Sergio

sergio91 avatar Mar 30 '15 13:03 sergio91

@sergio91 I may need to expand the API to support this, for the time being using the strategy outlined here https://github.com/TomNeyland/angular-dc/issues/15#issuecomment-52341163 (dc-post-setup-chart) might work.

TomNeyland avatar Mar 30 '15 20:03 TomNeyland

@TomNeyland thank you for the quick response. Great stuff you are making here :).

sergio91 avatar Mar 30 '15 21:03 sergio91

This has been fixed in dc.js v2.0.0 beta 10 with https://github.com/dc-js/dc.js/pull/886/. You can now pass an array for the group option.

ruhley avatar Jun 17 '15 01:06 ruhley