@sproutsocial/seeds-react-data-viz 0.5.3 → 0.6.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.
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -356,6 +356,13 @@ type TypeLineChartProps = Readonly<{
|
|
|
356
356
|
tooltipClickLabel?: ReactNode;
|
|
357
357
|
timeFormat?: TypeChartTimeFormat;
|
|
358
358
|
xAnnotations?: TypeChartXAnnotations;
|
|
359
|
+
xAxisLabelFormatter?: (params: {
|
|
360
|
+
textLocale: Intl.LocalesArgument;
|
|
361
|
+
tickPositions: number[];
|
|
362
|
+
unitName: string;
|
|
363
|
+
value: string | number;
|
|
364
|
+
timeFormat?: string;
|
|
365
|
+
}) => string;
|
|
359
366
|
}>;
|
|
360
367
|
declare const LineChart: react.NamedExoticComponent<Readonly<{
|
|
361
368
|
data: ReadonlyArray<Readonly<{
|
|
@@ -381,6 +388,13 @@ declare const LineChart: react.NamedExoticComponent<Readonly<{
|
|
|
381
388
|
tooltipClickLabel?: ReactNode;
|
|
382
389
|
timeFormat?: TypeChartTimeFormat;
|
|
383
390
|
xAnnotations?: TypeChartXAnnotations;
|
|
391
|
+
xAxisLabelFormatter?: (params: {
|
|
392
|
+
textLocale: Intl.LocalesArgument;
|
|
393
|
+
tickPositions: number[];
|
|
394
|
+
unitName: string;
|
|
395
|
+
value: string | number;
|
|
396
|
+
timeFormat?: string;
|
|
397
|
+
}) => string;
|
|
384
398
|
}>>;
|
|
385
399
|
|
|
386
400
|
declare const VerticalBarChart: react.NamedExoticComponent<Readonly<{
|
package/dist/index.d.ts
CHANGED
|
@@ -356,6 +356,13 @@ type TypeLineChartProps = Readonly<{
|
|
|
356
356
|
tooltipClickLabel?: ReactNode;
|
|
357
357
|
timeFormat?: TypeChartTimeFormat;
|
|
358
358
|
xAnnotations?: TypeChartXAnnotations;
|
|
359
|
+
xAxisLabelFormatter?: (params: {
|
|
360
|
+
textLocale: Intl.LocalesArgument;
|
|
361
|
+
tickPositions: number[];
|
|
362
|
+
unitName: string;
|
|
363
|
+
value: string | number;
|
|
364
|
+
timeFormat?: string;
|
|
365
|
+
}) => string;
|
|
359
366
|
}>;
|
|
360
367
|
declare const LineChart: react.NamedExoticComponent<Readonly<{
|
|
361
368
|
data: ReadonlyArray<Readonly<{
|
|
@@ -381,6 +388,13 @@ declare const LineChart: react.NamedExoticComponent<Readonly<{
|
|
|
381
388
|
tooltipClickLabel?: ReactNode;
|
|
382
389
|
timeFormat?: TypeChartTimeFormat;
|
|
383
390
|
xAnnotations?: TypeChartXAnnotations;
|
|
391
|
+
xAxisLabelFormatter?: (params: {
|
|
392
|
+
textLocale: Intl.LocalesArgument;
|
|
393
|
+
tickPositions: number[];
|
|
394
|
+
unitName: string;
|
|
395
|
+
value: string | number;
|
|
396
|
+
timeFormat?: string;
|
|
397
|
+
}) => string;
|
|
384
398
|
}>>;
|
|
385
399
|
|
|
386
400
|
declare const VerticalBarChart: react.NamedExoticComponent<Readonly<{
|
package/dist/index.js
CHANGED
|
@@ -2161,7 +2161,8 @@ var LineChartWithData = (0, import_react25.memo)(function LineChartWithData2({
|
|
|
2161
2161
|
onClick,
|
|
2162
2162
|
tooltipClickLabel,
|
|
2163
2163
|
timeFormat = "12",
|
|
2164
|
-
xAnnotations
|
|
2164
|
+
xAnnotations,
|
|
2165
|
+
xAxisLabelFormatter: xAxisLabelFormatter2
|
|
2165
2166
|
}) {
|
|
2166
2167
|
const { options, chart, callback } = useTimeSeriesChartOptions({
|
|
2167
2168
|
currency,
|
|
@@ -2174,7 +2175,8 @@ var LineChartWithData = (0, import_react25.memo)(function LineChartWithData2({
|
|
|
2174
2175
|
yAxisLabelFormatter: yAxisLabelFormatter2,
|
|
2175
2176
|
onClick,
|
|
2176
2177
|
timeFormat,
|
|
2177
|
-
xAnnotations
|
|
2178
|
+
xAnnotations,
|
|
2179
|
+
xAxisLabelFormatter: xAxisLabelFormatter2
|
|
2178
2180
|
});
|
|
2179
2181
|
const { colors, patterns } = data.reduce(
|
|
2180
2182
|
(acc, item, index) => {
|