@pioneer-code/pioneer-charts 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -50
- package/esm2022/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.builder.mjs +272 -0
- package/esm2022/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.component.mjs +47 -0
- package/esm2022/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.model.mjs +2 -0
- package/esm2022/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.module.mjs +20 -0
- package/esm2022/lib/bar-chart/bar-horizontal-chart/public_api.mjs +5 -0
- package/esm2022/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.builder.mjs +284 -0
- package/esm2022/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.component.mjs +47 -0
- package/esm2022/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.model.mjs +2 -0
- package/esm2022/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.module.mjs +20 -0
- package/esm2022/lib/bar-chart/bar-vertical-chart/public_api.mjs +5 -0
- package/esm2022/lib/core/axis.builder.mjs +58 -0
- package/esm2022/lib/core/chart.mjs +90 -0
- package/esm2022/lib/core/chart.model.mjs +7 -0
- package/esm2022/lib/core/color.service.mjs +74 -0
- package/esm2022/lib/core/grid.builder.mjs +40 -0
- package/esm2022/lib/core/index.mjs +2 -0
- package/esm2022/lib/core/public_api.mjs +8 -0
- package/esm2022/lib/core/tooltip.builder.mjs +42 -0
- package/esm2022/lib/core/transition.service.mjs +19 -0
- package/esm2022/lib/line-area-chart/line-area-chart-effects.builders.mjs +117 -0
- package/esm2022/lib/line-area-chart/line-area-chart.builder.mjs +206 -0
- package/esm2022/lib/line-area-chart/line-area-chart.component.mjs +47 -0
- package/esm2022/lib/line-area-chart/line-area-chart.model.mjs +2 -0
- package/esm2022/lib/line-area-chart/line-area-chart.module.mjs +24 -0
- package/esm2022/lib/line-area-chart/public_api.mjs +5 -0
- package/esm2022/lib/pie-chart/pie-chart.builder.mjs +99 -0
- package/esm2022/lib/pie-chart/pie-chart.component.mjs +47 -0
- package/esm2022/lib/pie-chart/pie-chart.model.mjs +2 -0
- package/esm2022/lib/pie-chart/pie-chart.module.mjs +24 -0
- package/esm2022/lib/pie-chart/public_api.mjs +5 -0
- package/esm2022/pioneer-code-pioneer-charts.mjs +5 -0
- package/esm2022/public-api.mjs +9 -0
- package/fesm2022/pioneer-code-pioneer-charts.mjs +1493 -0
- package/fesm2022/pioneer-code-pioneer-charts.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.builder.d.ts +41 -39
- package/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.component.d.ts +21 -18
- package/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.model.d.ts +15 -15
- package/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.module.d.ts +7 -2
- package/lib/bar-chart/bar-horizontal-chart/public_api.d.ts +4 -4
- package/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.builder.d.ts +42 -40
- package/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.component.d.ts +21 -18
- package/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.model.d.ts +15 -15
- package/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.module.d.ts +7 -2
- package/lib/bar-chart/bar-vertical-chart/public_api.d.ts +4 -4
- package/lib/core/axis.builder.d.ts +21 -18
- package/lib/core/chart.d.ts +55 -52
- package/lib/core/chart.model.d.ts +21 -21
- package/lib/core/color.service.d.ts +32 -29
- package/lib/core/grid.builder.d.ts +22 -19
- package/lib/core/index.d.ts +1 -1
- package/lib/core/public_api.d.ts +7 -8
- package/lib/core/tooltip.builder.d.ts +10 -11
- package/lib/core/transition.service.d.ts +7 -4
- package/lib/line-area-chart/line-area-chart-effects.builders.d.ts +27 -27
- package/lib/line-area-chart/line-area-chart.builder.d.ts +39 -38
- package/lib/line-area-chart/line-area-chart.component.d.ts +21 -18
- package/lib/line-area-chart/line-area-chart.model.d.ts +9 -9
- package/lib/line-area-chart/line-area-chart.module.d.ts +8 -2
- package/lib/line-area-chart/public_api.d.ts +4 -4
- package/lib/pie-chart/pie-chart.builder.d.ts +33 -34
- package/lib/pie-chart/pie-chart.component.d.ts +21 -18
- package/lib/pie-chart/pie-chart.model.d.ts +4 -4
- package/lib/pie-chart/pie-chart.module.d.ts +8 -2
- package/lib/pie-chart/public_api.d.ts +4 -4
- package/package.json +21 -19
- package/public-api.d.ts +5 -0
- package/scss/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.component.scss +19 -0
- package/scss/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.component.scss +8 -0
- package/scss/{core → lib/core}/theme/imports.scss +11 -12
- package/scss/lib/line-area-chart/line-area-chart.component.scss +35 -0
- package/scss/{pie-chart → lib/pie-chart}/pie-chart.component.scss +10 -10
- package/scss/{core/core.scss → lib/pioneer-charts.scss} +27 -13
- package/themes/pioneer-charts.css +22 -0
- package/themes/pioneer-charts.css.map +10 -0
- package/themes/pioneer-charts.min.css +3 -0
- package/themes/pioneer-charts.min.css.map +10 -0
- package/bundles/pioneer-code-pioneer-charts.umd.js +0 -3700
- package/bundles/pioneer-code-pioneer-charts.umd.js.map +0 -1
- package/bundles/pioneer-code-pioneer-charts.umd.min.js +0 -2
- package/bundles/pioneer-code-pioneer-charts.umd.min.js.map +0 -1
- package/esm2015/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.builder.js +0 -486
- package/esm2015/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.component.js +0 -89
- package/esm2015/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.model.js +0 -37
- package/esm2015/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.module.js +0 -19
- package/esm2015/lib/bar-chart/bar-horizontal-chart/index.js +0 -6
- package/esm2015/lib/bar-chart/bar-horizontal-chart/public_api.js +0 -9
- package/esm2015/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.builder.js +0 -518
- package/esm2015/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.component.js +0 -89
- package/esm2015/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.model.js +0 -37
- package/esm2015/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.module.js +0 -19
- package/esm2015/lib/bar-chart/bar-vertical-chart/index.js +0 -6
- package/esm2015/lib/bar-chart/bar-vertical-chart/public_api.js +0 -9
- package/esm2015/lib/core/axis.builder.js +0 -99
- package/esm2015/lib/core/chart.js +0 -144
- package/esm2015/lib/core/chart.model.js +0 -39
- package/esm2015/lib/core/color.service.js +0 -149
- package/esm2015/lib/core/core.module.js +0 -24
- package/esm2015/lib/core/grid.builder.js +0 -88
- package/esm2015/lib/core/index.js +0 -6
- package/esm2015/lib/core/public_api.js +0 -13
- package/esm2015/lib/core/tooltip.builder.js +0 -74
- package/esm2015/lib/core/transition.service.js +0 -23
- package/esm2015/lib/dialog/dialog.component.js +0 -50
- package/esm2015/lib/dialog/dialog.module.js +0 -23
- package/esm2015/lib/dialog/index.js +0 -6
- package/esm2015/lib/dialog/public_api.js +0 -7
- package/esm2015/lib/header/header.component.js +0 -21
- package/esm2015/lib/header/header.model.js +0 -13
- package/esm2015/lib/header/header.module.js +0 -19
- package/esm2015/lib/header/index.js +0 -6
- package/esm2015/lib/header/public_api.js +0 -8
- package/esm2015/lib/line-area-chart/index.js +0 -6
- package/esm2015/lib/line-area-chart/line-area-chart-effects.builders.js +0 -236
- package/esm2015/lib/line-area-chart/line-area-chart.builder.js +0 -386
- package/esm2015/lib/line-area-chart/line-area-chart.component.js +0 -89
- package/esm2015/lib/line-area-chart/line-area-chart.model.js +0 -23
- package/esm2015/lib/line-area-chart/line-area-chart.module.js +0 -19
- package/esm2015/lib/line-area-chart/public_api.js +0 -9
- package/esm2015/lib/pagination/index.js +0 -6
- package/esm2015/lib/pagination/pagination.component.js +0 -144
- package/esm2015/lib/pagination/pagination.model.js +0 -48
- package/esm2015/lib/pagination/pagination.module.js +0 -25
- package/esm2015/lib/pagination/public_api.js +0 -8
- package/esm2015/lib/pie-chart/index.js +0 -6
- package/esm2015/lib/pie-chart/pie-chart.builder.js +0 -221
- package/esm2015/lib/pie-chart/pie-chart.component.js +0 -89
- package/esm2015/lib/pie-chart/pie-chart.model.js +0 -13
- package/esm2015/lib/pie-chart/pie-chart.module.js +0 -19
- package/esm2015/lib/pie-chart/public_api.js +0 -9
- package/esm2015/lib/spinner/index.js +0 -6
- package/esm2015/lib/spinner/public_api.js +0 -7
- package/esm2015/lib/spinner/spinner.component.js +0 -28
- package/esm2015/lib/spinner/spinner.module.js +0 -23
- package/esm2015/lib/table/index.js +0 -6
- package/esm2015/lib/table/public_api.js +0 -8
- package/esm2015/lib/table/table-sort.service.js +0 -95
- package/esm2015/lib/table/table.component.js +0 -232
- package/esm2015/lib/table/table.model.js +0 -51
- package/esm2015/lib/table/table.module.js +0 -23
- package/esm2015/pioneer-code-pioneer-charts.js +0 -10
- package/esm2015/public_api.js +0 -18
- package/esm5/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.builder.js +0 -550
- package/esm5/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.component.js +0 -102
- package/esm5/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.model.js +0 -37
- package/esm5/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.module.js +0 -23
- package/esm5/lib/bar-chart/bar-horizontal-chart/index.js +0 -6
- package/esm5/lib/bar-chart/bar-horizontal-chart/public_api.js +0 -9
- package/esm5/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.builder.js +0 -582
- package/esm5/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.component.js +0 -102
- package/esm5/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.model.js +0 -37
- package/esm5/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.module.js +0 -23
- package/esm5/lib/bar-chart/bar-vertical-chart/index.js +0 -6
- package/esm5/lib/bar-chart/bar-vertical-chart/public_api.js +0 -9
- package/esm5/lib/core/axis.builder.js +0 -117
- package/esm5/lib/core/chart.js +0 -182
- package/esm5/lib/core/chart.model.js +0 -39
- package/esm5/lib/core/color.service.js +0 -199
- package/esm5/lib/core/core.module.js +0 -28
- package/esm5/lib/core/grid.builder.js +0 -100
- package/esm5/lib/core/index.js +0 -6
- package/esm5/lib/core/public_api.js +0 -13
- package/esm5/lib/core/tooltip.builder.js +0 -92
- package/esm5/lib/core/transition.service.js +0 -28
- package/esm5/lib/dialog/dialog.component.js +0 -58
- package/esm5/lib/dialog/dialog.module.js +0 -27
- package/esm5/lib/dialog/index.js +0 -6
- package/esm5/lib/dialog/public_api.js +0 -7
- package/esm5/lib/header/header.component.js +0 -25
- package/esm5/lib/header/header.model.js +0 -13
- package/esm5/lib/header/header.module.js +0 -23
- package/esm5/lib/header/index.js +0 -6
- package/esm5/lib/header/public_api.js +0 -8
- package/esm5/lib/line-area-chart/index.js +0 -6
- package/esm5/lib/line-area-chart/line-area-chart-effects.builders.js +0 -280
- package/esm5/lib/line-area-chart/line-area-chart.builder.js +0 -439
- package/esm5/lib/line-area-chart/line-area-chart.component.js +0 -102
- package/esm5/lib/line-area-chart/line-area-chart.model.js +0 -23
- package/esm5/lib/line-area-chart/line-area-chart.module.js +0 -23
- package/esm5/lib/line-area-chart/public_api.js +0 -9
- package/esm5/lib/pagination/index.js +0 -6
- package/esm5/lib/pagination/pagination.component.js +0 -182
- package/esm5/lib/pagination/pagination.model.js +0 -48
- package/esm5/lib/pagination/pagination.module.js +0 -29
- package/esm5/lib/pagination/public_api.js +0 -8
- package/esm5/lib/pie-chart/index.js +0 -6
- package/esm5/lib/pie-chart/pie-chart.builder.js +0 -242
- package/esm5/lib/pie-chart/pie-chart.component.js +0 -102
- package/esm5/lib/pie-chart/pie-chart.model.js +0 -13
- package/esm5/lib/pie-chart/pie-chart.module.js +0 -23
- package/esm5/lib/pie-chart/public_api.js +0 -9
- package/esm5/lib/spinner/index.js +0 -6
- package/esm5/lib/spinner/public_api.js +0 -7
- package/esm5/lib/spinner/spinner.component.js +0 -30
- package/esm5/lib/spinner/spinner.module.js +0 -27
- package/esm5/lib/table/index.js +0 -6
- package/esm5/lib/table/public_api.js +0 -8
- package/esm5/lib/table/table-sort.service.js +0 -119
- package/esm5/lib/table/table.component.js +0 -299
- package/esm5/lib/table/table.model.js +0 -51
- package/esm5/lib/table/table.module.js +0 -27
- package/esm5/pioneer-code-pioneer-charts.js +0 -10
- package/esm5/public_api.js +0 -18
- package/fesm2015/pioneer-code-pioneer-charts.js +0 -3077
- package/fesm2015/pioneer-code-pioneer-charts.js.map +0 -1
- package/fesm5/pioneer-code-pioneer-charts.js +0 -3665
- package/fesm5/pioneer-code-pioneer-charts.js.map +0 -1
- package/lib/bar-chart/bar-horizontal-chart/index.d.ts +0 -1
- package/lib/bar-chart/bar-vertical-chart/index.d.ts +0 -1
- package/lib/core/core.module.d.ts +0 -2
- package/lib/dialog/dialog.component.d.ts +0 -9
- package/lib/dialog/dialog.module.d.ts +0 -2
- package/lib/dialog/index.d.ts +0 -1
- package/lib/dialog/public_api.d.ts +0 -2
- package/lib/header/header.component.d.ts +0 -4
- package/lib/header/header.model.d.ts +0 -3
- package/lib/header/header.module.d.ts +0 -2
- package/lib/header/index.d.ts +0 -1
- package/lib/header/public_api.d.ts +0 -3
- package/lib/line-area-chart/index.d.ts +0 -1
- package/lib/pagination/index.d.ts +0 -1
- package/lib/pagination/pagination.component.d.ts +0 -20
- package/lib/pagination/pagination.model.d.ts +0 -28
- package/lib/pagination/pagination.module.d.ts +0 -2
- package/lib/pagination/public_api.d.ts +0 -3
- package/lib/pie-chart/index.d.ts +0 -1
- package/lib/spinner/index.d.ts +0 -1
- package/lib/spinner/public_api.d.ts +0 -2
- package/lib/spinner/spinner.component.d.ts +0 -4
- package/lib/spinner/spinner.module.d.ts +0 -2
- package/lib/table/index.d.ts +0 -1
- package/lib/table/public_api.d.ts +0 -3
- package/lib/table/table-sort.service.d.ts +0 -10
- package/lib/table/table.component.d.ts +0 -51
- package/lib/table/table.model.d.ts +0 -28
- package/lib/table/table.module.d.ts +0 -2
- package/pioneer-code-pioneer-charts.d.ts +0 -5
- package/pioneer-code-pioneer-charts.metadata.json +0 -1
- package/public_api.d.ts +0 -10
- package/scss/bar-chart/bar-horizontal-chart/bar-horizontal-chart.component.scss +0 -7
- package/scss/bar-chart/bar-vertical-chart/bar-vertical-chart.component.scss +0 -7
- package/scss/dialog/dialog.component.scss +0 -42
- package/scss/header/header.component.scss +0 -8
- package/scss/line-area-chart/line-area-chart.component.scss +0 -28
- package/scss/pagination/pagination.component.scss +0 -94
- package/scss/pcac.scss +0 -61
- package/scss/spinner/spinner.component.scss +0 -34
- package/scss/table/table.component.scss +0 -143
- package/themes/pcac.css +0 -291
- package/themes/pcac.css.map +0 -19
- package/themes/pcac.min.css +0 -3
- package/themes/pcac.min.css.map +0 -19
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Lib
|
|
4
|
-
*/
|
|
5
|
-
import { IPcacPieChartConfig } from './pie-chart.model';
|
|
6
|
-
import { PcacAxisBuilder } from '../core/axis.builder';
|
|
7
|
-
import { PcacGridBuilder } from '../core/grid.builder';
|
|
8
|
-
import { PcacTransitionService } from '../core/transition.service';
|
|
9
|
-
import { PcacTooltipBuilder } from '../core/tooltip.builder';
|
|
10
|
-
import { PcacColorService } from '../core/color.service';
|
|
11
|
-
import { PcacChart } from '../core/chart';
|
|
12
|
-
import { IPcacData } from '../core/chart.model';
|
|
13
|
-
import
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
private
|
|
24
|
-
private
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Lib
|
|
4
|
+
*/
|
|
5
|
+
import { IPcacPieChartConfig } from './pie-chart.model';
|
|
6
|
+
import { PcacAxisBuilder } from '../core/axis.builder';
|
|
7
|
+
import { PcacGridBuilder } from '../core/grid.builder';
|
|
8
|
+
import { PcacTransitionService } from '../core/transition.service';
|
|
9
|
+
import { PcacTooltipBuilder } from '../core/tooltip.builder';
|
|
10
|
+
import { PcacColorService } from '../core/color.service';
|
|
11
|
+
import { PcacChart } from '../core/chart';
|
|
12
|
+
import { IPcacData } from '../core/chart.model';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class PieChartBuilder extends PcacChart {
|
|
15
|
+
axisBuilder: PcacAxisBuilder;
|
|
16
|
+
gridBuilder: PcacGridBuilder;
|
|
17
|
+
transitionService: PcacTransitionService;
|
|
18
|
+
tooltipBuilder: PcacTooltipBuilder;
|
|
19
|
+
colorService: PcacColorService;
|
|
20
|
+
private radius;
|
|
21
|
+
private arcShape;
|
|
22
|
+
private arcOverShape;
|
|
23
|
+
private pieAngles;
|
|
24
|
+
private sliceClickedSource;
|
|
25
|
+
sliceClicked$: import("rxjs").Observable<IPcacData>;
|
|
26
|
+
constructor(axisBuilder: PcacAxisBuilder, gridBuilder: PcacGridBuilder, transitionService: PcacTransitionService, tooltipBuilder: PcacTooltipBuilder, colorService: PcacColorService);
|
|
27
|
+
buildChart(chartElm: ElementRef, config: IPcacPieChartConfig): void;
|
|
28
|
+
private buildShapes;
|
|
29
|
+
private drawChart;
|
|
30
|
+
private tweenChart;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PieChartBuilder, never>;
|
|
32
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PieChartBuilder>;
|
|
33
|
+
}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, EventEmitter } from '@angular/core';
|
|
2
|
-
import { IPcacPieChartConfig } from './pie-chart.model';
|
|
3
|
-
import { PieChartBuilder } from './pie-chart.builder';
|
|
4
|
-
import { IPcacData } from '../core';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { ElementRef, OnChanges, EventEmitter } from '@angular/core';
|
|
2
|
+
import { IPcacPieChartConfig } from './pie-chart.model';
|
|
3
|
+
import { PieChartBuilder } from './pie-chart.builder';
|
|
4
|
+
import { IPcacData } from '../core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PcacPieChartComponent implements OnChanges {
|
|
7
|
+
private chartBuilder;
|
|
8
|
+
config: IPcacPieChartConfig;
|
|
9
|
+
chartElm: ElementRef;
|
|
10
|
+
sliceClicked: EventEmitter<IPcacData>;
|
|
11
|
+
private resizeWindowTimeout;
|
|
12
|
+
constructor(chartBuilder: PieChartBuilder);
|
|
13
|
+
ngOnChanges(): void;
|
|
14
|
+
buildChart(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Opting against fromEvent due to incompatibility with rxjs 5 => 6
|
|
17
|
+
*/
|
|
18
|
+
onResize(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PcacPieChartComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PcacPieChartComponent, "pcac-pie-chart", never, { "config": { "alias": "config"; "required": false; }; }, { "sliceClicked": "sliceClicked"; }, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPcacChartConfig } from '../core/chart.model';
|
|
2
|
-
export interface IPcacPieChartConfig extends IPcacChartConfig {
|
|
3
|
-
numberOfTicks: number;
|
|
4
|
-
}
|
|
1
|
+
import { IPcacChartConfig } from '../core/chart.model';
|
|
2
|
+
export interface IPcacPieChartConfig extends IPcacChartConfig {
|
|
3
|
+
numberOfTicks: number;
|
|
4
|
+
}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./pie-chart.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class PcacPieChartModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PcacPieChartModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PcacPieChartModule, [typeof i1.PcacPieChartComponent], [typeof i2.CommonModule], [typeof i1.PcacPieChartComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PcacPieChartModule>;
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './pie-chart.builder';
|
|
2
|
-
export * from './pie-chart.component';
|
|
3
|
-
export * from './pie-chart.model';
|
|
4
|
-
export * from './pie-chart.module';
|
|
1
|
+
export * from './pie-chart.builder';
|
|
2
|
+
export * from './pie-chart.component';
|
|
3
|
+
export * from './pie-chart.model';
|
|
4
|
+
export * from './pie-chart.module';
|
package/package.json
CHANGED
|
@@ -22,27 +22,29 @@
|
|
|
22
22
|
"type": "git",
|
|
23
23
|
"url": "https://github.com/PioneerCode/pioneer-charts"
|
|
24
24
|
},
|
|
25
|
-
"version": "1.0.
|
|
25
|
+
"version": "1.0.4",
|
|
26
26
|
"license": "MIT",
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@types/d3": "^5.7.2",
|
|
29
|
-
"d3": "^5.9.2"
|
|
30
|
-
},
|
|
31
27
|
"peerDependencies": {
|
|
32
|
-
"@angular/common": "^
|
|
33
|
-
"@angular/core": "^
|
|
28
|
+
"@angular/common": "^16.1.0",
|
|
29
|
+
"@angular/core": "^16.1.0",
|
|
30
|
+
"d3": "^7.8.5",
|
|
31
|
+
"@types/d3": "^7.4.0"
|
|
34
32
|
},
|
|
35
|
-
"main": "bundles/pioneer-code-pioneer-charts.umd.js",
|
|
36
|
-
"module": "fesm5/pioneer-code-pioneer-charts.js",
|
|
37
|
-
"es2015": "fesm2015/pioneer-code-pioneer-charts.js",
|
|
38
|
-
"esm5": "esm5/pioneer-code-pioneer-charts.js",
|
|
39
|
-
"esm2015": "esm2015/pioneer-code-pioneer-charts.js",
|
|
40
|
-
"fesm5": "fesm5/pioneer-code-pioneer-charts.js",
|
|
41
|
-
"fesm2015": "fesm2015/pioneer-code-pioneer-charts.js",
|
|
42
|
-
"typings": "pioneer-code-pioneer-charts.d.ts",
|
|
43
|
-
"metadata": "pioneer-code-pioneer-charts.metadata.json",
|
|
44
|
-
"sideEffects": false,
|
|
45
33
|
"dependencies": {
|
|
46
|
-
"tslib": "^
|
|
34
|
+
"tslib": "^2.3.0"
|
|
35
|
+
},
|
|
36
|
+
"sideEffects": false,
|
|
37
|
+
"module": "fesm2022/pioneer-code-pioneer-charts.mjs",
|
|
38
|
+
"typings": "index.d.ts",
|
|
39
|
+
"exports": {
|
|
40
|
+
"./package.json": {
|
|
41
|
+
"default": "./package.json"
|
|
42
|
+
},
|
|
43
|
+
".": {
|
|
44
|
+
"types": "./index.d.ts",
|
|
45
|
+
"esm2022": "./esm2022/pioneer-code-pioneer-charts.mjs",
|
|
46
|
+
"esm": "./esm2022/pioneer-code-pioneer-charts.mjs",
|
|
47
|
+
"default": "./fesm2022/pioneer-code-pioneer-charts.mjs"
|
|
48
|
+
}
|
|
47
49
|
}
|
|
48
|
-
}
|
|
50
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.pcac-bar-horizontal-chart {
|
|
2
|
+
display: block;
|
|
3
|
+
svg {
|
|
4
|
+
width: 100%;
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.pcac-d3-tooltip {
|
|
10
|
+
position: absolute;
|
|
11
|
+
text-align: center;
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
padding: 0.5rem;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
display: none;
|
|
16
|
+
background-color: rgba(0,0,0, 0.75);
|
|
17
|
+
color: white;
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
$white: #fff;
|
|
2
|
-
$gray-100: #f8f9fa;
|
|
3
|
-
$gray-200: #e9ecef;
|
|
4
|
-
$gray-300: #dee2e6;
|
|
5
|
-
$gray-400: #ced4da;
|
|
6
|
-
$gray-500: #adb5bd;
|
|
7
|
-
$gray-600: #6c757d;
|
|
8
|
-
$gray-700: #495057;
|
|
9
|
-
$gray-800: #343a40;
|
|
10
|
-
$gray-900: #212529;
|
|
11
|
-
$theme-colors: ( "primary": #24282e, "primary-light": #a3a1fb, "success": #5ee2a0, "danger": #ff6565, "warning": #fec163);
|
|
12
|
-
$font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
1
|
+
$white: #fff;
|
|
2
|
+
$gray-100: #f8f9fa;
|
|
3
|
+
$gray-200: #e9ecef;
|
|
4
|
+
$gray-300: #dee2e6;
|
|
5
|
+
$gray-400: #ced4da;
|
|
6
|
+
$gray-500: #adb5bd;
|
|
7
|
+
$gray-600: #6c757d;
|
|
8
|
+
$gray-700: #495057;
|
|
9
|
+
$gray-800: #343a40;
|
|
10
|
+
$gray-900: #212529;
|
|
11
|
+
$theme-colors: ( "primary": #24282e, "primary-light": #a3a1fb, "success": #5ee2a0, "danger": #ff6565, "warning": #fec163);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@import "../core/theme/imports";
|
|
2
|
+
|
|
3
|
+
.pcac-line-area-chart {
|
|
4
|
+
svg {
|
|
5
|
+
width: 100%;
|
|
6
|
+
display: block;
|
|
7
|
+
background-color: white;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.dot {
|
|
11
|
+
stroke-width: 2px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.effects-canvas {
|
|
15
|
+
fill: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.effect-line {
|
|
19
|
+
stroke: $gray-400;
|
|
20
|
+
stroke-width: 1px;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.effect-circle {
|
|
25
|
+
stroke-width: 1px;
|
|
26
|
+
fill: none;
|
|
27
|
+
opacity: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.effect-text {
|
|
31
|
+
font-size: 11px;
|
|
32
|
+
font-weight: bold;
|
|
33
|
+
fill: $gray-800;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.pcac-pie-chart {
|
|
2
|
-
svg {
|
|
3
|
-
width: 100%;
|
|
4
|
-
display: block;
|
|
5
|
-
}
|
|
6
|
-
.dot {
|
|
7
|
-
fill: none;
|
|
8
|
-
stroke-width: 1px;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
.pcac-pie-chart {
|
|
2
|
+
svg {
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: block;
|
|
5
|
+
}
|
|
6
|
+
.dot {
|
|
7
|
+
fill: none;
|
|
8
|
+
stroke-width: 1px;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1,13 +1,27 @@
|
|
|
1
|
-
@import "theme/imports";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
color: $
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
@import "core/theme/imports";
|
|
2
|
+
|
|
3
|
+
.pcac-d3-tooltip {
|
|
4
|
+
position: absolute;
|
|
5
|
+
text-align: center;
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
padding: 0.5rem;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
display: none;
|
|
10
|
+
background-color: rgba($gray-800, 0.85);
|
|
11
|
+
color: $white;
|
|
12
|
+
border-radius: 2px;
|
|
13
|
+
z-index: 1000
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.pcac-grid-rule line {
|
|
17
|
+
stroke: $gray-200;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.pcac-x-axis,
|
|
21
|
+
.pcac-y-axis {
|
|
22
|
+
|
|
23
|
+
path,
|
|
24
|
+
line {
|
|
25
|
+
stroke: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.pcac-d3-tooltip {
|
|
2
|
+
position: absolute;
|
|
3
|
+
text-align: center;
|
|
4
|
+
font-size: 14px;
|
|
5
|
+
padding: 0.5rem;
|
|
6
|
+
pointer-events: none;
|
|
7
|
+
display: none;
|
|
8
|
+
background-color: rgba(52, 58, 64, 0.85);
|
|
9
|
+
color: #fff;
|
|
10
|
+
border-radius: 2px;
|
|
11
|
+
z-index: 1000; }
|
|
12
|
+
|
|
13
|
+
.pcac-grid-rule line {
|
|
14
|
+
stroke: #e9ecef; }
|
|
15
|
+
|
|
16
|
+
.pcac-x-axis path,
|
|
17
|
+
.pcac-x-axis line,
|
|
18
|
+
.pcac-y-axis path,
|
|
19
|
+
.pcac-y-axis line {
|
|
20
|
+
stroke: none; }
|
|
21
|
+
|
|
22
|
+
/*# sourceMappingURL=pcac.css.map */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "pcac.css",
|
|
4
|
+
"sources": [
|
|
5
|
+
"projects/pioneer-code/pioneer-charts/src/lib/pioneer-charts.scss",
|
|
6
|
+
"projects/pioneer-code/pioneer-charts/src/lib/core/theme/imports.scss"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAEA,AAAA,gBAAgB,CAAC;EACf,QAAQ,EAAE,QAAQ;EAClB,UAAU,EAAE,MAAM;EAClB,SAAS,EAAE,IAAI;EACf,OAAO,EAAE,MAAM;EACf,cAAc,EAAE,IAAI;EACpB,OAAO,EAAE,IAAI;EACb,gBAAgB,ECDP,sBAAO;EDEhB,KAAK,ECVC,IAAI;EDWV,aAAa,EAAE,GAAG;EAClB,OAAO,EAAE,IACX,GAAC;;AAED,AAAA,eAAe,CAAC,IAAI,CAAC;EACnB,MAAM,ECdG,OAAO,GDejB;;AAED,AAGE,YAHU,CAGV,IAAI;AAHN,YAAY,CAIV,IAAI;AAHN,YAAY,CAEV,IAAI;AAFN,YAAY,CAGV,IAAI,CAAC;EACH,MAAM,EAAE,IAAI,GACb"
|
|
10
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
.pcac-d3-tooltip{position:absolute;text-align:center;font-size:14px;padding:0.5rem;pointer-events:none;display:none;background-color:rgba(52,58,64,0.85);color:#fff;border-radius:2px;z-index:1000}.pcac-grid-rule line{stroke:#e9ecef}.pcac-x-axis path,.pcac-x-axis line,.pcac-y-axis path,.pcac-y-axis line{stroke:none}
|
|
2
|
+
|
|
3
|
+
/*# sourceMappingURL=pioneer-charts.min.css.map */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"file": "pioneer-charts.min.css",
|
|
4
|
+
"sources": [
|
|
5
|
+
"projects/pioneer-code/pioneer-charts/src/lib/pioneer-charts.scss",
|
|
6
|
+
"projects/pioneer-code/pioneer-charts/src/lib/core/theme/imports.scss"
|
|
7
|
+
],
|
|
8
|
+
"names": [],
|
|
9
|
+
"mappings": "AAEA,AAAA,gBAAgB,AAAC,CACf,QAAQ,CAAE,QAAQ,CAClB,UAAU,CAAE,MAAM,CAClB,SAAS,CAAE,IAAI,CACf,OAAO,CAAE,MAAM,CACf,cAAc,CAAE,IAAI,CACpB,OAAO,CAAE,IAAI,CACb,gBAAgB,CCDP,mBAAO,CDEhB,KAAK,CCVC,IAAI,CDWV,aAAa,CAAE,GAAG,CAClB,OAAO,CAAE,IACX,CAAC,AAED,AAAA,eAAe,CAAC,IAAI,AAAC,CACnB,MAAM,CCdG,OAAO,CDejB,AAED,AAGE,YAHU,CAGV,IAAI,CAHN,YAAY,CAIV,IAAI,CAHN,YAAY,CAEV,IAAI,CAFN,YAAY,CAGV,IAAI,AAAC,CACH,MAAM,CAAE,IAAI,CACb"
|
|
10
|
+
}
|