react-chartjs-2
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import type { ForwardedRef, ChartProps } from './types'; | ||
@@ -6,1 +5,2 @@ export declare const Chart: <TType extends keyof import("chart.js").ChartTypeRegistry = keyof import("chart.js").ChartTypeRegistry, TData = import("chart.js/types/utils").DistributiveArray<import("chart.js").ChartTypeRegistry[TType]["defaultDataPoint"]>, TLabel = unknown>(props: ChartProps<TType, TData, TLabel> & { | ||
}) => JSX.Element; | ||
//# sourceMappingURL=chart.d.ts.map |
@@ -5,1 +5,2 @@ export type { ChartProps } from './types'; | ||
export { getDatasetAtEvent, getElementAtEvent, getElementsAtEvent, } from './utils'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import type { ChartProps, ChartJSOrUndefined } from './types'; | ||
@@ -27,1 +26,2 @@ export declare const Line: <TData = (number | import("chart.js").ScatterDataPoint | null)[], TLabel = unknown>(props: Omit<ChartProps<"line", TData, TLabel>, "type"> & { | ||
}) => JSX.Element; | ||
//# sourceMappingURL=typedCharts.d.ts.map |
@@ -27,3 +27,3 @@ import type { CanvasHTMLAttributes, MutableRefObject, ReactNode } from 'react'; | ||
/** | ||
* Teardown and redraw chart on everu update | ||
* Teardown and redraw chart on every update | ||
* @default false | ||
@@ -54,1 +54,2 @@ */ | ||
}) => JSX.Element; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -30,1 +30,2 @@ import type { MouseEvent } from 'react'; | ||
export declare function getElementsAtEvent(chart: Chart, event: MouseEvent<HTMLCanvasElement>): import("chart.js").InteractionItem[]; | ||
//# sourceMappingURL=utils.d.ts.map |
{ | ||
"name": "react-chartjs-2", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "React components for Chart.js", | ||
@@ -15,10 +15,2 @@ "author": "Jeremy Ayerst", | ||
}, | ||
"sideEffects": false, | ||
"main": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts", | ||
"publishConfig": { | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"directory": "package" | ||
}, | ||
"keywords": [ | ||
@@ -32,5 +24,7 @@ "chart", | ||
], | ||
"peerDependencies": { | ||
"chart.js": "^3.5.0", | ||
"react": "^16.8.0 || ^17.0.0" | ||
"sideEffects": false, | ||
"types": "./dist/index.d.ts", | ||
"main": "./dist/index.cjs", | ||
"publishConfig": { | ||
"directory": "package" | ||
}, | ||
@@ -40,5 +34,9 @@ "files": [ | ||
], | ||
"peerDependencies": { | ||
"chart.js": "^3.5.0", | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0" | ||
}, | ||
"readme": "", | ||
"scripts": {}, | ||
"module": "./dist/index.js" | ||
"module": "./dist/index.js", | ||
"scripts": {} | ||
} |
@@ -46,3 +46,7 @@ # react-chartjs-2 | ||
```bash | ||
npm install --save react-chartjs-2 chart.js | ||
pnpm add react-chartjs-2 chart.js | ||
# or | ||
yarn add react-chartjs-2 chart.js | ||
# or | ||
npm i react-chartjs-2 chart.js | ||
``` | ||
@@ -62,11 +66,15 @@ | ||
# Docs | ||
<br /> | ||
- [Migration to v4](https://react-chartjs-2.netlify.app/docs/migration-to-v4) | ||
- [Working with datasets](https://react-chartjs-2.netlify.app/docs/working-with-datasets) | ||
- [Working with events](https://react-chartjs-2.netlify.app/docs/working-with-events) | ||
- [FAQ](https://react-chartjs-2.netlify.app/faq) | ||
- [Components](https://react-chartjs-2.netlify.app/components) | ||
- [Examples](https://react-chartjs-2.netlify.app/examples) | ||
[![supported by Cube](https://user-images.githubusercontent.com/986756/154330861-d79ab8ec-aacb-4af8-9e17-1b28f1eccb01.svg)](https://cube.dev/?ref=eco-react-chartjs) | ||
## Docs | ||
- [Migration to v4](https://react-chartjs-2.js.org/docs/migration-to-v4) | ||
- [Working with datasets](https://react-chartjs-2.js.org/docs/working-with-datasets) | ||
- [Working with events](https://react-chartjs-2.js.org/docs/working-with-events) | ||
- [FAQ](https://react-chartjs-2.js.org/faq) | ||
- [Components](https://react-chartjs-2.js.org/components) | ||
- [Examples](https://react-chartjs-2.js.org/examples) | ||
## License | ||
@@ -73,0 +81,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54419
18
82
462