@codeauradev/ngx-wind-charts 1.0.4 → 1.0.9

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/ngx-charts.css CHANGED
@@ -27,6 +27,29 @@
27
27
  line-height: 1.45;
28
28
  }
29
29
 
30
+ ngx-bar-chart > ngx-chart-frame {
31
+ display: flex;
32
+ flex: 1 1 auto;
33
+ flex-direction: column;
34
+ width: 100%;
35
+ height: 100%;
36
+ min-height: 0;
37
+ min-width: 0;
38
+ }
39
+
40
+ ngx-bar-chart .ngx-charts {
41
+ flex: 1 1 auto;
42
+ height: 100%;
43
+ min-height: 0;
44
+ }
45
+
46
+ ngx-bar-chart .ngx-plot {
47
+ position: relative;
48
+ flex: 1 1 auto;
49
+ height: auto;
50
+ min-height: 0;
51
+ }
52
+
30
53
  .ngx-plot {
31
54
  position: relative;
32
55
  width: 100%;
@@ -34,6 +57,16 @@
34
57
  min-width: 0;
35
58
  }
36
59
 
60
+ .ngx-stretch {
61
+ position: absolute;
62
+ inset: 0;
63
+ display: block;
64
+ width: 100%;
65
+ height: 100%;
66
+ max-width: 100%;
67
+ max-height: 100%;
68
+ }
69
+
37
70
  .ngx-fill {
38
71
  position: absolute;
39
72
  inset: 0;
@@ -87,6 +120,12 @@
87
120
  font-size: 0.75rem;
88
121
  }
89
122
 
