@factorialco/f0-react 7.31.0 → 7.32.0

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.
@@ -2881,6 +2881,18 @@ declare interface ChatDashboardScatterChartConfig {
2881
2881
  xAxisName?: string;
2882
2882
  /** What the Y measure is, e.g. "tenure" — labels the y row in the tooltip */
2883
2883
  yAxisName?: string;
2884
+ /** Pin the X axis bounds, e.g. 0 and 100 for a percentage */
2885
+ xAxisMin?: number;
2886
+ xAxisMax?: number;
2887
+ /** Pin the Y axis bounds, e.g. 1 and 5 for a rating */
2888
+ yAxisMin?: number;
2889
+ yAxisMax?: number;
2890
+ /** Print each point's label next to it. @default false */
2891
+ showPointLabels?: boolean;
2892
+ /** Merge points on nearly the same spot; hover lists them. @default false */
2893
+ groupNearbyPoints?: boolean;
2894
+ /** Render the axis names as axis titles. @default false */
2895
+ showAxisNames?: boolean;
2884
2896
  /** Formats the Y measure */
2885
2897
  valueFormat?: FormatPreset;
2886
2898
  /** Formats the X measure, which is a second measure rather than a category */
package/dist/f0.d.ts CHANGED
@@ -3283,6 +3283,18 @@ export declare interface ChatDashboardScatterChartConfig {
3283
3283
  xAxisName?: string;
3284
3284
  /** What the Y measure is, e.g. "tenure" — labels the y row in the tooltip */
3285
3285
  yAxisName?: string;
3286
+ /** Pin the X axis bounds, e.g. 0 and 100 for a percentage */
3287
+ xAxisMin?: number;
3288
+ xAxisMax?: number;
3289
+ /** Pin the Y axis bounds, e.g. 1 and 5 for a rating */
3290
+ yAxisMin?: number;
3291
+ yAxisMax?: number;
3292
+ /** Print each point's label next to it. @default false */
3293
+ showPointLabels?: boolean;
3294
+ /** Merge points on nearly the same spot; hover lists them. @default false */
3295
+ groupNearbyPoints?: boolean;
3296
+ /** Render the axis names as axis titles. @default false */
3297
+ showAxisNames?: boolean;
3286
3298
  /** Formats the Y measure */
3287
3299
  valueFormat?: FormatPreset;
3288
3300
  /** Formats the X measure, which is a second measure rather than a category */
@@ -10308,6 +10320,30 @@ export declare interface F0DataChartScatterProps extends F0DataChartCommonProps,
10308
10320
  xAxisName?: string;
10309
10321
  /** What the Y measure is, e.g. "tenure". Labels the y row in the tooltip. */
10310
10322
  yAxisName?: string;
10323
+ /**
10324
+ * Pin the X axis bounds instead of letting ECharts round them to nice values,
10325
+ * e.g. `0`–`100` for a percentage. Either bound can be set on its own.
10326
+ */
10327
+ xAxisMin?: number;
10328
+ /** Upper X axis bound. See {@link xAxisMin}. */
10329
+ xAxisMax?: number;
10330
+ /** Lower Y axis bound, e.g. the bottom of a rating scale. */
10331
+ yAxisMin?: number;
10332
+ /** Upper Y axis bound, e.g. the top of a rating scale. */
10333
+ yAxisMax?: number;
10334
+ /**
10335
+ * Print each point's `label` next to it, the way bar charts print their
10336
+ * values, so a small labelled cloud reads without hovering. Overlapping labels
10337
+ * are hidden. @default false
10338
+ */
10339
+ showPointLabels?: boolean;
10340
+ /**
10341
+ * Merge points that land on nearly the same spot into one dot. The merged dot
10342
+ * prints no label; hovering it lists every point it holds. @default false
10343
+ */
10344
+ groupNearbyPoints?: boolean;
10345
+ /** Render `xAxisName`/`yAxisName` as axis titles, not only in the tooltip. @default false */
10346
+ showAxisNames?: boolean;
10311
10347
  /** Escape hatch: raw ECharts options merged (shallow) on top of the generated config */
10312
10348
  echartsOptions?: Partial<echarts_2.EChartsOption>;
10313
10349
  }
@@ -19105,6 +19141,18 @@ export declare interface ScatterChartConfig {
19105
19141
  xAxisName?: string;
19106
19142
  /** What the Y measure is, e.g. "tenure" — labels the y row in the tooltip */
19107
19143
  yAxisName?: string;
19144
+ /** Pin the X axis bounds, e.g. 0 and 100 for a percentage */
19145
+ xAxisMin?: number;
19146
+ xAxisMax?: number;
19147
+ /** Pin the Y axis bounds, e.g. 1 and 5 for a rating */
19148
+ yAxisMin?: number;
19149
+ yAxisMax?: number;
19150
+ /** Print each point's label next to it. @default false */
19151
+ showPointLabels?: boolean;
19152
+ /** Merge points on nearly the same spot; hover lists them. @default false */
19153
+ groupNearbyPoints?: boolean;
19154
+ /** Render the axis names as axis titles. @default false */
19155
+ showAxisNames?: boolean;
19108
19156
  }
19109
19157
 
19110
19158
  /** Skeleton for scatter chart content area — points with no connecting path. */