@oliasoft-open-source/charts-library 4.2.2 → 4.2.3

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.
@@ -19,11 +19,15 @@ export interface IBarAxes {
19
19
  y: ICommonAxis<'left' | 'right'>[];
20
20
  [key: string]: ICommonAxis[];
21
21
  }
22
+ export interface IBarAdditionalAxesOptions extends ICommonAdditionalAxesOptions {
23
+ stackedX?: boolean;
24
+ stackedY?: boolean;
25
+ }
22
26
  export interface IBarOptions extends ICommonOptions {
23
27
  direction: 'vertical' | 'horizontal';
24
28
  axes: IBarAxes;
25
29
  scales?: ICommonScales;
26
- additionalAxesOptions?: ICommonAdditionalAxesOptions;
30
+ additionalAxesOptions?: IBarAdditionalAxesOptions;
27
31
  chartStyling: IBarStyling;
28
32
  graph?: ICommonGraph;
29
33
  annotations?: ICommonAnnotations;
@@ -60,7 +64,7 @@ export interface IBarDefaultProps {
60
64
  title?: string | string[];
61
65
  direction: 'vertical' | 'horizontal';
62
66
  axes: IBarAxes;
63
- additionalAxesOptions: ICommonAdditionalAxesOptions;
67
+ additionalAxesOptions: IBarAdditionalAxesOptions;
64
68
  chartStyling: IBarStyling;
65
69
  tooltip: ICommonTooltip;
66
70
  graph: IChartGraph;
@@ -188,6 +188,13 @@ export namespace PrettyLabelsTooltips {
188
188
  }
189
189
  export { args_23 as args };
190
190
  }
191
+ export function StackedSelectedAxis(args: any): import("react/jsx-runtime").JSX.Element;
192
+ export namespace StackedSelectedAxis {
193
+ export namespace args_24 {
194
+ export { stackedData as chart };
195
+ }
196
+ export { args_24 as args };
197
+ }
191
198
  import { BarChart } from './bar-chart';
192
199
  declare namespace singleChart { }
193
200
  declare namespace multipleBarData {
@@ -674,3 +681,37 @@ declare namespace hugeNumbersData {
674
681
  }
675
682
  export { data_22 as data };
676
683
  }
684
+ declare namespace stackedData {
685
+ export namespace data_23 {
686
+ export const labels: string[];
687
+ const datasets_23: ({
688
+ label: string;
689
+ data: number[];
690
+ backgroundColor: string;
691
+ borderColor: string;
692
+ barThickness: number;
693
+ type?: undefined;
694
+ yAxisID?: undefined;
695
+ } | {
696
+ label: string;
697
+ data: number[];
698
+ type: string;
699
+ backgroundColor: string;
700
+ borderColor: string;
701
+ yAxisID: string;
702
+ barThickness?: undefined;
703
+ })[];
704
+ export { datasets_23 as datasets };
705
+ }
706
+ export { data_23 as data };
707
+ export namespace options_21 {
708
+ const title_20: string;
709
+ export { title_20 as title };
710
+ export namespace additionalAxesOptions_8 {
711
+ const stackedX: boolean;
712
+ const stackedY: boolean;
713
+ }
714
+ export { additionalAxesOptions_8 as additionalAxesOptions };
715
+ }
716
+ export { options_21 as options };
717
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "React Chart Library (based on Chart.js and react-chart-js-2)",
5
5
  "homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
6
6
  "resolutions": {