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

Function.name error in proteus-web #330

Open
gyeongchan-yun opened this issue Oct 31, 2017 · 0 comments
Open

Function.name error in proteus-web #330

gyeongchan-yun opened this issue Oct 31, 2017 · 0 comments
Assignees

Comments

@gyeongchan-yun
Copy link
Collaborator

gyeongchan-yun commented Oct 31, 2017

In proteus-spring-dashboard/src/app/pages/dashboard/proteic/proteic.component.ts,
I noticed this issue that when I'd added 'statistics' method, like below:

this.proteicChart = new Linechart([],this.chart.configuration)
                                   .annotations(annotations)
                                   .statistics(statistics)
                                   .unpivot(unpivot);

In proteic/src/svg/base/SvgStrategy.ts,

    public addComponent(component: Function, config: any) {
        let axes: XYAxes = this.container.getComponent(XYAxes.name) as XYAxes;
        switch (component.name) {
            case Annotations.name:
                this.container.add(new Annotations(axes.x, axes.y, config));
                break;
            case ErrorSet.name:
                this.container.add(new ErrorSet());
                break;
            case Statistics.name:
                this.container.add(new Statistics(axes.x, axes.y));
                break;
        }
    }

switch only enter first case , so annotations component is only called

reference site: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name
'JavaScript compressors and minifiers'

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

2 participants