pace-chart-lib 1.0.2 → 1.0.4
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 → Components}/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +76 -38
- package/dist/{components → Components}/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +4 -2
- package/dist/{components → Components}/Charts/Core/CommonFunctions.d.ts +3 -1
- package/dist/{components → Components}/Charts/Core/DefaultProperties.types.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/pace-chart-lib.es.js +54619 -0
- package/dist/pace-chart-lib.umd.js +54622 -0
- package/dist/vite.svg +1 -0
- package/package.json +1 -1
- package/dist/Services/ErrorLog.js +0 -3
- package/dist/components/Charts/ChartsWithAxis/AreaFamily/AreaChart.js +0 -496
- package/dist/components/Charts/ChartsWithAxis/AreaFamily/LineChart.d.ts +0 -4
- package/dist/components/Charts/ChartsWithAxis/AreaFamily/LineChart.js +0 -491
- package/dist/components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart.js +0 -517
- package/dist/components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackLineChart.d.ts +0 -4
- package/dist/components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackLineChart.js +0 -553
- package/dist/components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart.js +0 -517
- package/dist/components/Charts/ChartsWithAxis/AreaFamily/StackLineChart.d.ts +0 -4
- package/dist/components/Charts/ChartsWithAxis/AreaFamily/StackLineChart.js +0 -553
- package/dist/components/Charts/ChartsWithAxis/BarFamily/BarChart.d.ts +0 -12
- package/dist/components/Charts/ChartsWithAxis/BarFamily/BarChart.js +0 -9
- package/dist/components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.js +0 -4909
- package/dist/components/Charts/ChartsWithAxis/ChartsWithAxisTypes.type.d.ts +0 -0
- package/dist/components/Charts/ChartsWithAxis/ChartsWithAxisTypes.type.js +0 -0
- package/dist/components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.js +0 -49
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart copy.d.ts +0 -4
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart copy.js +0 -486
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart.js +0 -497
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart.js +0 -418
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart.js +0 -1013
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart.js +0 -478
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/LineChart.d.ts +0 -4
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/LineChart.js +0 -451
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart.js +0 -533
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackLineChart.js +0 -512
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart.js +0 -530
- package/dist/components/Charts/ChartsWithAxis/ColumnFamily/StackLineChart.js +0 -512
- package/dist/components/Charts/ChartsWithAxis/HorizontalBarFamily/BarChart.d.ts +0 -12
- package/dist/components/Charts/ChartsWithAxis/HorizontalBarFamily/BarChart.js +0 -9
- package/dist/components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart.js +0 -497
- package/dist/components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart.js +0 -497
- package/dist/components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredColumnChart.d.ts +0 -4
- package/dist/components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredColumnChart.js +0 -479
- package/dist/components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart.js +0 -478
- package/dist/components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart.js +0 -473
- package/dist/components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart.js +0 -465
- package/dist/components/Charts/ChartsWithAxis/LineFamily/100%StackLineChart.d.ts +0 -0
- package/dist/components/Charts/ChartsWithAxis/LineFamily/100%StackLineChart.js +0 -0
- package/dist/components/Charts/ChartsWithAxis/LineFamily/LineChart.js +0 -451
- package/dist/components/Charts/ChartsWithAxis/LineFamily/NormalisedStackLineChart.d.ts +0 -4
- package/dist/components/Charts/ChartsWithAxis/LineFamily/NormalisedStackLineChart.js +0 -554
- package/dist/components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart.d.ts +0 -4
- package/dist/components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart.js +0 -510
- package/dist/components/Charts/ChartsWithAxis/LineFamily/StackLineChart.d.ts +0 -4
- package/dist/components/Charts/ChartsWithAxis/LineFamily/StackLineChart.js +0 -507
- package/dist/components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart.js +0 -393
- package/dist/components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart.js +0 -606
- package/dist/components/Charts/ChartsWithoutAxis/ChartsWithoutAxis.types.d.ts +0 -0
- package/dist/components/Charts/ChartsWithoutAxis/ChartsWithoutAxis.types.js +0 -0
- package/dist/components/Charts/ChartsWithoutAxis/ChartsWithoutAxisFunctions.js +0 -815
- package/dist/components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.type.d.ts +0 -0
- package/dist/components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.type.js +0 -0
- package/dist/components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.js +0 -32
- package/dist/components/Charts/ChartsWithoutAxis/Maps/Cordinates.js +0 -15021
- package/dist/components/Charts/ChartsWithoutAxis/Maps/Maps.js +0 -391
- package/dist/components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart.js +0 -367
- package/dist/components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart.js +0 -570
- package/dist/components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart.js +0 -212
- package/dist/components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart.js +0 -401
- package/dist/components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart.js +0 -313
- package/dist/components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart.js +0 -719
- package/dist/components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart.js +0 -807
- package/dist/components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer.js +0 -514
- package/dist/components/Charts/ChartsWithoutAxis/OtherCharts/VennChart.js +0 -282
- package/dist/components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud.js +0 -207
- package/dist/components/Charts/ChartsWithoutAxis/PieFamily/DonutChart.js +0 -476
- package/dist/components/Charts/ChartsWithoutAxis/PieFamily/PieChart.js +0 -420
- package/dist/components/Charts/ChartsWithoutAxis/PieFamily/PieFamilyCommonFunctions.js +0 -106
- package/dist/components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart.js +0 -507
- package/dist/components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart.js +0 -246
- package/dist/components/Charts/Core/Common.type.d.ts +0 -0
- package/dist/components/Charts/Core/Common.type.js +0 -0
- package/dist/components/Charts/Core/Common.types.js +0 -133
- package/dist/components/Charts/Core/CommonFunctions.js +0 -1782
- package/dist/components/Charts/Core/DefaultChartDataProperties.js +0 -64
- package/dist/components/Charts/Core/DefaultProperties.d.ts +0 -0
- package/dist/components/Charts/Core/DefaultProperties.js +0 -0
- package/dist/components/Charts/Core/DefaultProperties.type.d.ts +0 -586
- package/dist/components/Charts/Core/DefaultProperties.type.js +0 -585
- package/dist/components/Charts/Core/DefaultProperties.types.js +0 -592
- package/dist/index.js +0 -40
- /package/dist/{components → Components}/Charts/ChartsWithAxis/AreaFamily/AreaChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/AreaFamily/StackAreaChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/ColumnFamily/ColumnChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/LineFamily/LineChart.d.ts +0 -0
- /package/dist/{components/Charts/ChartsWithAxis/ColumnFamily → Components/Charts/ChartsWithAxis/LineFamily}/NormalizedStackLineChart.d.ts +0 -0
- /package/dist/{components/Charts/ChartsWithAxis/ColumnFamily → Components/Charts/ChartsWithAxis/LineFamily}/StackLineChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/ChartsWithoutAxisFunctions.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/Maps/Cordinates.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/Maps/Maps.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/OtherCharts/Speedometer.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/OtherCharts/VennChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/OtherCharts/WordCloud.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/PieFamily/DonutChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/PieFamily/PieChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/PieFamily/PieFamilyCommonFunctions.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/ChartsWithoutAxis/PieFamily/TreemapChart.d.ts +0 -0
- /package/dist/{components → Components}/Charts/Core/Common.types.d.ts +0 -0
- /package/dist/{components → Components}/Charts/Core/DefaultChartDataProperties.d.ts +0 -0
|
@@ -26,47 +26,60 @@ export declare function calculateWidthHeightDynamically(content: string, fontSiz
|
|
|
26
26
|
*/
|
|
27
27
|
export declare function getYAxisLabel(formatOptions: TDefaultChartFormatOptionsType, maxLegendLength: number): number;
|
|
28
28
|
/**
|
|
29
|
-
* Calculates
|
|
30
|
-
* legend content, dimension labels, axis titles/labels, and other formatting options.
|
|
31
|
-
* Supports both primary and secondary Y-axes, data tables, and scrollable charts.
|
|
32
|
-
*
|
|
33
|
-
* @param {number} windowWidth - The width of the chart container in pixels.
|
|
34
|
-
* @param {number} windowHeight - The height of the chart container in pixels.
|
|
35
|
-
* @param {number} maxNumberForPrimaryAxis - The maximum numeric value on the primary Y-axis.
|
|
36
|
-
* @param {number} maxNumberForSecondaryAxis - The maximum numeric value on the secondary Y-axis.
|
|
37
|
-
* @param {number} yMaxLeft - Maximum value for scaling the primary Y-axis.
|
|
38
|
-
* @param {TDefaultChartFormatOptionsType} formatOptions - Object containing all chart formatting options.
|
|
39
|
-
* @param {string[]} legendList - Array of legend labels used in the chart.
|
|
40
|
-
* @param {string[]} dimensionList - Array of dimension labels used for X-axis.
|
|
41
|
-
* @param {number} yMaxRight - Maximum value for scaling the secondary Y-axis.
|
|
42
|
-
* @param {boolean} isSecondaryAxisDrawn - Flag indicating whether the secondary Y-axis is displayed.
|
|
43
|
-
* @param {any} xAxisObj - Object containing properties related to the X-axis.
|
|
44
|
-
* @param {boolean} isBarChart - Flag indicating whether the chart is a bar chart.
|
|
29
|
+
* Calculates horizontal margins (left and right) and returns other layout values needed by the caller.
|
|
45
30
|
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
31
|
+
* Accepts an optional precomputed metrics object to avoid re-computation.
|
|
32
|
+
*
|
|
33
|
+
* @returns {Object} { left: number, right: number, yLabel, yTitle, xLabel, xTitle, dimensionHeightWidthArray, chartTitleHeight, legendMargin, secondaryYLabel, secondaryAxisTitleWidth }
|
|
34
|
+
*/
|
|
35
|
+
export declare function calculateHorizontalMargins(windowWidth: number, windowHeight: number, maxNumberForPrimaryAxis: number, maxNumberForSecondaryAxis: number, yMaxLeft: number, formatOptions: TDefaultChartFormatOptionsType, legendList: string[], dimensionList: string[], yMaxRight: number, isSecondaryAxisDrawn: boolean, isNormalizedChart: boolean, xAxisObject: any, isBarChart?: boolean, precomputedMetrics?: any): {
|
|
36
|
+
left: number;
|
|
37
|
+
right: number;
|
|
38
|
+
yLabel: any;
|
|
39
|
+
yTitle: any;
|
|
40
|
+
xLabel: any;
|
|
41
|
+
xTitle: any;
|
|
42
|
+
dimensionHeightWidthArray: any;
|
|
43
|
+
chartTitleHeight: any;
|
|
44
|
+
legendMargin: any;
|
|
45
|
+
secondaryYLabel: any;
|
|
46
|
+
secondaryAxisTitleWidth: any;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Calculates vertical margins (top and bottom) and returns other layout values needed by the caller.
|
|
50
|
+
*
|
|
51
|
+
* Accepts an optional precomputed metrics object to avoid re-computation.
|
|
52
|
+
*
|
|
53
|
+
* @returns {Object} { top: number, bottom: number, chartTitleHeight, xAxisRelatedMargin, ... }
|
|
54
|
+
*/
|
|
55
|
+
export declare function calculateVerticalMargins(windowWidth: number, windowHeight: number, maxNumberForPrimaryAxis: number, maxNumberForSecondaryAxis: number, yMaxLeft: number, formatOptions: TDefaultChartFormatOptionsType, legendList: string[], dimensionList: string[], yMaxRight: number, isSecondaryAxisDrawn: boolean, isNormalizedChart: boolean, xAxisObject: any, isBarChart?: boolean, precomputedMetrics?: any, isScrollbarVisible?: boolean): {
|
|
56
|
+
top: number;
|
|
57
|
+
bottom: number;
|
|
58
|
+
chartTitleHeight: any;
|
|
59
|
+
xAxisRelatedMargin: any;
|
|
60
|
+
xLabel: any;
|
|
61
|
+
xTitle: any;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Backwards-compatible wrapper that returns the same shape as the original marginCalculation
|
|
65
|
+
* by delegating work to the split horizontal/vertical calculators.
|
|
66
|
+
*
|
|
67
|
+
* Now computes metrics once and passes the precomputed result to both calculators.
|
|
68
|
+
*/
|
|
69
|
+
export declare function marginCalculation(windowWidth: number, windowHeight: number, maxNumberForPrimaryAxis: number, maxNumberForSecondaryAxis: number, yMaxLeft: number, formatOptions: TDefaultChartFormatOptionsType, legendList: string[], dimensionList: string[], yMaxRight: number, isSecondaryAxisDrawn: boolean, isNormalizedChart: boolean, xAxisObject: any, isBarChart?: boolean, chartJSON?: TChartJSON): {
|
|
60
70
|
margin: TMargin;
|
|
61
71
|
yLabel: any;
|
|
62
|
-
xLabel:
|
|
63
|
-
yTitle:
|
|
64
|
-
xTitle:
|
|
65
|
-
dimensionHeightWidthArray:
|
|
66
|
-
chartTitleHeight:
|
|
67
|
-
legendMargin:
|
|
72
|
+
xLabel: any;
|
|
73
|
+
yTitle: any;
|
|
74
|
+
xTitle: any;
|
|
75
|
+
dimensionHeightWidthArray: any;
|
|
76
|
+
chartTitleHeight: any;
|
|
77
|
+
legendMargin: any;
|
|
68
78
|
secondaryYLabel: any;
|
|
69
|
-
secondaryAxisTitleWidth:
|
|
79
|
+
secondaryAxisTitleWidth: any;
|
|
80
|
+
visibleBars: any;
|
|
81
|
+
columnWidth: any;
|
|
82
|
+
scrollbarVisible: boolean;
|
|
70
83
|
};
|
|
71
84
|
/**
|
|
72
85
|
* Initializes the base SVG and optionally adds a scrollable floating SVG layer
|
|
@@ -386,7 +399,7 @@ export declare function setXaxistitle(formatOptions: TDefaultChartFormatOptionsT
|
|
|
386
399
|
*
|
|
387
400
|
* @returns {any} The SVG selection with the appended Y-axis title.
|
|
388
401
|
*/
|
|
389
|
-
export declare function yAxistitle(innerHeight: number, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, barChart: boolean, svg: any, margin: TMargin, yTitle: number, yLabel: number, width?: number): any;
|
|
402
|
+
export declare function yAxistitle(innerHeight: number, formatOptions: TDefaultChartFormatOptionsType, dataTableHeight: number, barChart: boolean, svg: any, margin: TMargin, yTitle: number, yLabel: number, width?: number, xTitle?: number, xLabel?: number): any;
|
|
390
403
|
/**
|
|
391
404
|
* Adds a Y-axis title on the right side (secondary axis) of the chart,
|
|
392
405
|
* handling visibility, positioning, rotation, and styling based on format options.
|
|
@@ -624,3 +637,28 @@ export declare const initYaxisBar: (formatOptions: TDefaultChartFormatOptionsTyp
|
|
|
624
637
|
export declare const dataLabelsPositionForBarChartFamily: (formatOptions: TDefaultChartFormatOptionsType, xCordinate: number, position: number, xScale: any, minValue: number, prevValue?: number, chartType?: string, isSensitivityChart?: boolean, axis?: string) => any;
|
|
625
638
|
export declare const initXaxisTop: (formatOptions: TDefaultChartFormatOptionsType, gTag: any, xLabelSecondary: number, xAxisTop: any) => void;
|
|
626
639
|
export declare const xAxisTitleTop: (formatOptions: TDefaultChartFormatOptionsType, svg: any, margin: TMargin, isSecondaryAxisDrawn: boolean, xLabelSecondary: number, xTitleSecondary: number) => void;
|
|
640
|
+
export declare const bandWidthFromBar: (gapFraction: any, barWidth: number) => number;
|
|
641
|
+
export declare const barWidthFromBand: (gapFraction: any, bandWidth: number) => number;
|
|
642
|
+
/**
|
|
643
|
+
* Calculate how many bars can be visible without horizontal scroll and the resulting
|
|
644
|
+
* per-bar column width and gap width. This is a pure function that takes required
|
|
645
|
+
* inputs and returns the computed layout values instead of mutating outer-scope variables.
|
|
646
|
+
*
|
|
647
|
+
* @param innerWidth - drawable width of the plot area in pixels
|
|
648
|
+
* @param formatOptions - chart formatting options (used for plotAreaGapWidth)
|
|
649
|
+
* @param chartJSON - chart data/meta (used for number of categories)
|
|
650
|
+
* @param minBarWidthPx - minimum allowed bar width in pixels (default: 25)
|
|
651
|
+
*
|
|
652
|
+
* @returns object containing:
|
|
653
|
+
* - visibleBars: number of bars that can be shown without scrolling
|
|
654
|
+
* - columnWidth: computed width of each bar (px)
|
|
655
|
+
* - gapWidthPx: computed gap width between bars (px)
|
|
656
|
+
* - scrollbarVisible: whether a horizontal scrollbar would be required to see all bars
|
|
657
|
+
*/
|
|
658
|
+
export declare function calculateVisibleBars(innerWidth: number, formatOptions: TDefaultChartFormatOptionsType, chartJSON: TChartJSON): {
|
|
659
|
+
visibleBars: number;
|
|
660
|
+
columnWidth: number;
|
|
661
|
+
scrollbarVisible: boolean;
|
|
662
|
+
};
|
|
663
|
+
export declare const clamp: (v: any, a: any, b: any) => number;
|
|
664
|
+
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;
|
package/dist/{components → Components}/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts
RENAMED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TDefaultChartFormatOptionsType, TLegendEntry, TPieOfPieSeries, TSeries } from "../Core/Common.types";
|
|
2
2
|
export interface IChartProps {
|
|
3
3
|
chartId: string;
|
|
4
|
-
data:
|
|
4
|
+
data: {
|
|
5
|
+
ChartData: TSeries[];
|
|
6
|
+
};
|
|
5
7
|
clientWidth: number;
|
|
6
8
|
clientHeight: number;
|
|
7
9
|
formatOptions: TDefaultChartFormatOptionsType;
|
|
@@ -90,7 +90,7 @@ export declare function getNumberWithFormatFunction(displayUnits: any, numberFor
|
|
|
90
90
|
* @param chartFormatOptions -> rightpane format options;
|
|
91
91
|
* @param event -> optional mouse event to track mouse;
|
|
92
92
|
*/
|
|
93
|
-
export declare function showTooltipOnMouseMove(elements: any, chartFormatOptions: TDefaultChartFormatOptionsType, event?: MouseEvent): void;
|
|
93
|
+
export declare function showTooltipOnMouseMove(elements: any, chartFormatOptions: TDefaultChartFormatOptionsType, event?: MouseEvent, markerProp?: any): void;
|
|
94
94
|
export declare function hideTooltipOnMouseOut(): void;
|
|
95
95
|
/**
|
|
96
96
|
* Adds chart title to svg
|
|
@@ -234,3 +234,5 @@ export declare const marginCalculationsForChartsWithoutLegends: (chartFormatOpti
|
|
|
234
234
|
};
|
|
235
235
|
export declare const convertStringToNumber: (value: any) => any;
|
|
236
236
|
export declare function generalizedChartData(chartData: any, dimensionList?: any): any;
|
|
237
|
+
export declare const getJQuerySelector: (strSeletor?: string) => string;
|
|
238
|
+
export declare const connectorNumberFormat: (numerator: any, denominator: any, decimalValues: any, numberFormat: any, x: any, y: any, formatOptions: TDefaultChartFormatOptionsType) => any;
|
|
@@ -24,6 +24,7 @@ export declare const defaultChartFormatOptions: {
|
|
|
24
24
|
xAxisLabel: {
|
|
25
25
|
xAxisLabelVisibility: boolean;
|
|
26
26
|
xAxisColor: string;
|
|
27
|
+
xAxisColorInverted: string;
|
|
27
28
|
xAxisWidth: string;
|
|
28
29
|
xAxisLabelFontSize: string;
|
|
29
30
|
xAxisLabelFontFamily: string;
|
|
@@ -71,6 +72,7 @@ export declare const defaultChartFormatOptions: {
|
|
|
71
72
|
yAxisLabel: {
|
|
72
73
|
yAxisLabelVisibility: boolean;
|
|
73
74
|
yAxisColor: string;
|
|
75
|
+
yAxisColorInverted: string;
|
|
74
76
|
yAxisWidth: string;
|
|
75
77
|
yAxisLabelFontSize: string;
|
|
76
78
|
yAxisLabelFontFamily: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./Components/Charts/Core/ChartStyles.scss";
|
|
1
2
|
export { default as ColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart";
|
|
2
3
|
export { default as CustomColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart";
|
|
3
4
|
export { default as LayeredColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart";
|