123
+ .ngx-axis {
124
+ fill: var(--color-foreground, currentColor);
125
+ font-size: 0.8rem;
126
+ font-weight: 500;
127
+ }
128
+
90
129
  .ngx-tip {
91
130
  position: absolute;
92
131
  z-index: 20;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeauradev/ngx-wind-charts",
3
- "version": "1.0.4",
3
+ "version": "1.0.9",
4
4
  "description": "Angular 22 charts styled with Tailwind CSS, including a USA choropleth. Pass data in, get SVG charts out.",
5
5
  "keywords": [
6
6
  "angular",
@@ -92,6 +92,11 @@ interface BarMark {
92
92
  showLabel: boolean;
93
93
  origin: 'top' | 'bottom' | 'left' | 'right';
94
94
  }
95
+ interface AxisTitle {
96
+ label: string;
97
+ x: number;
98
+ y: number;
99
+ }
95
100
  interface BarLayout {
96
101
  empty: boolean;
97
102
  width: number;
@@ -101,6 +106,8 @@ interface BarLayout {
101
106
  categories: CategoryLabel[];
102
107
  zero: ZeroLine | null;
103
108
  legend: LegendItem[];
109
+ xAxis: AxisTitle | null;
110
+ yAxis: AxisTitle | null;
104
111
  }
105
112
  interface TrendPoint {
106
113
  key: string;
@@ -130,6 +137,8 @@ interface TrendLayout {
130
137
  baseline: number;
131
138
  fromZero: boolean;
132
139
  legend: LegendItem[];
140
+ xAxis: AxisTitle | null;
141
+ yAxis: AxisTitle | null;
133
142
  }
134
143
  interface PieSlice {
135
144
  key: string;
@@ -193,6 +202,8 @@ interface ScatterLayout {
193
202
  ticksY: TickMark[];
194
203
  points: ScatterMark[];
195
204
  legend: LegendItem[];
205
+ xAxis: AxisTitle | null;
206
+ yAxis: AxisTitle | null;
196
207
  }
197
208
  interface GaugeLayout {
198
209
  empty: boolean;
@@ -253,6 +264,8 @@ declare function layoutBars(input: {
253
264
  format: (value: number) => string;
254
265
  showValues?: boolean;
255
266
  max?: number;
267
+ xLabel?: string;
268
+ yLabel?: string;
256
269
  }): BarLayout;
257
270
  declare function layoutTrend(input: {
258
271
  categories: string[];
@@ -264,6 +277,8 @@ declare function layoutTrend(input: {
264
277
  filled?: boolean;
265
278
  stacked?: boolean;
266
279
  min?: number;
280
+ xLabel?: string;
281
+ yLabel?: string;
267
282
  }): TrendLayout;
268
283
  declare function layoutPie(input: {
269
284
  data: {
@@ -292,6 +307,8 @@ declare function layoutScatter(input: {
292
307
  height: number;
293
308
  palette?: readonly string[];
294
309
  format: (value: number) => string;
310
+ xLabel?: string;
311
+ yLabel?: string;
295
312
  }): ScatterLayout;
296
313
  declare function layoutGauge(input: {
297
314
  value: number;
@@ -331,6 +348,8 @@ export declare class NgxLineChart {
331
348
  readonly colors: import("@angular/core").InputSignal<readonly string[] | undefined>;
332
349
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
333
350
  readonly title: import("@angular/core").InputSignal<string | undefined>;
351
+ readonly xLabel: import("@angular/core").InputSignal<string | undefined>;
352
+ readonly yLabel: import("@angular/core").InputSignal<string | undefined>;
334
353
  readonly min: import("@angular/core").InputSignal<number | undefined>;
335
354
  readonly animate: import("@angular/core").InputSignal<boolean>;
336
355
  readonly box: {
@@ -409,6 +428,16 @@ export declare class NgxLineChart {
409
428
  "required": false;
410
429
  "isSignal": true;
411
430
  };
431
+ "xLabel": {
432
+ "alias": "xLabel";
433
+ "required": false;
434
+ "isSignal": true;
435
+ };
436
+ "yLabel": {
437
+ "alias": "yLabel";
438
+ "required": false;
439
+ "isSignal": true;
440
+ };
412
441
  "min": {
413
442
  "alias": "min";
414
443
  "required": false;
@@ -436,6 +465,8 @@ export declare class NgxBarChart {
436
465
  readonly colors: import("@angular/core").InputSignal<readonly string[] | undefined>;
437
466
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
438
467
  readonly title: import("@angular/core").InputSignal<string | undefined>;
468
+ readonly xLabel: import("@angular/core").InputSignal<string | undefined>;
469
+ readonly yLabel: import("@angular/core").InputSignal<string | undefined>;
439
470
  readonly max: import("@angular/core").InputSignal<number | undefined>;
440
471
  readonly animate: import("@angular/core").InputSignal<boolean>;
441
472
  readonly box: {
@@ -521,6 +552,16 @@ export declare class NgxBarChart {
521
552
  "required": false;
522
553
  "isSignal": true;
523
554
  };
555
+ "xLabel": {
556
+ "alias": "xLabel";
557
+ "required": false;
558
+ "isSignal": true;
559
+ };
560
+ "yLabel": {
561
+ "alias": "yLabel";
562
+ "required": false;
563
+ "isSignal": true;
564
+ };
524
565
  "max": {
525
566
  "alias": "max";
526
567
  "required": false;
@@ -851,6 +892,8 @@ export declare class NgxScatterChart {
851
892
  readonly colors: import("@angular/core").InputSignal<readonly string[] | undefined>;
852
893
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
853
894
  readonly title: import("@angular/core").InputSignal<string | undefined>;
895
+ readonly xLabel: import("@angular/core").InputSignal<string | undefined>;
896
+ readonly yLabel: import("@angular/core").InputSignal<string | undefined>;
854
897
  readonly animate: import("@angular/core").InputSignal<boolean>;
855
898
  readonly box: {
856
899
  width: import("@angular/core").WritableSignal<number>;
@@ -908,6 +951,16 @@ export declare class NgxScatterChart {
908
951
  "required": false;
909
952
  "isSignal": true;
910
953
  };
954
+ "xLabel": {
955
+ "alias": "xLabel";
956
+ "required": false;
957
+ "isSignal": true;
958
+ };
959
+ "yLabel": {
960
+ "alias": "yLabel";
961
+ "required": false;
962
+ "isSignal": true;
963
+ };
911
964
  "animate": {
912
965
  "alias": "animate";
913
966
  "required": false;