@graphysdk/react-renderer 1.9.0-beta.1789573335651 → 1.9.0-beta.1789582064893
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/README.md +2 -2
- package/dist/editable.cjs +1 -1
- package/dist/editable.d.ts +6 -6
- package/dist/editable.mjs +19 -19
- package/dist/{history-chords-FqjF3hMF.js → history-chords-S1G_f-FU.js} +1 -1
- package/dist/{history-chords-CSMD3xY9.cjs → history-chords-vcFCt26X.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.mjs +62 -62
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -20,11 +20,11 @@ Requires React 19. There is no stylesheet to import.
|
|
|
20
20
|
import { GraphProvider, GraphRenderer } from '@graphysdk/react-renderer';
|
|
21
21
|
import { createSpec, pipe, geom, scale } from '@graphysdk/viz-engine';
|
|
22
22
|
|
|
23
|
-
const
|
|
23
|
+
const spec = pipe(createSpec({ x: 'month', y: 'revenue' }), geom.bar(), scale.x(), scale.y());
|
|
24
24
|
|
|
25
25
|
export function Chart({ data }) {
|
|
26
26
|
return (
|
|
27
|
-
<GraphProvider data={data}
|
|
27
|
+
<GraphProvider data={data} spec={spec}>
|
|
28
28
|
<GraphRenderer />
|
|
29
29
|
</GraphProvider>
|
|
30
30
|
);
|