@oliasoft-open-source/charts-library 5.0.8-beta-1 → 5.1.0-beta-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.
@@ -51,8 +51,11 @@ export interface ICommonAnnotationsData {
51
51
  id?: string;
52
52
  adjustScaleRange: boolean;
53
53
  annotationAxis: 'x' | 'y';
54
+ rotation: number;
54
55
  color: string;
55
56
  endValue: number;
57
+ borderWidth?: number;
58
+ backgroundColor?: string;
56
59
  label: string;
57
60
  labelConfig?: Record<string, any>;
58
61
  type: AnnotationType;
@@ -67,6 +67,7 @@ declare const getAnnotation: ({ showAnnotations, annotationsData, }: IGetAnnotat
67
67
  displayDragCoordinates: boolean;
68
68
  hideLegend?: boolean;
69
69
  annotationAxis: "x" | "y";
70
+ rotation: number;
70
71
  color: string;
71
72
  endValue: number;
72
73
  labelConfig?: Record<string, any>;
@@ -0,0 +1,5 @@
1
+ import { Chart } from 'chart.js';
2
+ export declare const ellipsisAnnotationPlugin: {
3
+ id: string;
4
+ afterDatasetsDraw(chart: Chart<"scatter">): void;
5
+ };
@@ -1 +1 @@
1
- export function getAxesDataFromMetasets(generatedDatasets: any, scalesKeys: any, annotationsData: any): any;
1
+ export function getAxesDataFromMetasets(chartRef: Object, scalesKeys: any[], annotationsData: Object): Object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/charts-library",
3
- "version": "5.0.8-beta-1",
3
+ "version": "5.1.0-beta-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": {
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@fontsource/noto-sans": "^5.2.6",
47
- "chart.js": "^4.4.9",
47
+ "chart.js": "^4.4.8",
48
48
  "chartjs-plugin-annotation": "^3.1.0",
49
49
  "chartjs-plugin-datalabels": "^2.2.0",
50
50
  "chartjs-plugin-dragdata": "2.2.5",
@@ -1,2 +0,0 @@
1
- import { Plugin } from 'chart.js';
2
- export declare const tooltipNullGuard: Plugin<'line'>;