@fluentui/react-charting 5.24.13 → 5.24.15

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 (65) hide show
  1. package/CHANGELOG.json +64 -1
  2. package/CHANGELOG.md +23 -2
  3. package/dist/react-charting.d.ts +26 -17
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +1 -0
  7. package/lib/Utilities.js +19 -1
  8. package/lib/Utilities.js.map +1 -1
  9. package/lib/components/CommonComponents/CartesianChart.base.js +6 -6
  10. package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
  11. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +45 -12
  12. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  13. package/lib/components/GanttChart/GanttChart.base.js +210 -158
  14. package/lib/components/GanttChart/GanttChart.base.js.map +1 -1
  15. package/lib/components/GanttChart/GanttChart.types.d.ts +23 -13
  16. package/lib/components/GanttChart/GanttChart.types.js.map +1 -1
  17. package/lib/components/LineChart/LineChart.base.js +6 -11
  18. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  19. package/lib/components/ScatterChart/ScatterChart.base.js +4 -9
  20. package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
  21. package/lib/types/IDataPoint.d.ts +3 -4
  22. package/lib/types/IDataPoint.js.map +1 -1
  23. package/lib/utilities/scatterpolar-utils.d.ts +7 -4
  24. package/lib/utilities/scatterpolar-utils.js +19 -2
  25. package/lib/utilities/scatterpolar-utils.js.map +1 -1
  26. package/lib-amd/Utilities.js +9 -0
  27. package/lib-amd/Utilities.js.map +1 -1
  28. package/lib-amd/components/CommonComponents/CartesianChart.base.js +6 -6
  29. package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
  30. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +45 -12
  31. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  32. package/lib-amd/components/GanttChart/GanttChart.base.js +210 -158
  33. package/lib-amd/components/GanttChart/GanttChart.base.js.map +1 -1
  34. package/lib-amd/components/GanttChart/GanttChart.types.d.ts +23 -13
  35. package/lib-amd/components/GanttChart/GanttChart.types.js.map +1 -1
  36. package/lib-amd/components/LineChart/LineChart.base.js +6 -11
  37. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  38. package/lib-amd/components/ScatterChart/ScatterChart.base.js +4 -9
  39. package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
  40. package/lib-amd/types/IDataPoint.d.ts +3 -4
  41. package/lib-amd/types/IDataPoint.js.map +1 -1
  42. package/lib-amd/utilities/scatterpolar-utils.d.ts +7 -4
  43. package/lib-amd/utilities/scatterpolar-utils.js +21 -3
  44. package/lib-amd/utilities/scatterpolar-utils.js.map +1 -1
  45. package/lib-commonjs/Utilities.js +9 -0
  46. package/lib-commonjs/Utilities.js.map +1 -1
  47. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +6 -6
  48. package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
  49. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +45 -12
  50. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  51. package/lib-commonjs/components/GanttChart/GanttChart.base.js +210 -158
  52. package/lib-commonjs/components/GanttChart/GanttChart.base.js.map +1 -1
  53. package/lib-commonjs/components/GanttChart/GanttChart.types.d.ts +23 -13
  54. package/lib-commonjs/components/GanttChart/GanttChart.types.js.map +1 -1
  55. package/lib-commonjs/components/LineChart/LineChart.base.js +6 -11
  56. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  57. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +4 -9
  58. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
  59. package/lib-commonjs/types/IDataPoint.d.ts +3 -4
  60. package/lib-commonjs/types/IDataPoint.js.map +1 -1
  61. package/lib-commonjs/utilities/scatterpolar-utils.d.ts +7 -4
  62. package/lib-commonjs/utilities/scatterpolar-utils.js +21 -3
  63. package/lib-commonjs/utilities/scatterpolar-utils.js.map +1 -1
  64. package/package.json +2 -2
  65. package/src/components/GanttChart/GanttChart.types.ts +24 -13
@@ -12,62 +12,73 @@ import {
12
12
  */
13
13
  export interface IGanttChartProps extends ICartesianChartProps {
14
14
  /**
15
- * Data to render in the chart.
15
+ * An array of data points to be rendered in the chart.
16
16
  */
17
17
  data?: IGanttChartDataPoint[];
18
18
 
19
19
  /**
20
- * Define a custom callout renderer for a data point.
20
+ * Callback function to render a custom callout for each data point.
21
21
  */
22
22
  onRenderCalloutPerDataPoint?: IRenderFunction<IGanttChartDataPoint>;
23
23
 
24
24
  /**
25
- * Width of each bar in the chart.
25
+ * Height of each bar, in pixels.
26
26
  */
27
27
  barHeight?: number;
28
28
 
29
29
  /**
30
- * chart title for the chart
30
+ * Title of the chart.
31
31
  */
32
32
  chartTitle?: string;
33
33
 
34
34
  /**
35
- * Call to provide customized styling that will layer on top of the variant rules.
35
+ * Custom styles that are applied on top of the default chart styles.
36
36
  */
37
37
  styles?: IStyleFunctionOrObject<IGanttChartStyleProps, IGanttChartStyles>;
38
38
 
39
39
  /**
40
- * The prop used to define the culture to localized the numbers
40
+ * Locale identifier string used to format numbers and dates according to the specified culture.
41
+ * Example: 'en-US', 'fr-FR'.
41
42
  */
42
43
  culture?: string;
43
44
 
44
45
  /**
45
- * it's padding between bar's or lines in the graph
46
+ * Padding between bars as a fraction of the [step](https://d3js.org/d3-scale/band#band_step).
47
+ * Takes a number in the range [0, 1].
48
+ * @default 1/2
46
49
  */
47
50
  yAxisPadding?: number;
48
51
 
49
52
  /**
50
- *@default false
51
- *Used for to elipse y axis labes and show tooltip on x axis labels
53
+ * If true, truncates y-axis tick labels longer than `noOfCharsToTruncate` with ellipses
54
+ * and displays them in a tooltip on hover.
55
+ * @default false
52
56
  */
53
57
  showYAxisLablesTooltip?: boolean;
54
58
 
55
59
  /**
56
- *@default false
57
- *Used for showing complete y axis lables */
60
+ * If true, renders full y-axis tick labels without truncation.
61
+ * @default false
62
+ */
58
63
  showYAxisLables?: boolean;
59
64
 
60
65
  /**
66
+ * If true, enables gradient fills for the bars.
61
67
  * @default false
62
- * The prop used to enable gradient fill color for the chart.
63
68
  */
64
69
  enableGradient?: boolean;
65
70
 
66
71
  /**
72
+ * If true, applies rounded corners to the bars.
67
73
  * @default false
68
- * The prop used to enable rounded corners for the bars.
69
74
  */
70
75
  roundCorners?: boolean;
76
+
77
+ /**
78
+ * Maximum height of each bar, in pixels.
79
+ * @default 24
80
+ */
81
+ maxBarHeight?: number;
71
82
  }
72
83
 
73
84
  /**