@fluentui/react-charting 5.12.37 → 5.13.1
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/CHANGELOG.json +57 -1
- package/CHANGELOG.md +27 -2
- package/README.md +84 -4
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js +2 -2
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +5 -0
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.styles.js +2 -0
- package/lib/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
- package/lib/components/Legends/Legends.base.js +1 -1
- package/lib/components/Legends/Legends.base.js.map +1 -1
- package/lib/utilities/utilities.d.ts +2 -1
- package/lib/utilities/utilities.js +33 -1
- package/lib/utilities/utilities.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +2 -2
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +5 -0
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js +2 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
- package/lib-amd/components/Legends/Legends.base.js +1 -1
- package/lib-amd/components/Legends/Legends.base.js.map +1 -1
- package/lib-amd/utilities/utilities.d.ts +2 -1
- package/lib-amd/utilities/utilities.js +33 -2
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/Styling.d.ts +2 -2
- package/lib-commonjs/Styling.js +1 -1
- package/lib-commonjs/Utilities.d.ts +2 -2
- package/lib-commonjs/Utilities.js +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +3 -3
- package/lib-commonjs/components/AreaChart/AreaChart.js +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +4 -4
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.js +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +5 -0
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.styles.js +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js +2 -2
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +2 -2
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +2 -2
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js +2 -0
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +2 -2
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js +1 -1
- package/lib-commonjs/components/Legends/Legends.base.js +5 -5
- package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.js +1 -1
- package/lib-commonjs/components/Legends/Legends.styles.js +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +2 -2
- package/lib-commonjs/components/LineChart/LineChart.js +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.js +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.styles.js +1 -1
- package/lib-commonjs/components/PieChart/PieChart.base.js +1 -1
- package/lib-commonjs/components/PieChart/PieChart.js +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.js +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.base.js +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +2 -2
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +2 -2
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.js +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.base.js +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.js +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +2 -2
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +2 -2
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js +1 -1
- package/lib-commonjs/utilities/utilities.d.ts +2 -1
- package/lib-commonjs/utilities/utilities.js +33 -1
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +5 -3
- package/src/components/CommonComponents/CartesianChart.types.ts +6 -0
- package/TechnicalDetails.md +0 -80
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,63 @@
|
|
|
2
2
|
"name": "@fluentui/react-charting",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 16 Sep 2022 07:36:34 GMT",
|
|
6
|
+
"tag": "@fluentui/react-charting_v5.13.1",
|
|
7
|
+
"version": "5.13.1",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui/react-charting",
|
|
13
|
+
"comment": "Bump @fluentui/react to v8.95.1",
|
|
14
|
+
"commit": "9077e0a7d3911096a3337d76ec65591d191a780a"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 15 Sep 2022 19:15:26 GMT",
|
|
21
|
+
"tag": "@fluentui/react-charting_v5.13.0",
|
|
22
|
+
"version": "5.13.0",
|
|
23
|
+
"comments": {
|
|
24
|
+
"minor": [
|
|
25
|
+
{
|
|
26
|
+
"author": "dzearing@microsoft.com",
|
|
27
|
+
"package": "@fluentui/react-charting",
|
|
28
|
+
"commit": "682ead9953a1d519133193033aafe392173009f5",
|
|
29
|
+
"comment": "All /lib-commonjs/ top-level entries have been added to the exports map for backwards compatibility."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"author": "beachball",
|
|
33
|
+
"package": "@fluentui/react-charting",
|
|
34
|
+
"comment": "Bump @fluentui/react to v8.95.0",
|
|
35
|
+
"commit": "682ead9953a1d519133193033aafe392173009f5"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"patch": [
|
|
39
|
+
{
|
|
40
|
+
"author": "atishay.jain@microsoft.com",
|
|
41
|
+
"package": "@fluentui/react-charting",
|
|
42
|
+
"commit": "ca89bb0a920f267f049347ce63ad45424ce37f32",
|
|
43
|
+
"comment": "Add support for custom locale for date axis"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"author": "kumarkshitij@microsoft.com",
|
|
47
|
+
"package": "@fluentui/react-charting",
|
|
48
|
+
"commit": "eea486038db9ef0eca9a377bd38fcd61fde7b18d",
|
|
49
|
+
"comment": "Fix value font-weight inside heatmap chart"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"author": "kumarkshitij@microsoft.com",
|
|
53
|
+
"package": "@fluentui/react-charting",
|
|
54
|
+
"commit": "bbf7b60d16ffbbfe6473b894297a40f18589e6d0",
|
|
55
|
+
"comment": "Fix legend overflow-indication-text role"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"date": "Tue, 13 Sep 2022 07:41:03 GMT",
|
|
6
62
|
"tag": "@fluentui/react-charting_v5.12.37",
|
|
7
63
|
"version": "5.12.37",
|
|
8
64
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-charting
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 16 Sep 2022 07:36:34 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [5.13.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.13.1)
|
|
8
|
+
|
|
9
|
+
Fri, 16 Sep 2022 07:36:34 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.13.0..@fluentui/react-charting_v5.13.1)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Bump @fluentui/react to v8.95.1 ([PR #24822](https://github.com/microsoft/fluentui/pull/24822) by beachball)
|
|
15
|
+
|
|
16
|
+
## [5.13.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.13.0)
|
|
17
|
+
|
|
18
|
+
Thu, 15 Sep 2022 19:15:26 GMT
|
|
19
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.12.37..@fluentui/react-charting_v5.13.0)
|
|
20
|
+
|
|
21
|
+
### Minor changes
|
|
22
|
+
|
|
23
|
+
- All /lib-commonjs/ top-level entries have been added to the exports map for backwards compatibility. ([PR #24792](https://github.com/microsoft/fluentui/pull/24792) by dzearing@microsoft.com)
|
|
24
|
+
- Bump @fluentui/react to v8.95.0 ([PR #24792](https://github.com/microsoft/fluentui/pull/24792) by beachball)
|
|
25
|
+
|
|
26
|
+
### Patches
|
|
27
|
+
|
|
28
|
+
- Add support for custom locale for date axis ([PR #24753](https://github.com/microsoft/fluentui/pull/24753) by atishay.jain@microsoft.com)
|
|
29
|
+
- Fix value font-weight inside heatmap chart ([PR #24726](https://github.com/microsoft/fluentui/pull/24726) by kumarkshitij@microsoft.com)
|
|
30
|
+
- Fix legend overflow-indication-text role ([PR #24756](https://github.com/microsoft/fluentui/pull/24756) by kumarkshitij@microsoft.com)
|
|
31
|
+
|
|
7
32
|
## [5.12.37](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.12.37)
|
|
8
33
|
|
|
9
|
-
Tue, 13 Sep 2022 07:
|
|
34
|
+
Tue, 13 Sep 2022 07:41:03 GMT
|
|
10
35
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.12.36..@fluentui/react-charting_v5.12.37)
|
|
11
36
|
|
|
12
37
|
### Patches
|
package/README.md
CHANGED
|
@@ -28,10 +28,6 @@ To import charting components:
|
|
|
28
28
|
import { ComponentName } from '@fluentui/react-charting/lib/ComponentName';
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
**Technical Guide**
|
|
32
|
-
|
|
33
|
-
Technical information about chart components is available at [Technical details](./TechnicalDetails.md)
|
|
34
|
-
|
|
35
31
|
**Contributing**
|
|
36
32
|
|
|
37
33
|
Refer the main fluentui [wiki](https://github.com/microsoft/fluentui/wiki) for detailed instructions on setup and contributing to the package.
|
|
@@ -56,3 +52,87 @@ You could also create issues under the [charting](https://github.com/microsoft/f
|
|
|
56
52
|
**Coding Guidelines**
|
|
57
53
|
|
|
58
54
|
Refer fluent [Coding guidelines](https://github.com/microsoft/fluentui/wiki/Coding-Style)
|
|
55
|
+
|
|
56
|
+
# Technical details
|
|
57
|
+
|
|
58
|
+
**Overview**
|
|
59
|
+
|
|
60
|
+
This document describes different chart components in detail.
|
|
61
|
+
|
|
62
|
+
This can be used as a guide to use the charts and contribute new functionalities or improvements to the library.
|
|
63
|
+
|
|
64
|
+
**Components**
|
|
65
|
+
|
|
66
|
+
The charting components are built using following building blocks.
|
|
67
|
+
|
|
68
|
+
- Cartesian Charts.
|
|
69
|
+
|
|
70
|
+
- Charts built using cartesian coordinate system (two axes - x axis perpendicular to y axis) are called cartesian charts. Majority of the chart in the library are cartesian charts. Some charts like horizontal chart, donut chart, sankey and tree charts are non cartesian charts.
|
|
71
|
+
|
|
72
|
+
- Legends.
|
|
73
|
+
|
|
74
|
+
- A legend contains a list of the variables appearing in the chart and an example of their appearance. This information allows the data from each variable to be identified in the chart.
|
|
75
|
+
|
|
76
|
+
- Hover Callouts.
|
|
77
|
+
|
|
78
|
+
- Whenever the mouse is hovered over a datapoint, a callout is shown representing the details of data for that point. For a stacked chart, the hover callout can represent the data for all the points for the same X coordinate.
|
|
79
|
+
|
|
80
|
+
- Axes.
|
|
81
|
+
|
|
82
|
+
- Our charts currently support cartesian axes. Different charts support different type of axes - numerical axis, date or time series axis, string or categorical axis. Detals about supported axes can be found in readme for each chart.
|
|
83
|
+
|
|
84
|
+
- Axes support for different charts
|
|
85
|
+
|
|
86
|
+
| Chart | Numeric Axis | Date Axis | String Axis |
|
|
87
|
+
| -------------------------- | ------------ | --------- | ----------- |
|
|
88
|
+
| Line Chart | Yes | Yes | No |
|
|
89
|
+
| Area Chart | Yes | Yes | No |
|
|
90
|
+
| Vertical Bar Chart | Yes | No | Yes |
|
|
91
|
+
| Vertical Stacked Bar Chart | Yes | No | Yes |
|
|
92
|
+
| Grouped Vertical Bar Chart | No | No | Yes |
|
|
93
|
+
| Heatmap Chart | Yes | Yes | Yes |
|
|
94
|
+
| Horizontal Bar Chart | -- | -- | -- |
|
|
95
|
+
| Donut Chart | -- | -- | -- |
|
|
96
|
+
| Sankey Chart | -- | -- | -- |
|
|
97
|
+
| Tree Chart | -- | -- | -- |
|
|
98
|
+
| Sparkline Chart | -- | -- | -- |
|
|
99
|
+
|
|
100
|
+
- Axis localization
|
|
101
|
+
The axes support 2 ways of localization.
|
|
102
|
+
1. Javascript provided inbuilt localization for numeric and date axis. Specify the culture and dateLocalizeOptions for date axis to define target localization. Refer the [javascript localization guide](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString) for usage.
|
|
103
|
+
2. Custom locale definition: The consumer of the library can specify a custom locale definition as supported by d3 (like [this](https://github.com/d3/d3-time-format/blob/main/locale/en-US.json)). The date axis will use the date range and the multiformat specified in the definition to determine the correct format to show in the ticks. For example - If the date range is in days then the axis will show hourly ticks. If the date range spans across months then the axis will show months in tick labels and so on.
|
|
104
|
+
Specify the custom locale definition in the timeFormatLocale prop.
|
|
105
|
+
Refer to the Custom Locale Date Axis example in line chart for sample usage.
|
|
106
|
+
|
|
107
|
+
- Event annotations (Available in line charts).
|
|
108
|
+
|
|
109
|
+
- Data can be annotated using vertical lines representing the events of interest. See [line chart with events](https://fluentuipr.z22.web.core.windows.net/heads/master/react-charting/demo/index.html#/examples/linechart#Variants) for example.
|
|
110
|
+
|
|
111
|
+
- Typography.
|
|
112
|
+
|
|
113
|
+
- Our font classes represent the type ramp for the fluent design language. Each base class sets a default size, weight, and color.
|
|
114
|
+
|
|
115
|
+
- Colors
|
|
116
|
+
|
|
117
|
+
- The charts are designed using the accessible color palette defined for the fluent design system.
|
|
118
|
+
|
|
119
|
+
- Themes
|
|
120
|
+
|
|
121
|
+
- The library supports light and dark mode out of box. In addition, consumers can define their own themese as detailed [here](https://github.com/microsoft/fluentui/wiki/Theming)
|
|
122
|
+
|
|
123
|
+
- Accessibility.
|
|
124
|
+
|
|
125
|
+
- Our charts have elaborate accessibility support. The charts are WCAG 2.1 MAS C compliant for accessibility.
|
|
126
|
+
Consumers can define their own aria labels for each point by setting the `xAxisCalloutAccessibilityData` and `callOutAccessibilityData` properties.
|
|
127
|
+
|
|
128
|
+
- RTL Support
|
|
129
|
+
|
|
130
|
+
- The charts support RTL languages wherever applicable.
|
|
131
|
+
|
|
132
|
+
- Component Styling
|
|
133
|
+
|
|
134
|
+
- [This article](https://github.com/microsoft/fluentui/wiki/Component-Styling) talks about the styling approach followed within charting library.
|
|
135
|
+
|
|
136
|
+
- Details about ticks.
|
|
137
|
+
- Tick values are applicable only for date axis. Doesn't work for string or numeric axis.
|
|
138
|
+
Tickcount works for numeric and date axis. Doesn't work for string (scaleBand) axis.
|