pace-chart-lib 1.0.72 → 1.0.73
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/Components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +15 -4
- package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +4 -1
- package/dist/Components/Charts/Core/Common.types.d.ts +6 -1
- package/dist/pace-chart-lib.es.js +35386 -73997
- package/dist/pace-chart-lib.umd.js +180 -74670
- package/package.json +13 -14
|
@@ -116,6 +116,9 @@ export declare const firstFunctionBeforeRender: (svgRef: React.MutableRefObject<
|
|
|
116
116
|
width: number;
|
|
117
117
|
height: number;
|
|
118
118
|
};
|
|
119
|
+
export declare const conditionallyModifyFormatOptions: (formatOptions: TDefaultChartFormatOptionsType, seriesData: TSeries[], dataTableData: TSeries[]) => {
|
|
120
|
+
formatOptions: TDefaultChartFormatOptionsType;
|
|
121
|
+
};
|
|
119
122
|
/**
|
|
120
123
|
* adds non defined properties from `defaults` to `target` to avoid further checks for undefined values
|
|
121
124
|
* @param defaults -> Object which contains default properties
|
|
@@ -501,13 +504,21 @@ export declare function addDataTable(isFitChart: boolean, svg: any, currentTag:
|
|
|
501
504
|
/**
|
|
502
505
|
* Determines the CSS border style property (width, style, or color) for a data table cell.
|
|
503
506
|
*
|
|
507
|
+
* Each cell resolves four independent sides — [top, right, bottom, left] — based on its role
|
|
508
|
+
* in the table (column header, legend column, or data cell) and the three border toggles
|
|
509
|
+
* (outer border, inner-horizontal, inner-vertical). The convention is:
|
|
510
|
+
* - the header row owns its top edge + the divider beneath it;
|
|
511
|
+
* - the legend column owns the table's left edge;
|
|
512
|
+
* - every cell draws its own right + bottom divider (so dividers are never doubled);
|
|
513
|
+
* - cells on the table boundary use the outer border for that edge.
|
|
514
|
+
*
|
|
504
515
|
* @param {TDefaultChartFormatOptionsType} formatOptions - Chart formatting options containing border settings.
|
|
505
|
-
* @param {number} position -
|
|
506
|
-
* @param {number} currentCellIndex -
|
|
516
|
+
* @param {number} position - Row index (or column index when `type` is set / header context).
|
|
517
|
+
* @param {number} currentCellIndex - Column index, or `undefined` for the legend column.
|
|
507
518
|
* @param {number} totalDimensionCount - Total number of dimensions (columns).
|
|
508
519
|
* @param {number} legendsCount - Total number of legend entries (rows).
|
|
509
|
-
* @param {string} functionType -
|
|
510
|
-
* @param {string} [type] - Optional
|
|
520
|
+
* @param {string} functionType - Which CSS property to return ("width", "style", or "color").
|
|
521
|
+
* @param {string} [type] - Optional border context, e.g. "colHeaders" for column headers.
|
|
511
522
|
*
|
|
512
523
|
* @returns {string} - The CSS value for the requested border property.
|
|
513
524
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TDefaultChartFormatOptionsType, TLegendEntry, TPieOfPieSeries, TSeries } from "../Core/Common.types";
|
|
2
|
-
import type { TVfxOnElementClick } from "../Core/VfxInteraction";
|
|
2
|
+
import type { TVfxOnElementClick, TVfxTooltipFormatter } from "../Core/VfxInteraction";
|
|
3
3
|
export interface IChartProps {
|
|
4
4
|
chartId: string;
|
|
5
5
|
data: {
|
|
@@ -13,6 +13,7 @@ export interface IChartProps {
|
|
|
13
13
|
addLocalFilterFromLib?: (clickedLegendData: any) => void;
|
|
14
14
|
onElementClick?: TVfxOnElementClick;
|
|
15
15
|
vfxPickModeActive?: boolean;
|
|
16
|
+
tooltipFormatter?: TVfxTooltipFormatter;
|
|
16
17
|
}
|
|
17
18
|
export interface IPieofPieChartProps {
|
|
18
19
|
chartId: string;
|
|
@@ -21,6 +22,7 @@ export interface IPieofPieChartProps {
|
|
|
21
22
|
data: TPieOfPieSeries[];
|
|
22
23
|
formatOptions: TDefaultChartFormatOptionsType;
|
|
23
24
|
legendProperties: TLegendEntry[];
|
|
25
|
+
tooltipFormatter?: TVfxTooltipFormatter;
|
|
24
26
|
}
|
|
25
27
|
export interface IVennChartProps {
|
|
26
28
|
chartId: string;
|
|
@@ -47,6 +49,7 @@ export type TSankeyChartProps = {
|
|
|
47
49
|
formatOptions: TDefaultChartFormatOptionsType;
|
|
48
50
|
onElementClick?: TVfxOnElementClick;
|
|
49
51
|
vfxPickModeActive?: boolean;
|
|
52
|
+
tooltipFormatter?: TVfxTooltipFormatter;
|
|
50
53
|
};
|
|
51
54
|
export type TNodePairs = {
|
|
52
55
|
source: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TVfxOnElementClick } from "./VfxInteraction";
|
|
1
|
+
import type { TVfxOnElementClick, TVfxTooltipFormatter } from "./VfxInteraction";
|
|
2
2
|
export declare enum staticLegendShape {
|
|
3
3
|
rectangle = "rectangle",
|
|
4
4
|
circle = "circle",
|
|
@@ -138,6 +138,7 @@ export type TLegendEntry = {
|
|
|
138
138
|
tooltipMeasure?: number;
|
|
139
139
|
themeColor?: string;
|
|
140
140
|
lableFontColor?: string;
|
|
141
|
+
showInDataTable?: boolean;
|
|
141
142
|
};
|
|
142
143
|
export declare const ConnecterCurve: {
|
|
143
144
|
"1": string;
|
|
@@ -298,6 +299,7 @@ export type TData = {
|
|
|
298
299
|
ChartData: TSeries[];
|
|
299
300
|
DimensionList: string[];
|
|
300
301
|
LegendList: any[];
|
|
302
|
+
DataTableData?: any[];
|
|
301
303
|
};
|
|
302
304
|
export type TDataPoint = {
|
|
303
305
|
lineStyle: string;
|
|
@@ -376,6 +378,7 @@ export type TBubbleChartProps = {
|
|
|
376
378
|
addLocalFilterFromLib?: (clickedLegendData: any) => void;
|
|
377
379
|
onElementClick?: TVfxOnElementClick;
|
|
378
380
|
vfxPickModeActive?: boolean;
|
|
381
|
+
tooltipFormatter?: TVfxTooltipFormatter;
|
|
379
382
|
};
|
|
380
383
|
export declare const referenceLineTypes: {
|
|
381
384
|
None: string;
|
|
@@ -393,12 +396,14 @@ export type TScatterChartProps = {
|
|
|
393
396
|
formatOptions: TDefaultChartFormatOptionsType;
|
|
394
397
|
onElementClick?: TVfxOnElementClick;
|
|
395
398
|
vfxPickModeActive?: boolean;
|
|
399
|
+
tooltipFormatter?: TVfxTooltipFormatter;
|
|
396
400
|
};
|
|
397
401
|
export declare enum commonColors {
|
|
398
402
|
white = "#ffffff",
|
|
399
403
|
black = "#000000",
|
|
400
404
|
transparent = "#FFFFFF00"
|
|
401
405
|
}
|
|
406
|
+
export declare const defaultFontFamily = "Calibri";
|
|
402
407
|
export declare enum tornadoEntryName {
|
|
403
408
|
positive = "Positive",
|
|
404
409
|
negative = "Negative",
|