pace-chart-lib 1.0.53 → 1.0.55

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.
Files changed (50) hide show
  1. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/AreaChart.d.ts +4 -0
  2. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart.d.ts +4 -0
  3. package/dist/Components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart.d.ts +4 -0
  4. package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisFunctions.d.ts +628 -0
  5. package/dist/Components/Charts/ChartsWithAxis/ChartsWithAxisTypes.types.d.ts +171 -0
  6. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart.d.ts +4 -0
  7. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart.d.ts +4 -0
  8. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart.d.ts +4 -0
  9. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart.d.ts +4 -0
  10. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart.d.ts +4 -0
  11. package/dist/Components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart.d.ts +4 -0
  12. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart.d.ts +4 -0
  13. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart.d.ts +4 -0
  14. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart.d.ts +4 -0
  15. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart.d.ts +4 -0
  16. package/dist/Components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart.d.ts +4 -0
  17. package/dist/Components/Charts/ChartsWithAxis/LineFamily/LineChart.d.ts +4 -0
  18. package/dist/Components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart.d.ts +4 -0
  19. package/dist/Components/Charts/ChartsWithAxis/LineFamily/StackLineChart.d.ts +4 -0
  20. package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/DotPlot.d.ts +4 -0
  21. package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart.d.ts +4 -0
  22. package/dist/Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart.d.ts +4 -0
  23. package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisFunctions.d.ts +95 -0
  24. package/dist/Components/Charts/ChartsWithoutAxis/ChartsWithoutAxisTypes.types.d.ts +112 -0
  25. package/dist/Components/Charts/ChartsWithoutAxis/Maps/Cordinates.d.ts +26 -0
  26. package/dist/Components/Charts/ChartsWithoutAxis/Maps/Maps.d.ts +4 -0
  27. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart.d.ts +4 -0
  28. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart.d.ts +4 -0
  29. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart.d.ts +3 -0
  30. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart.d.ts +3 -0
  31. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart.d.ts +4 -0
  32. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart.d.ts +4 -0
  33. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart.d.ts +4 -0
  34. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer.d.ts +3 -0
  35. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/VennChart.d.ts +4 -0
  36. package/dist/Components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud.d.ts +4 -0
  37. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/DonutChart.d.ts +4 -0
  38. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieChart.d.ts +4 -0
  39. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieFamilyCommonFunctions.d.ts +10 -0
  40. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart.d.ts +3 -0
  41. package/dist/Components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart.d.ts +3 -0
  42. package/dist/Components/Charts/Core/Common.types.d.ts +417 -0
  43. package/dist/Components/Charts/Core/CommonFunctions.d.ts +250 -0
  44. package/dist/Components/Charts/Core/DefaultChartDataProperties.d.ts +66 -0
  45. package/dist/Components/Charts/Core/DefaultProperties.types.d.ts +604 -0
  46. package/dist/Services/ErrorLog.d.ts +1 -0
  47. package/dist/index.d.ts +36 -0
  48. package/dist/pace-chart-lib.es.js +12 -6
  49. package/dist/pace-chart-lib.umd.js +12 -6
  50. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ import "./Components/Charts/Core/ChartStyles.scss";
