pace-chart-lib 1.0.81 → 1.0.83

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.
@@ -2,6 +2,15 @@ import * as d3 from "d3";
2
2
  import { TData, TSeries } from "../Core/Common.types";
3
3
  import { TDefaultChartFormatOptionsType } from "../Core/DefaultProperties.types";
4
4
  import { TChartJSON, TMargin } from "./ChartsWithAxisTypes.types";
5
+ export declare const yAxisTicksModeOptions: {
6
+ auto: string;
7
+ custom: string;
8
+ };
9
+ /**
10
+ * Generates exactly `count` evenly-spaced tick values between min and max (linear interpolation),
11
+ * used for the "Custom" Y-Axis Ticks mode so the chart always renders precisely the requested count.
12
+ */
13
+ export declare function generateEvenlySpacedTicks(min: number, max: number, count: number | string): number[];
5
14
  /**
6
15
  * Dynamically calculates the width and height of a text element rendered with given styles.
7
16
  * Optionally supports text rotation and fixed width wrapping.
@@ -332,6 +341,16 @@ export declare function initYaxisRight(gTag: any, formatOptions: TDefaultChartFo
332
341
  * @param {number} innerWidth - Available width in pixels for the axis.
333
342
  * @returns {string[]} Filtered list of dimension labels for the X-axis.
334
343
  */
344
+ /**
345
+ * Picks exactly `count` evenly-spaced category labels out of `dimensionList` (by index),
346
+ * for the "Custom" X-Axis Ticks mode on categorical (dimension-based) X axes.
347
+ */
348
+ export declare function generateEvenlySpacedCategoryTicks(dimensionList: string[], count: number | string): string[];
349
+ /**
350
+ * Resolves which X-axis tick labels to display for categorical (dimension-based) axes:
351
+ * either the existing pixel-width auto-thinning, or exactly N evenly-picked labels in Custom mode.
352
+ */
353
+ export declare function resolveXaxisTickValues(dimensionList: string[], innerWidth: number, formatOptions: TDefaultChartFormatOptionsType): string[];
335
354
  export declare function responsiveXaxisLabel(dimensionList: string[], innerWidth: number): any[];
336
355
  /**
337
356
  * Initializes and renders the X axis with responsive labels on the chart.
@@ -47,6 +47,8 @@ export declare const defaultChartFormatOptions: {
47
47
  xAxisMinText: string;
48
48
  xAxisMaxText: string;
49
49
  xAxisIntervalText: string;
50
+ xAxisTicksMode: string;
51
+ xAxisTicksCount: string;
50
52
  hideZeroValues: boolean;
51
53
  xAxisSortBy: string;
52
54
  customSort: any[];
@@ -96,6 +98,8 @@ export declare const defaultChartFormatOptions: {
96
98
  yAxisMinText: string;
97
99
  yAxisMaxText: string;
98
100
  yAxisIntervalText: string;
101
+ yAxisTicksMode: string;
102
+ yAxisTicksCount: string;
99
103
  hideZeroValues: boolean;
100
104
  yAxisSortBy: string;
101
105
  customSort: any[];