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

Order of execution of features. #3

Closed
heavysixer opened this issue Mar 27, 2014 · 1 comment
Closed

Order of execution of features. #3

heavysixer opened this issue Mar 27, 2014 · 1 comment
Assignees
Labels

Comments

@heavysixer
Copy link
Owner

There seems to be a disconnect between when the order of execution of the rendering cycle.

For example consider this example where bars is rendered before the labels:

var total = 0;
chart.using('bars', function(bars){
    bars.x(function(){
        total+=1;
    });
})
.using('labels', function(labels){
    labels.x(function(){
          // => 0 instead of 1;
          console.log(total);
    });
});
@heavysixer heavysixer added the bug label Mar 27, 2014
@heavysixer heavysixer self-assigned this Mar 27, 2014
@heavysixer
Copy link
Owner Author

This is actually not a bug. Features are executed in the order they are mixed into the chart not in the order they are "used".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant