• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

plotly / angular-plotly.js / d00855ca-8a15-4bb2-9d17-bc930bad3909

pending completion
d00855ca-8a15-4bb2-9d17-bc930bad3909

push

circleci

andrefarzat
Ignoring loading themes for now

61 of 72 branches covered (84.72%)

Branch coverage included in aggregate %.

200 of 238 relevant lines covered (84.03%)

15.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

25.0
/projects/plotly/src/lib/plotly.theme-loader.service.ts
1
import { Injectable } from '@angular/core';
2

3
export type PlotlyTheme = 'ggplot2' | 'seaborn' | 'simple_white' | 'plotly' | 'plotly_white' | 'plotly_dark' | 'presentation' | 'xgridoff' | 'ygridoff' | 'gridon' | 'none';
4

5
@Injectable({
6
    providedIn: 'root'
7
})
8
export class PlotlyThemeLoaderService {
1✔
9

10
    public get isLoading() { return this._isLoading; }
×
11
    private _isLoading: boolean = false;
12✔
12

13
    public load(themeName: PlotlyTheme): Promise<any> {
14
        this._isLoading = true;
×
15
        return new Promise(resolve => {
×
16
            import(`./themes/${themeName}.json`).then(data => {
×
17
                resolve(data);
×
18
                this._isLoading = false;
×
19
            });
20
        });
21
    }
22
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc