@oliasoft-open-source/charts-library 4.5.0 → 4.5.1

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.
@@ -112,44 +112,51 @@ export namespace LegendOnRight {
112
112
  }
113
113
  export { args_15 as args };
114
114
  }
115
+ export function Border(args: any): import("react/jsx-runtime").JSX.Element;
116
+ export namespace Border {
117
+ export namespace args_16 {
118
+ export { borderedChart as chart };
119
+ }
120
+ export { args_16 as args };
121
+ }
115
122
  export function AnnotationYAxis(args: any): import("react/jsx-runtime").JSX.Element;
116
123
  export namespace AnnotationYAxis {
117
- export namespace args_16 {
124
+ export namespace args_17 {
118
125
  export { horizontalAnnotationChart as chart };
119
126
  }
120
- export { args_16 as args };
127
+ export { args_17 as args };
121
128
  }
122
129
  export function AnnotationXAxis(args: any): import("react/jsx-runtime").JSX.Element;
123
130
  export namespace AnnotationXAxis {
124
- export namespace args_17 {
131
+ export namespace args_18 {
125
132
  export { verticalAnnotationChart as chart };
126
133
  }
127
- export { args_17 as args };
134
+ export { args_18 as args };
128
135
  }
129
136
  export function AnnotationDiagonal(args: any): import("react/jsx-runtime").JSX.Element;
130
137
  export namespace AnnotationDiagonal {
131
- export namespace args_18 {
138
+ export namespace args_19 {
132
139
  export { diagonalAnnotationChart as chart };
133
140
  }
134
- export { args_18 as args };
141
+ export { args_19 as args };
135
142
  }
136
143
  export function AnnotationsInLegend(args: any): import("react/jsx-runtime").JSX.Element;
137
144
  export namespace AnnotationsInLegend {
138
- export namespace args_19 {
145
+ export namespace args_20 {
139
146
  export { controlAnnotationChart as chart };
140
147
  }
141
- export { args_19 as args };
148
+ export { args_20 as args };
142
149
  }
143
150
  export function Animated(args: any): import("react/jsx-runtime").JSX.Element;
144
151
  export namespace Animated {
145
- export namespace args_20 {
152
+ export namespace args_21 {
146
153
  export { animatedChart as chart };
147
154
  }
148
- export { args_20 as args };
155
+ export { args_21 as args };
149
156
  }
150
157
  export function CustomLegend(args: any): import("react/jsx-runtime").JSX.Element;
151
158
  export namespace CustomLegend {
152
- export namespace args_21 {
159
+ export namespace args_22 {
153
160
  namespace chart {
154
161
  namespace options {
155
162
  const title_1: string;
@@ -172,35 +179,35 @@ export namespace CustomLegend {
172
179
  }
173
180
  }
174
181
  }
175
- export { args_21 as args };
182
+ export { args_22 as args };
176
183
  }
177
184
  export function DragDataChart(args: any): import("react/jsx-runtime").JSX.Element;
178
185
  export namespace DragDataChart {
179
- export namespace args_22 {
186
+ export namespace args_23 {
180
187
  export { dragDataChart as chart };
181
188
  }
182
- export { args_22 as args };
189
+ export { args_23 as args };
183
190
  }
184
191
  export function PrettyLabelsTooltips(args: any): import("react/jsx-runtime").JSX.Element;
185
192
  export namespace PrettyLabelsTooltips {
186
- export namespace args_23 {
193
+ export namespace args_24 {
187
194
  export { hugeNumbersData as chart };
188
195
  }
189
- export { args_23 as args };
196
+ export { args_24 as args };
190
197
  }
191
198
  export function StackedSelectedAxis(args: any): import("react/jsx-runtime").JSX.Element;
192
199
  export namespace StackedSelectedAxis {
193
- export namespace args_24 {
200
+ export namespace args_25 {
194
201
  export { stackedData as chart };
195
202
  }
196
- export { args_24 as args };
203
+ export { args_25 as args };
197
204
  }
198
205
  export function WaterfallChart(args: any): import("react/jsx-runtime").JSX.Element;
199
206
  export namespace WaterfallChart {
200
- export namespace args_25 {
207
+ export namespace args_26 {
201
208
  export { waterfallChart as chart };
202
209
  }
203
- export { args_25 as args };
210
+ export { args_26 as args };
204
211
  }
205
212
  export function ControlsPortal(): import("react/jsx-runtime").JSX.Element;
206
213
  import { BarChart } from './bar-chart';
@@ -518,16 +525,30 @@ declare namespace legendRight {
518
525
  }
519
526
  export { options_14 as options };
520
527
  }
521
- declare namespace horizontalAnnotationChart {
528
+ declare namespace borderedChart {
522
529
  export namespace data_16 {
523
530
  export { labels1 as labels };
524
531
  const datasets_16: {
532
+ backgroundColor: string;
533
+ borderColor: string;
534
+ borderWidth: number;
525
535
  label: string;
526
536
  data: number[];
527
537
  }[];
528
538
  export { datasets_16 as datasets };
529
539
  }
530
540
  export { data_16 as data };
541
+ }
542
+ declare namespace horizontalAnnotationChart {
543
+ export namespace data_17 {
544
+ export { labels1 as labels };
545
+ const datasets_17: {
546
+ label: string;
547
+ data: number[];
548
+ }[];
549
+ export { datasets_17 as datasets };
550
+ }
551
+ export { data_17 as data };
531
552
  export namespace options_15 {
532
553
  const title_16: string;
533
554
  export { title_16 as title };
@@ -544,15 +565,15 @@ declare namespace horizontalAnnotationChart {
544
565
  export { options_15 as options };
545
566
  }
546
567
  declare namespace verticalAnnotationChart {
547
- export namespace data_17 {
568
+ export namespace data_18 {
548
569
  export { labels1 as labels };
549
- const datasets_17: {
570
+ const datasets_18: {
550
571
  label: string;
551
572
  data: number[];
552
573
  }[];
553
- export { datasets_17 as datasets };
574
+ export { datasets_18 as datasets };
554
575
  }
555
- export { data_17 as data };
576
+ export { data_18 as data };
556
577
  export namespace options_16 {
557
578
  const title_17: string;
558
579
  export { title_17 as title };
@@ -572,15 +593,15 @@ declare namespace verticalAnnotationChart {
572
593
  export { options_16 as options };
573
594
  }
574
595
  declare namespace diagonalAnnotationChart {
575
- export namespace data_18 {
596
+ export namespace data_19 {
576
597
  export { labels1 as labels };
577
- const datasets_18: {
598
+ const datasets_19: {
578
599
  label: string;
579
600
  data: number[];
580
601
  }[];
581
- export { datasets_18 as datasets };
602
+ export { datasets_19 as datasets };
582
603
  }
583
- export { data_18 as data };
604
+ export { data_19 as data };
584
605
  export namespace options_17 {
585
606
  const title_18: string;
586
607
  export { title_18 as title };
@@ -601,15 +622,15 @@ declare namespace diagonalAnnotationChart {
601
622
  export { options_17 as options };
602
623
  }
603
624
  declare namespace controlAnnotationChart {
604
- export namespace data_19 {
625
+ export namespace data_20 {
605
626
  export { labels1 as labels };
606
- const datasets_19: {
627
+ const datasets_20: {
607
628
  label: string;
608
629
  data: number[];
609
630
  }[];
610
- export { datasets_19 as datasets };
631
+ export { datasets_20 as datasets };
611
632
  }
612
- export { data_19 as data };
633
+ export { data_20 as data };
613
634
  export namespace options_18 {
614
635
  const title_19: string;
615
636
  export { title_19 as title };
@@ -637,15 +658,15 @@ declare namespace controlAnnotationChart {
637
658
  export { options_18 as options };
638
659
  }
639
660
  declare namespace animatedChart {
640
- export namespace data_20 {
661
+ export namespace data_21 {
641
662
  export { labels1 as labels };
642
- const datasets_20: {
663
+ const datasets_21: {
643
664
  label: string;
644
665
  data: number[];
645
666
  }[];
646
- export { datasets_20 as datasets };
667
+ export { datasets_21 as datasets };
647
668
  }
648
- export { data_20 as data };
669
+ export { data_21 as data };
649
670
  export namespace options_19 {
650
671
  namespace chartStyling {
651
672
  const performanceMode: boolean;
@@ -656,15 +677,15 @@ declare namespace animatedChart {
656
677
  declare const customLegendContainerID: "custom-legend-container";
657
678
  declare const labels1: string[];
658
679
  declare namespace dragDataChart {
659
- export namespace data_21 {
680
+ export namespace data_22 {
660
681
  export { labels1 as labels };
661
- const datasets_21: {
682
+ const datasets_22: {
662
683
  label: string;
663
684
  data: number[];
664
685
  }[];
665
- export { datasets_21 as datasets };
686
+ export { datasets_22 as datasets };
666
687
  }
667
- export { data_21 as data };
688
+ export { data_22 as data };
668
689
  export namespace options_20 {
669
690
  namespace dragData {
670
691
  const enableDragData: boolean;
@@ -678,21 +699,21 @@ declare namespace dragDataChart {
678
699
  export { options_20 as options };
679
700
  }
680
701
  declare namespace hugeNumbersData {
681
- export namespace data_22 {
702
+ export namespace data_23 {
682
703
  export { labels1 as labels };
683
- const datasets_22: {
704
+ const datasets_23: {
684
705
  label: string;
685
706
  data: number[];
686
707
  stack: number;
687
708
  }[];
688
- export { datasets_22 as datasets };
709
+ export { datasets_23 as datasets };
689
710
  }
690
- export { data_22 as data };
711
+ export { data_23 as data };
691
712
  }
692
713
  declare namespace stackedData {
693
- export namespace data_23 {
714
+ export namespace data_24 {
694
715
  export const labels: string[];
695
- const datasets_23: ({
716
+ const datasets_24: ({
696
717
  label: string;
697
718
  data: number[];
698
719
  backgroundColor: string;
@@ -709,9 +730,9 @@ declare namespace stackedData {
709
730
  yAxisID: string;
710
731
  barThickness?: undefined;
711
732
  })[];
712
- export { datasets_23 as datasets };
733
+ export { datasets_24 as datasets };
713
734
  }
714
- export { data_23 as data };
735
+ export { data_24 as data };
715
736
  export namespace options_21 {
716
737
  const title_20: string;
717
738
  export { title_20 as title };
@@ -724,17 +745,17 @@ declare namespace stackedData {
724
745
  export { options_21 as options };
725
746
  }
726
747
  declare namespace waterfallChart {
727
- export namespace data_24 {
748
+ export namespace data_25 {
728
749
  const labels_1: string[];
729
750
  export { labels_1 as labels };
730
- const datasets_24: {
751
+ const datasets_25: {
731
752
  label: string;
732
753
  data: (number | number[])[];
733
754
  backgroundColor: string[];
734
755
  }[];
735
- export { datasets_24 as datasets };
756
+ export { datasets_25 as datasets };
736
757
  }
737
- export { data_24 as data };
758
+ export { data_25 as data };
738
759
  export namespace options_22 {
739
760
  const title_21: string;
740
761
  export { title_21 as title };
@@ -31,6 +31,7 @@ export interface ILegendItem {
31
31
  dataset: TLegendDataset;
32
32
  handleClick: MouseEventHandler<HTMLDivElement>;
33
33
  chartType: ChartType;
34
+ index: number;
34
35
  }
35
36
  export interface ILegendConfig {
36
37
  options: TChartsOption;
@@ -1,3 +1,3 @@
1
1
  import { ILegendItem } from '../legend-interface';
2
- declare const LegendItem: ({ hidden, dataset, handleClick, chartType, }: ILegendItem) => import("react/jsx-runtime").JSX.Element;
2
+ declare const LegendItem: ({ hidden, dataset, handleClick, chartType, index, }: ILegendItem) => import("react/jsx-runtime").JSX.Element;
3
3
  export default LegendItem;
@@ -69,6 +69,13 @@ export namespace WithDatapointsHavingLabel {
69
69
  }
70
70
  export { args_9 as args };
71
71
  }
72
+ export function CustomPointColor(args: any): import("react/jsx-runtime").JSX.Element;
73
+ export namespace CustomPointColor {
74
+ export namespace args_10 {
75
+ export { scatterWithCustomColors as chart };
76
+ }
77
+ export { args_10 as args };
78
+ }
72
79
  import { ScatterChart } from './scatter-chart';
73
80
  declare namespace singleScatterChart {
74
81
  namespace data {
@@ -252,4 +259,20 @@ declare namespace scatterWithDatapointsHavingLabel {
252
259
  }
253
260
  export { options_6 as options };
254
261
  }
262
+ declare namespace scatterWithCustomColors {
263
+ export namespace data_8 {
264
+ export { labels1 as labels };
265
+ const datasets_8: {
266
+ backgroundColor: string;
267
+ borderColor: string;
268
+ label: string;
269
+ data: {
270
+ x: number;
271
+ y: number;
272
+ }[];
273
+ }[];
274
+ export { datasets_8 as datasets };
275
+ }
276
+ export { data_8 as data };
277
+ }
255
278
  declare const labels1: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
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": {