pace-chart-lib 1.0.31 → 1.0.33
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 +28 -2
- package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +0 -1
- package/dist/Components/Charts/Core/Common.types.d.ts +1 -8
- package/dist/Components/Charts/Core/CommonFunctions.d.ts +1 -1
- package/dist/Components/Charts/Core/DefaultProperties.types.d.ts +0 -1
- package/dist/pace-chart-lib.es.js +265 -505
- package/dist/pace-chart-lib.umd.js +265 -505
- package/package.json +1 -1
|
@@ -417,7 +417,33 @@ export declare function setChartTitle(svg: any, formatOptions: TDefaultChartForm
|
|
|
417
417
|
* @returns The appropriate D3 curve function based on the interpolation and smoothing settings.
|
|
418
418
|
*/
|
|
419
419
|
export declare function getCurveType(formatOptions: TDefaultChartFormatOptionsType): d3.CurveFactory;
|
|
420
|
-
|
|
420
|
+
/**
|
|
421
|
+
* @param {TSeries[]} chartData - Array of data series for the chart.
|
|
422
|
+
* @param {any} xScale - D3 scale function for the X axis.
|
|
423
|
+
* @param {any} yScaleLeft - D3 scale function for the left Y axis.
|
|
424
|
+
* @param {any} yScaleRight - D3 scale function for the right Y axis.
|
|
425
|
+
* @param {TMargin} margin - Margin object defining chart margins.
|
|
426
|
+
* @param {any} d3Annotation - D3 annotation library or object.
|
|
427
|
+
* @param {string[]} labelExcludeList - List of labels to exclude from annotations.
|
|
428
|
+
* @param {any[]} individualLabelColor - Array of colors for individual labels.
|
|
429
|
+
* @param {any[]} oldAnnotationList - List of existing annotations to update or remove.
|
|
430
|
+
* @param {TDefaultChartFormatOptionsType} formatOptions - Formatting options for the chart.
|
|
431
|
+
* @param {string} chartType - Type of the chart (e.g., "line", "area").
|
|
432
|
+
* @param {number} height - Total height of the SVG container.
|
|
433
|
+
* @param {number} width - Total width of the SVG container.
|
|
434
|
+
* @param {number} innerWidth - Inner width of the chart area.
|
|
435
|
+
* @param {string[]} dimensionList - List of dimensions present in the chart data.
|
|
436
|
+
* @param {number} innerHeight - Inner height of the chart area.
|
|
437
|
+
* @param {string} widgetId - Unique identifier for the widget/chart instance.
|
|
438
|
+
* @param {any} svg - D3 selection of the SVG element to render annotations.
|
|
439
|
+
* @param {any} xScaleForLegends - D3 scale function for the X axis for legends.
|
|
440
|
+
* @param {number} columnWidth - Column width for the chart.
|
|
441
|
+
* @param {boolean} isSensitivityChart - Flag indicating if the chart is a sensitivity chart.
|
|
442
|
+
* @param {boolean} barChart - Flag indicating if the chart is a barChart chart.
|
|
443
|
+
*
|
|
444
|
+
* @return {void} - This function does not return a value; it updates the SVG with annotations.
|
|
445
|
+
*/
|
|
446
|
+
export declare function commonAnnotations(chartData: TSeries[], xScale: any, yScaleLeft: any, yScaleRight: any, margin: TMargin, d3Annotation: any, labelExcludeList: string[], individualLabelColor: any[], oldAnnotationList: any[], formatOptions: TDefaultChartFormatOptionsType, chartType: string, height: number, width: number, innerWidth: number, dimensionList: string[], innerHeight: number, widgetId: string, svg: any, xScaleForLegends?: any, columnWidth?: number, isReportEditable?: boolean, isSensitivityChart?: boolean, barChart?: boolean): void;
|
|
421
447
|
/**
|
|
422
448
|
* @param {Array} chartData - The main data used to render the chart.
|
|
423
449
|
* @param {Function} xscale - D3 scale function for the x-axis.
|
|
@@ -473,7 +499,7 @@ export declare const dataTablePreCalculation: (formatOptions: TDefaultChartForma
|
|
|
473
499
|
* @param {Function} getBarColor - Function to get bar colors.
|
|
474
500
|
* @param {boolean} isColorScaleApplied - Flag indicating if color scaling is applied.
|
|
475
501
|
* @param {number} dataTableHeight - Total height reserved for the data table.
|
|
476
|
-
* @param {string} chartType - Type of chart (e.g.,
|
|
502
|
+
* @param {string} chartType - Type of chart (e.g., "Line", "stackColumn").
|
|
477
503
|
* @param {TDefaultChartFormatOptionsType} formatOptions - Formatting options for chart and data table.
|
|
478
504
|
* @param {number} yLabel - Space allocated for y-axis labels.
|
|
479
505
|
* @param {number} yTitle - Space allocated for y-axis title.
|
|
@@ -389,7 +389,7 @@ export type TScatterChartProps = {
|
|
|
389
389
|
formatOptions: TDefaultChartFormatOptionsType;
|
|
390
390
|
};
|
|
391
391
|
export declare enum commonColors {
|
|
392
|
-
white = "#
|
|
392
|
+
white = "#FFFFFF",
|
|
393
393
|
black = "#000000",
|
|
394
394
|
transparent = "#FFFFFF00"
|
|
395
395
|
}
|
|
@@ -398,11 +398,4 @@ export declare enum tornadoEntryName {
|
|
|
398
398
|
negative = "Negative",
|
|
399
399
|
default = "defaultEntry"
|
|
400
400
|
}
|
|
401
|
-
export declare enum waterfallKeys {
|
|
402
|
-
total = "Total",
|
|
403
|
-
base = "base",
|
|
404
|
-
dimensionTotal = "dimensionTotal",
|
|
405
|
-
up = "up",
|
|
406
|
-
down = "down"
|
|
407
|
-
}
|
|
408
401
|
export {};
|
|
@@ -67,7 +67,7 @@ export declare function lineMarkers(lines: any, chartData: TSeries[], type: any,
|
|
|
67
67
|
*
|
|
68
68
|
* @return {void} This function modifies the chart's behavior by adding interactivity but does not return a value.
|
|
69
69
|
*/
|
|
70
|
-
export declare function onHoverMarkerForAreaChartFamily(formatOptions: TDefaultChartFormatOptionsType, areas: any, focus: any, filteredDimension: string[], lineData: any[], xScale: any, yScaleLeft: any, chartType: string
|
|
70
|
+
export declare function onHoverMarkerForAreaChartFamily(formatOptions: TDefaultChartFormatOptionsType, areas: any, focus: any, filteredDimension: string[], lineData: any[], xScale: any, yScaleLeft: any, chartType: string): void;
|
|
71
71
|
/**
|
|
72
72
|
* Function to calculate actual height, width of content primarily used for margin calculations
|
|
73
73
|
* @returns { width: 0, height: 0, rotatedWidth: 0, rotatedHeight: 0 }
|
|
@@ -566,7 +566,6 @@ export declare const defaultChartFormatOptions: {
|
|
|
566
566
|
dataTableDecimalPrecision: string;
|
|
567
567
|
dataTableDisplayUnits: string;
|
|
568
568
|
dataTableLabelColor: commonColors;
|
|
569
|
-
dataTableAxisLabel: boolean;
|
|
570
569
|
};
|
|
571
570
|
dataTableOuterBorder: {
|
|
572
571
|
borderButtonVisibility: boolean;
|