2
+ export { default as ColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/ColumnChart";
3
+ export { default as CustomColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/CustomColumnChart";
4
+ export { default as LayeredColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/LayeredColumnChart";
5
+ export { default as StackColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/StackColumnChart";
6
+ export { default as NormalizedStackColumnChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/NormalizedStackColumnChart";
7
+ export { default as ColumnHistogramChart } from "./Components/Charts/ChartsWithAxis/ColumnFamily/ColumnHistogramChart";
8
+ export { default as LineChart } from "./Components/Charts/ChartsWithAxis/LineFamily/LineChart";
9
+ export { default as StackLineChart } from "./Components/Charts/ChartsWithAxis/LineFamily/StackLineChart";
10
+ export { default as NormalizedStackLineChart } from "./Components/Charts/ChartsWithAxis/LineFamily/NormalizedStackLineChart";
11
+ export { default as HorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalBarChart";
12
+ export { default as StackHorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/StackHorizontalBarChart";
13
+ export { default as NormalizedStackHorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/NormalizedStackHorizontalBarChart";
14
+ export { default as LayeredHorizontalBarChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/LayeredHorizontalBarChart";
15
+ export { default as HorizontalHistogramChart } from "./Components/Charts/ChartsWithAxis/HorizontalBarFamily/HorizontalHistogramChart";
16
+ export { default as AreaChart } from "./Components/Charts/ChartsWithAxis/AreaFamily/AreaChart";
17
+ export { default as StackAreaChart } from "./Components/Charts/ChartsWithAxis/AreaFamily/StackAreaChart";
18
+ export { default as NormalizedStackAreaChart } from "./Components/Charts/ChartsWithAxis/AreaFamily/NormalizedStackAreaChart";
19
+ export { default as PieChart } from "./Components/Charts/ChartsWithoutAxis/PieFamily/PieChart";
20
+ export { default as DonutChart } from "./Components/Charts/ChartsWithoutAxis/PieFamily/DonutChart";
21
+ export { default as Treemap } from "./Components/Charts/ChartsWithoutAxis/PieFamily/TreemapChart";
22
+ export { default as PieofPie } from "./Components/Charts/ChartsWithoutAxis/PieFamily/PieofPieChart";
23
+ export { default as PyramidChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/PyramidChart";
24
+ export { default as ProgressChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/ProgressChart";
25
+ export { default as Speedometer } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/Speedometer";
26
+ export { default as RadialBarChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/RadialBarChart";
27
+ export { default as WordCloud } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/WordCloud";
28
+ export { default as VennChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/VennChart";
29
+ export { default as SankeyChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/SankeyChart";
30
+ export { default as Maps } from "./Components/Charts/ChartsWithoutAxis/Maps/Maps";
31
+ export { default as OrganizationChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/OrganizationChart";
32
+ export { default as BubbleChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/BubbleChart";
33
+ export { default as ScatterChart } from "./Components/Charts/ChartsWithoutAxis/OtherCharts/ScatterChart";
34
+ export { default as WaterfallChart } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/WaterfallChart";
35
+ export { default as TornadoChart } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/TornadoChart";
36
+ export { default as DotPlot } from "./Components/Charts/ChartsWithAxis/MiscellaneousChartFamily/DotPlot";
@@ -13421,7 +13421,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
13421
13421
  }
13422
13422
  });
13423
13423
  }
13424
- oldAnnotationList.forEach((d) => {
13424
+ finalAnnotationList.forEach((d) => {
13425
13425
  if (d.data?.legendUniqueId == annotation2.data.legendUniqueId || d.legendUniqueId == annotation2.data.legendUniqueId) {
13426
13426
  d.dx = annotation2._dx * width / d.width;
13427
13427
  d.dy = annotation2._dy * height / d.height;
@@ -13429,7 +13429,7 @@ function commonAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin, d
13429
13429
  }
13430
13430
  });
13431
13431
  if (onDataLabelCoordinatesChange) {
13432
- const cleaned = oldAnnotationList.map((d) => ({
13432
+ const cleaned = finalAnnotationList.map((d) => ({
13433
13433
  legendUniqueId: d.data?.legendUniqueId || d.legendUniqueId,
13434
13434
  dx: d.dx,
13435
13435
  dy: d.dy,
@@ -13937,7 +13937,7 @@ function commonAnnotationsForCustomChart(chartData, xScale, yScaleLeft, yScaleRi
13937
13937
  });
13938
13938
  }
13939
13939
  ;
13940
- oldAnnotationList.forEach((d) => {
13940
+ finalAnnotationList.forEach((d) => {
13941
13941
  if (d.data?.legendUniqueId == annotation2.data.legendUniqueId || d.legendUniqueId == annotation2.data.legendUniqueId) {
13942
13942
  d.dx = annotation2._dx * width / d.width;
13943
13943
  d.dy = annotation2._dy * height / d.height;
@@ -13945,7 +13945,7 @@ function commonAnnotationsForCustomChart(chartData, xScale, yScaleLeft, yScaleRi
13945
13945
  }
13946
13946
  });
13947
13947
  if (onDataLabelCoordinatesChange) {
13948
- const cleaned = oldAnnotationList.map((d) => ({
13948
+ const cleaned = finalAnnotationList.map((d) => ({
13949
13949
  legendUniqueId: d.data?.legendUniqueId || d.legendUniqueId,
13950
13950
  dx: d.dx,
13951
13951
  dy: d.dy,
@@ -15214,6 +15214,12 @@ function stacklineAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin
15214
15214
  });
15215
15215
  break;
15216
15216
  }
15217
+ if (formatOptions.annotation.annotationHideZeroValues) {
15218
+ labelData = labelData.filter((d) => {
15219
+ const value2 = d[1] < 0 && d[0] < 0 ? d[0] - d[1] : d[1] === 0 && d[0] < 0 ? d[1] + d[0] : d[1] - d[0];
15220
+ return value2 !== 0;
15221
+ });
15222
+ }
15217
15223
  let maxValue = 0;
15218
15224
  labelData.forEach((d, i) => {
15219
15225
  if (maxValue < d.Measure) {
@@ -15342,7 +15348,7 @@ function stacklineAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin
15342
15348
  });
15343
15349
  }
15344
15350
  ;
15345
- oldAnnotationList.forEach((d) => {
15351
+ finalAnnotationList.forEach((d) => {
15346
15352
  if (d.data?.legendUniqueId == annotation2.data.legendUniqueId || d.legendUniqueId == annotation2.data.legendUniqueId) {
15347
15353
  d.dx = annotation2._dx * width / d.width;
15348
15354
  d.dy = annotation2._dy * height / d.height;
@@ -15350,7 +15356,7 @@ function stacklineAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin
15350
15356
  }
15351
15357
  });
15352
15358
  if (onDataLabelCoordinatesChange) {
15353
- const cleaned = oldAnnotationList.map((d) => ({
15359
+ const cleaned = finalAnnotationList.map((d) => ({
15354
15360
  legendUniqueId: d.data?.legendUniqueId || d.legendUniqueId,
15355
15361
  dx: d.dx,
15356
15362
  dy: d.dy,
@@ -13424,7 +13424,7 @@
13424
13424
  }
13425
13425
  });
13426
13426
  }
13427
- oldAnnotationList.forEach((d) => {
13427
+ finalAnnotationList.forEach((d) => {
13428
13428
  if (d.data?.legendUniqueId == annotation2.data.legendUniqueId || d.legendUniqueId == annotation2.data.legendUniqueId) {
13429
13429
  d.dx = annotation2._dx * width / d.width;
13430
13430
  d.dy = annotation2._dy * height / d.height;
@@ -13432,7 +13432,7 @@
13432
13432
  }
13433
13433
  });
13434
13434
  if (onDataLabelCoordinatesChange) {
13435
- const cleaned = oldAnnotationList.map((d) => ({
13435
+ const cleaned = finalAnnotationList.map((d) => ({
13436
13436
  legendUniqueId: d.data?.legendUniqueId || d.legendUniqueId,
13437
13437
  dx: d.dx,
13438
13438
  dy: d.dy,
@@ -13940,7 +13940,7 @@
13940
13940
  });
13941
13941
  }
13942
13942
  ;
13943
- oldAnnotationList.forEach((d) => {
13943
+ finalAnnotationList.forEach((d) => {
13944
13944
  if (d.data?.legendUniqueId == annotation2.data.legendUniqueId || d.legendUniqueId == annotation2.data.legendUniqueId) {
13945
13945
  d.dx = annotation2._dx * width / d.width;
13946
13946
  d.dy = annotation2._dy * height / d.height;
@@ -13948,7 +13948,7 @@
13948
13948
  }
13949
13949
  });
13950
13950
  if (onDataLabelCoordinatesChange) {
13951
- const cleaned = oldAnnotationList.map((d) => ({
13951
+ const cleaned = finalAnnotationList.map((d) => ({
13952
13952
  legendUniqueId: d.data?.legendUniqueId || d.legendUniqueId,
13953
13953
  dx: d.dx,
13954
13954
  dy: d.dy,
@@ -15217,6 +15217,12 @@
15217
15217
  });
15218
15218
  break;
15219
15219
  }
15220
+ if (formatOptions.annotation.annotationHideZeroValues) {
15221
+ labelData = labelData.filter((d) => {
15222
+ const value2 = d[1] < 0 && d[0] < 0 ? d[0] - d[1] : d[1] === 0 && d[0] < 0 ? d[1] + d[0] : d[1] - d[0];
15223
+ return value2 !== 0;
15224
+ });
15225
+ }
15220
15226
  let maxValue = 0;
15221
15227
  labelData.forEach((d, i) => {
15222
15228
  if (maxValue < d.Measure) {
@@ -15345,7 +15351,7 @@
15345
15351
  });
15346
15352
  }
15347
15353
  ;
15348
- oldAnnotationList.forEach((d) => {
15354
+ finalAnnotationList.forEach((d) => {
15349
15355
  if (d.data?.legendUniqueId == annotation2.data.legendUniqueId || d.legendUniqueId == annotation2.data.legendUniqueId) {
15350
15356
  d.dx = annotation2._dx * width / d.width;
15351
15357
  d.dy = annotation2._dy * height / d.height;
@@ -15353,7 +15359,7 @@
15353
15359
  }
15354
15360
  });
15355
15361
  if (onDataLabelCoordinatesChange) {
15356
- const cleaned = oldAnnotationList.map((d) => ({
15362
+ const cleaned = finalAnnotationList.map((d) => ({
15357
15363
  legendUniqueId: d.data?.legendUniqueId || d.legendUniqueId,
15358
15364
  dx: d.dx,
15359
15365
  dy: d.dy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pace-chart-lib",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "A simple React + Vite + TS UI library with a Button using custom fonts via SCSS.",
5
5
  "license": "MIT",
6
6
  "type": "module",