pace-chart-lib 1.0.21 → 1.0.23

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.
@@ -1,5 +1,5 @@
1
1
  import * as d3 from "d3";
2
- import { TSeries } from "../Core/Common.types";
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
5
  /**
@@ -369,23 +369,6 @@ export declare const setDateFormats: (format: string, dimensionmarks: string[])
369
369
  * @returns {void}
370
370
  */
371
371
  export declare function drawSeriesLabels(formatOptions: TDefaultChartFormatOptionsType, gTag: any, seriesLabels: string[]): void;
372
- /**
373
- * Sets the X-axis title on the SVG chart, adjusting visibility, positioning, and styling based on format options and chart type.
374
- *
375
- * @param {TDefaultChartFormatOptionsType} formatOptions - Chart format options including axis title settings and visibility.
376
- * @param {boolean} barChart - Flag indicating if the chart is a bar chart.
377
- * @param {any} svg - D3 selection of the SVG element where the X-axis title will be appended.
378
- * @param {TMargin} margin - Margin object containing top, left, right, and bottom margins.
379
- * @param {number} xLabel - Height offset for the X-axis label.
380
- * @param {number} height - Total height of the SVG/chart container.
381
- * @param {number} xTitle - Height allocated for the X-axis title element.
382
- * @param {string} chartType - The type of chart (e.g., "bar", "line", etc.).
383
- * @param {number} yLabel - Y-axis label offset (used for positioning in some cases).
384
- * @param {number} innerWidth - Inner width of the static SVG container.
385
- * @param {number} innerHeight - Height of the inner chart area (excluding margins).
386
- *
387
- * @returns {any} The modified SVG selection with the appended X-axis title element.
388
- */
389
372
  export declare function setXaxistitle(formatOptions: TDefaultChartFormatOptionsType, barChart: boolean, svg: any, margin: TMargin, xLabel: number, height: number, xTitle: number, chartType: string, yLabel: number, innerWidth: number, innerHeight: number): void;
390
373
  /**
391
374
  * Adds a Y-axis title to the SVG chart, handling visibility, positioning, rotation, and styling based on format options.
@@ -665,3 +648,5 @@ export declare function calculateVisibleBars(innerWidth: number, formatOptions:
665
648
  };
666
649
  export declare const clamp: (v: any, a: any, b: any) => number;
667
650
  export declare const horizontalScrollBar: (seriesData: any, height: any, width: any, svg: any, margin: any, innerWidth: any, scrollbarVisible: any, visibleBars: any, chartJSON: any, scrollPosition: any, isStackedChart: any, setAndUpdateChartData: any, isBarChart?: boolean) => void;
651
+ export declare function addTotalValue(totalValueMap: Map<string, number>, xScale: any, yScale: any, margin: TMargin, d3Annotation: any, oldAnnotationList: any[], formatOptions: TDefaultChartFormatOptionsType, chartType: string, height: number, width: number, svg: any, isReportEditable?: boolean, isBarChart?: boolean): void;
652
+ export declare function createTotalMeasureValueMap(data: TData, totalValueMap: Map<string, number>, filteredDimension: string[]): void;
@@ -41,7 +41,11 @@ export declare enum chartTypes {
41
41
  OrganizationChart = "OrganizationChart",
42
42
  PyramidChart = "PyramidChart",
43
43
  ProgressChart = "ProgressChart",
44
- RadialBarChart = "RadialBarChart"
44
+ RadialBarChart = "RadialBarChart",
45
+ CombinationLine = "CombinationLine",
46
+ CombinationArea = "CombinationArea",
47
+ CombinationStackArea = "CombinationStackArea",
48
+ TornadoDefaultEntry = "defaultEntry"
45
49
  }
46
50
  export type TChartProps = {
47
51
  data: TData;
@@ -13,10 +13,21 @@ export declare enum connectedStyle {
13
13
  "dashed" = 7
14
14
  }
15
15
  export declare enum staticLineStyle {
16
- "solid" = "solid",
17
- "dotted" = "dotted",
18
- "dashed" = "dashed"
16
+ "none" = "None",
17
+ "solid" = "Solid",
18
+ "dotted" = "Dotted",
19
+ "dashed" = "Dashed"
19
20
  }
21
+ export declare enum strokeLineCap {
22
+ "butt" = "butt",
23
+ "round" = "round",
24
+ "square" = "square"
25
+ }
26
+ export declare enum axisTypes {
27
+ "primary" = "Primary",
28
+ "secondary" = "Secondary"
29
+ }
30
+ export declare const strokeDashValues = "20,10,5,5,5,10";
20
31
  import { defaultChartFormatOptions } from "./DefaultProperties.types";
21
32
  import * as d3 from "d3";
22
33
  import * as d3Annotation from "d3-svg-annotation";
@@ -267,11 +278,16 @@ export declare enum horizontalLegendAllignment {
267
278
  end = "End"
268
279
  }
269
280
  export type TSeries = {
281
+ legendUniqueId: any;
282
+ Type: any;
283
+ Axis: any;
284
+ AxisDataList: any;
270
285
  legend: string;
271
286
  data: TDataPoint[];
272
287
  properties?: TLegendEntry;
273
288
  };
274
289
  export type TData = {
290
+ IsadvanceanalyticsChart?: any;
275
291
  ChartData: TSeries[];
276
292
  DimensionList: string[];
277
293
  LegendList: object[];
@@ -23,7 +23,7 @@ export declare function getRandomColor(): {
23
23
  *
24
24
  * @return {void} - This function does not return anything. It updates the SVG by rendering legends.
25
25
  */
