Skip to content

multiBarHorizontalChart not reading stacked option properly #100

@inolasco

Description

@inolasco

It seems angular-nvd3 is treating the stacked parameter as an object instead of a boolean as it should be. So charts which had stacked: true are not correctly set as stacked.

Removing 'stacked' from :

                            else if ([
                                ....
                                'stack2',
                                'stacked',
                                'multibar',
                                ...
                            ].indexOf(key) >= 0){
                                if (options.chart[key] === undefined || options.chart[key] === null) {
                                    if (scope._config.extended) options.chart[key] = {};
                                }
                                configure(scope.chart[key], options.chart[key], options.chart.type);
                            }

Seems to fix it

This issue may apply to other bar chart variants as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions