Skip to content
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

dc-chart-group needs to use scope.$eval() ? #18

Open
asquithea opened this issue Sep 5, 2014 · 2 comments
Open

dc-chart-group needs to use scope.$eval() ? #18

asquithea opened this issue Sep 5, 2014 · 2 comments

Comments

@asquithea
Copy link

When I set a chart group, collective chart filtering seemed to stop working.
My initial syntax was:

<div dc-chart-group="records" dc-chart="barChart"  ...>

This is used directly in chartFactory(chartElement, chartGroupName) on line 34, but then calls chartGroup(undefined) in getOptionsFromAttrs() on line 83, because "records" is presumably interpreting it as a variable on the scope.

Changing the line 34 call would make the scope.$eval call consistent:

var chart = chartFactory(chartElement, scope.$eval(chartGroupName))

Then the directive needs to be used with the chart name quoted as follows:

<div dc-chart-group="'records'" dc-chart="barChart"  ...>
@TomNeyland
Copy link
Owner

@asquithea Thank you, I'll have a chance to review this next week, feel free to submit a PR.

👍

@TomNeyland TomNeyland assigned TomNeyland and willsoto and unassigned TomNeyland Nov 21, 2014
@zhx828
Copy link

zhx828 commented Jan 19, 2015

Any update on this issue?

@willsoto willsoto removed their assignment Feb 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants