@drayman/elements 1.82.0 → 1.84.0
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.
|
@@ -6,7 +6,7 @@ export interface DraymanNgxCharts {
|
|
|
6
6
|
onSelect?: ElementEvent<{
|
|
7
7
|
data: any;
|
|
8
8
|
}>;
|
|
9
|
-
type: 'pie' | 'verticalBar' | 'numberCard' | 'gauge' | 'areaNormalized' | 'areaStacked' | 'line';
|
|
9
|
+
type: 'pie' | 'verticalBar' | 'verticalBarStacked' | 'numberCard' | 'gauge' | 'areaNormalized' | 'areaStacked' | 'line';
|
|
10
10
|
/**
|
|
11
11
|
* Chart data.
|
|
12
12
|
*/
|
|
@@ -84,11 +84,39 @@ export interface DraymanNgxCharts {
|
|
|
84
84
|
/**
|
|
85
85
|
* Trim or don't trim ticks on the x axis.
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
trimXAxisTicks?: boolean;
|
|
88
88
|
/**
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
* Trim or don't trim ticks on the y axis.
|
|
90
|
+
*/
|
|
91
|
+
trimYAxisTicks?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Rotate x axis tick labels to prevent overlap.
|
|
94
|
+
*/
|
|
95
|
+
rotateXAxisTicks?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Maximum length of x axis tick labels when trimming is enabled.
|
|
98
|
+
*/
|
|
99
|
+
maxXAxisTickLength?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Maximum length of y axis tick labels when trimming is enabled.
|
|
102
|
+
*/
|
|
103
|
+
maxYAxisTickLength?: number;
|
|
104
|
+
/**
|
|
105
|
+
* Custom x axis tick formatting function.
|
|
106
|
+
*/
|
|
107
|
+
xAxisTickFormatting?: any;
|
|
108
|
+
/**
|
|
109
|
+
* Custom y axis tick formatting function.
|
|
110
|
+
*/
|
|
111
|
+
yAxisTickFormatting?: any;
|
|
112
|
+
/**
|
|
113
|
+
* Predefined list of x axis tick values.
|
|
114
|
+
*/
|
|
115
|
+
xAxisTicks?: any[];
|
|
116
|
+
/**
|
|
117
|
+
* Predefined list of y axis tick values.
|
|
118
|
+
*/
|
|
119
|
+
yAxisTicks?: any[];
|
|
92
120
|
/**
|
|
93
121
|
* Padding between bars in `px`.
|
|
94
122
|
*/
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -560,11 +560,11 @@ declare global {
|
|
|
560
560
|
*
|
|
561
561
|
* 
|
|
562
562
|
*
|
|
563
|
-
* ```typescript
|
|
564
|
-
* export const component: DraymanComponent = async ({ forceUpdate }) => {
|
|
565
|
-
* return () => (
|
|
566
|
-
* <drayman-ngx-charts
|
|
567
|
-
* type="pie"
|
|
563
|
+
* ```typescript
|
|
564
|
+
* export const component: DraymanComponent = async ({ forceUpdate }) => {
|
|
565
|
+
* return () => (
|
|
566
|
+
* <drayman-ngx-charts
|
|
567
|
+
* type="pie"
|
|
568
568
|
* results={
|
|
569
569
|
* [
|
|
570
570
|
* { name: 'Cherries', value: 10 },
|
|
@@ -573,11 +573,43 @@ declare global {
|
|
|
573
573
|
* }
|
|
574
574
|
* labels
|
|
575
575
|
* />
|
|
576
|
-
* );
|
|
577
|
-
* }
|
|
578
|
-
* ```
|
|
579
|
-
|
|
580
|
-
|
|
576
|
+
* );
|
|
577
|
+
* }
|
|
578
|
+
* ```
|
|
579
|
+
*
|
|
580
|
+
* ### Stacked vertical bar chart
|
|
581
|
+
*
|
|
582
|
+
* ```typescript
|
|
583
|
+
* export const component: DraymanComponent = async ({ forceUpdate }) => {
|
|
584
|
+
* return () => (
|
|
585
|
+
* <drayman-ngx-charts
|
|
586
|
+
* type="verticalBarStacked"
|
|
587
|
+
* results={[
|
|
588
|
+
* {
|
|
589
|
+
* name: 'Germany',
|
|
590
|
+
* series: [
|
|
591
|
+
* { name: '2010', value: 7300000 },
|
|
592
|
+
* { name: '2011', value: 8940000 },
|
|
593
|
+
* ],
|
|
594
|
+
* },
|
|
595
|
+
* {
|
|
596
|
+
* name: 'USA',
|
|
597
|
+
* series: [
|
|
598
|
+
* { name: '2010', value: 7870000 },
|
|
599
|
+
* { name: '2011', value: 8270000 },
|
|
600
|
+
* ],
|
|
601
|
+
* },
|
|
602
|
+
* ]}
|
|
603
|
+
* legend
|
|
604
|
+
* xAxis
|
|
605
|
+
* yAxis
|
|
606
|
+
* showGridLines
|
|
607
|
+
* />
|
|
608
|
+
* );
|
|
609
|
+
* }
|
|
610
|
+
* ```
|
|
611
|
+
*/
|
|
612
|
+
interface DraymanNgxChartsProps extends DraymanNgxCharts, DraymanElementsProps { }
|
|
581
613
|
/**
|
|
582
614
|
* # <drayman-ngx-graph \/>
|
|
583
615
|
*
|