26
- export declare function drawLegends(height: number, svg: any, maxLegendDimensions: number[], chartTitleHeight: number, width: number, legendMargin: number, formatOptions: TDefaultChartFormatOptionsType, inputSeries: TSeries[], chartId: string, legendShape: string, chartType?: string): void;
26
+ export declare function drawLegends(height: number, svg: any, maxLegendDimensions: number[], chartTitleHeight: number, width: number, legendMargin: number, formatOptions: TDefaultChartFormatOptionsType, seriesData: TSeries[], chartId: string, legendShape: string, chartType?: string): void;
27
27
  /**
28
28
  * @param {string[]} list - Array of legend strings.
29
29
  * @param {TDefaultChartFormatOptionsType} formatOptions - Chart formatting options including legend font size and family.
@@ -51,7 +51,7 @@ export declare function calculateMaxLegendWidth(list: string[], formatOptions: T
51
51
  *
52
52
  * @returns {void} This function does not return a value; it appends and updates SVG marker elements in the DOM.
53
53
  */
54
- export declare function lineMarkers(lines: any, chartData: TSeries[], type: string, xScale: any, yScale: any, yScaleRight: any, tooltipHandle: any, formatOptions: TDefaultChartFormatOptionsType, chartJSON: TChartJSON, secondaryCustomYaxisMaxValue: number, secondaryCustomYaxisMinValue: number, customYaxisMinValue: number, customYaxisMaxValue: number, isNormalizedChart: boolean): void;
54
+ export declare function lineMarkers(lines: any, chartData: TSeries[], type: any, xScale: any, yScale: any, yScaleRight: any, tooltipHandle: any, formatOptions: TDefaultChartFormatOptionsType, chartJSON: TChartJSON, secondaryCustomYaxisMaxValue: number, secondaryCustomYaxisMinValue: number, customYaxisMinValue: number, customYaxisMaxValue: number, isNormalizedChart: boolean): void;
55
55
  /**
56
56
  * Attaches hover interactions to the area chart elements to show markers and tooltips
57
57
  * when the user moves the mouse over the chart.
@@ -1,8 +1,9 @@
1
+ import { axisTypes } from "./Common.types";
1
2
  export declare const chartProperties: {
2
3
  color: string;
3
4
  name: string;
4
5
  type: string;
5
- axis: string;
6
+ axis: axisTypes;
6
7
  alias: string;
7
8
  fontSize: number;
8
9
  fontStyle: any[];