@fluentui/react-charting 5.12.27 → 5.12.30
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 +60 -3
- package/CHANGELOG.md +33 -4
- package/README.md +21 -7
- package/TechnicalDetails.md +76 -0
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.types.d.ts +25 -16
- package/lib/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib/components/Legends/Legends.types.d.ts +1 -1
- package/lib/components/Legends/Legends.types.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.styles.js +1 -1
- package/lib/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.d.ts +2 -0
- package/lib/components/StackedBarChart/MultiStackedBarChart.types.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 +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.types.d.ts +25 -16
- package/lib-amd/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-amd/components/Legends/Legends.types.d.ts +1 -1
- package/lib-amd/components/Legends/Legends.types.js.map +1 -1
- package/lib-amd/components/Sparkline/Sparkline.styles.js +1 -1
- package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.d.ts +2 -0
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.d.ts +25 -16
- package/lib-commonjs/components/CommonComponents/CartesianChart.types.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.types.d.ts +1 -1
- package/lib-commonjs/components/Legends/Legends.types.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.d.ts +2 -0
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.types.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +4 -4
- package/src/components/CommonComponents/CartesianChart.types.ts +25 -16
- package/src/components/Legends/Legends.types.ts +1 -1
- package/src/components/StackedBarChart/MultiStackedBarChart.types.ts +2 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,64 @@
|
|
|
2
2
|
"name": "@fluentui/react-charting",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 29 Aug 2022 07:42:53 GMT",
|
|
6
|
+
"tag": "@fluentui/react-charting_v5.12.30",
|
|
7
|
+
"version": "5.12.30",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@fluentui/react-charting",
|
|
13
|
+
"comment": "Bump @fluentui/react-focus to v8.8.3",
|
|
14
|
+
"commit": "a3081ce8cb9aef65dd64fe9328b84959d7b0e665"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui/react-charting",
|
|
19
|
+
"comment": "Bump @fluentui/react to v8.93.0",
|
|
20
|
+
"commit": "a3081ce8cb9aef65dd64fe9328b84959d7b0e665"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Fri, 26 Aug 2022 07:39:57 GMT",
|
|
27
|
+
"tag": "@fluentui/react-charting_v5.12.29",
|
|
28
|
+
"version": "5.12.29",
|
|
29
|
+
"comments": {
|
|
30
|
+
"patch": [
|
|
31
|
+
{
|
|
32
|
+
"author": "atishay.jain@microsoft.com",
|
|
33
|
+
"package": "@fluentui/react-charting",
|
|
34
|
+
"commit": "6faffd280a37636c7917752693b7bf627caec32d",
|
|
35
|
+
"comment": "Update documentation for charting library"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "beachball",
|
|
39
|
+
"package": "@fluentui/react-charting",
|
|
40
|
+
"comment": "Bump @fluentui/react to v8.92.1",
|
|
41
|
+
"commit": "744f8e5ccf138ef8c893929c77a1e85f484415d4"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"date": "Thu, 25 Aug 2022 07:41:03 GMT",
|
|
48
|
+
"tag": "@fluentui/react-charting_v5.12.28",
|
|
49
|
+
"version": "5.12.28",
|
|
50
|
+
"comments": {
|
|
51
|
+
"patch": [
|
|
52
|
+
{
|
|
53
|
+
"author": "beachball",
|
|
54
|
+
"package": "@fluentui/react-charting",
|
|
55
|
+
"comment": "Bump @fluentui/react to v8.92.0",
|
|
56
|
+
"commit": "4f36c51b9bde0c98b43da00ad13366a0cc0383cf"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"date": "Wed, 24 Aug 2022 16:36:06 GMT",
|
|
6
63
|
"tag": "@fluentui/react-charting_v5.12.27",
|
|
7
64
|
"version": "5.12.27",
|
|
8
65
|
"comments": {
|
|
@@ -11,13 +68,13 @@
|
|
|
11
68
|
"author": "beachball",
|
|
12
69
|
"package": "@fluentui/react-charting",
|
|
13
70
|
"comment": "Bump @fluentui/react-focus to v8.8.2",
|
|
14
|
-
"commit": "
|
|
71
|
+
"commit": "5c15d8495a026efaa56e5d5444b211a5cb5280fe"
|
|
15
72
|
},
|
|
16
73
|
{
|
|
17
74
|
"author": "beachball",
|
|
18
75
|
"package": "@fluentui/react-charting",
|
|
19
76
|
"comment": "Bump @fluentui/react to v8.91.1",
|
|
20
|
-
"commit": "
|
|
77
|
+
"commit": "5c15d8495a026efaa56e5d5444b211a5cb5280fe"
|
|
21
78
|
}
|
|
22
79
|
]
|
|
23
80
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,47 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-charting
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 29 Aug 2022 07:42:53 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [5.12.30](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.12.30)
|
|
8
|
+
|
|
9
|
+
Mon, 29 Aug 2022 07:42:53 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.12.29..@fluentui/react-charting_v5.12.30)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- Bump @fluentui/react-focus to v8.8.3 ([PR #24554](https://github.com/microsoft/fluentui/pull/24554) by beachball)
|
|
15
|
+
- Bump @fluentui/react to v8.93.0 ([PR #24554](https://github.com/microsoft/fluentui/pull/24554) by beachball)
|
|
16
|
+
|
|
17
|
+
## [5.12.29](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.12.29)
|
|
18
|
+
|
|
19
|
+
Fri, 26 Aug 2022 07:39:57 GMT
|
|
20
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.12.28..@fluentui/react-charting_v5.12.29)
|
|
21
|
+
|
|
22
|
+
### Patches
|
|
23
|
+
|
|
24
|
+
- Update documentation for charting library ([PR #21773](https://github.com/microsoft/fluentui/pull/21773) by atishay.jain@microsoft.com)
|
|
25
|
+
- Bump @fluentui/react to v8.92.1 ([PR #24492](https://github.com/microsoft/fluentui/pull/24492) by beachball)
|
|
26
|
+
|
|
27
|
+
## [5.12.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.12.28)
|
|
28
|
+
|
|
29
|
+
Thu, 25 Aug 2022 07:41:03 GMT
|
|
30
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.12.27..@fluentui/react-charting_v5.12.28)
|
|
31
|
+
|
|
32
|
+
### Patches
|
|
33
|
+
|
|
34
|
+
- Bump @fluentui/react to v8.92.0 ([PR #24515](https://github.com/microsoft/fluentui/pull/24515) by beachball)
|
|
35
|
+
|
|
7
36
|
## [5.12.27](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.12.27)
|
|
8
37
|
|
|
9
|
-
Wed, 24 Aug 2022 16:
|
|
38
|
+
Wed, 24 Aug 2022 16:36:06 GMT
|
|
10
39
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-charting_v5.12.26..@fluentui/react-charting_v5.12.27)
|
|
11
40
|
|
|
12
41
|
### Patches
|
|
13
42
|
|
|
14
|
-
- Bump @fluentui/react-focus to v8.8.2 ([PR #
|
|
15
|
-
- Bump @fluentui/react to v8.91.1 ([PR #
|
|
43
|
+
- Bump @fluentui/react-focus to v8.8.2 ([PR #24485](https://github.com/microsoft/fluentui/pull/24485) by beachball)
|
|
44
|
+
- Bump @fluentui/react to v8.91.1 ([PR #24485](https://github.com/microsoft/fluentui/pull/24485) by beachball)
|
|
16
45
|
|
|
17
46
|
## [5.12.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-charting_v5.12.26)
|
|
18
47
|
|
package/README.md
CHANGED
|
@@ -13,9 +13,10 @@ This library is also supported for fluent UI [v7](https://github.com/microsoft/f
|
|
|
13
13
|
|
|
14
14
|
**Using the library**
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Examples and code snippets for the charting library are available on the [demo site](https://aka.ms/fluentcharting).
|
|
17
|
+
The code snippets can be used as usage guide for all the props and chart variations. Click on 'Show code' on the demo site to access demo for each variant.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
The library is published as a npm package to public npm feed. To install the package
|
|
19
20
|
|
|
20
21
|
```js
|
|
21
22
|
npm install @fluentui/react-charting
|
|
@@ -27,18 +28,31 @@ To import charting components:
|
|
|
27
28
|
import { ComponentName } from '@fluentui/react-charting/lib/ComponentName';
|
|
28
29
|
```
|
|
29
30
|
|
|
31
|
+
**Technical Guide**
|
|
32
|
+
|
|
33
|
+
Technical information about chart components is available at [Technical details](./TechnicalDetails.md)
|
|
34
|
+
|
|
30
35
|
**Contributing**
|
|
31
36
|
|
|
32
37
|
Refer the main fluentui [wiki](https://github.com/microsoft/fluentui/wiki) for detailed instructions on setup and contributing to the package.
|
|
33
38
|
|
|
34
|
-
**
|
|
39
|
+
**Testing**
|
|
40
|
+
|
|
41
|
+
The library has sufficient number of snapshot tests to test for visual regressions.
|
|
42
|
+
Run `yarn test` from within the package to run all the tests.
|
|
35
43
|
|
|
36
|
-
|
|
44
|
+
**Versioning and changelog**
|
|
37
45
|
|
|
38
|
-
|
|
46
|
+
We use SemVer for versioning. For the versions available, see the [tags](https://github.com/microsoft/fluentui/tags) on this repository.
|
|
39
47
|
|
|
40
|
-
|
|
48
|
+
Refer to the [changelog](https://github.com/microsoft/fluentui/blob/master/packages/react-charting/CHANGELOG.md) for details about changes made in each version.
|
|
41
49
|
|
|
42
50
|
**Contact**
|
|
43
51
|
|
|
44
|
-
You can reach out to the charting team by tagging `@microsoft/charting-team` in discussion items.
|
|
52
|
+
You can reach out to the charting team by tagging `@microsoft/charting-team` in [discussion](https://github.com/microsoft/fluentui/discussions) items.
|
|
53
|
+
|
|
54
|
+
You could also create issues under the [charting](https://github.com/microsoft/fluentui/labels/Package:%20charting) tag.
|
|
55
|
+
|
|
56
|
+
**Coding Guidelines**
|
|
57
|
+
|
|
58
|
+
Refer fluent [Coding guidelines](https://github.com/microsoft/fluentui/wiki/Coding-Style)
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Technical details
|
|
2
|
+
|
|
3
|
+
**Overview**
|
|
4
|
+
|
|
5
|
+
This document describes different charts and their components in detail.
|
|
6
|
+
|
|
7
|
+
This can be used as a guide to use the charts and contribute new functionalities or improvements to the library.
|
|
8
|
+
|
|
9
|
+
**Components**
|
|
10
|
+
|
|
11
|
+
The charting components are built using following building blocks.
|
|
12
|
+
|
|
13
|
+
- Cartesian Charts.
|
|
14
|
+
|
|
15
|
+
- 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.
|
|
16
|
+
|
|
17
|
+
- Legends.
|
|
18
|
+
|
|
19
|
+
- 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.
|
|
20
|
+
|
|
21
|
+
- Hover Callouts.
|
|
22
|
+
|
|
23
|
+
- 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.
|
|
24
|
+
|
|
25
|
+
- Axes.
|
|
26
|
+
|
|
27
|
+
- 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.
|
|
28
|
+
|
|
29
|
+
- Axes support for different charts
|
|
30
|
+
|
|
31
|
+
| Chart | Numeric Axis | Date Axis | String Axis |
|
|
32
|
+
| -------------------------- | ------------ | --------- | ----------- |
|
|
33
|
+
| Line Chart | Yes | Yes | No |
|
|
34
|
+
| Area Chart | Yes | Yes | No |
|
|
35
|
+
| Vertical Bar Chart | Yes | No | Yes |
|
|
36
|
+
| Vertical Stacked Bar Chart | Yes | No | Yes |
|
|
37
|
+
| Grouped Vertical Bar Chart | No | No | Yes |
|
|
38
|
+
| Heatmap Chart | Yes | Yes | Yes |
|
|
39
|
+
| Horizontal Bar Chart | -- | -- | -- |
|
|
40
|
+
| Donut Chart | -- | -- | -- |
|
|
41
|
+
| Sankey Chart | -- | -- | -- |
|
|
42
|
+
| Tree Chart | -- | -- | -- |
|
|
43
|
+
| Sparkline Chart | -- | -- | -- |
|
|
44
|
+
|
|
45
|
+
- Event annotations (Available in line charts).
|
|
46
|
+
|
|
47
|
+
- 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.
|
|
48
|
+
|
|
49
|
+
- Typography.
|
|
50
|
+
|
|
51
|
+
- Our font classes represent the type ramp for the fluent design language. Each base class sets a default size, weight, and color.
|
|
52
|
+
|
|
53
|
+
- Colors
|
|
54
|
+
|
|
55
|
+
- The charts are designed using the accessible color palette defined for the fluent design system.
|
|
56
|
+
|
|
57
|
+
- Themes
|
|
58
|
+
|
|
59
|
+
- 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)
|
|
60
|
+
|
|
61
|
+
- Accessibility.
|
|
62
|
+
|
|
63
|
+
- Our charts have elaborate accessibility support. The charts are WCAG 2.1 MAS C compliant for accessibility.
|
|
64
|
+
Consumers can define their own aria labels for each point by setting the `xAxisCalloutAccessibilityData` and `callOutAccessibilityData` properties.
|
|
65
|
+
|
|
66
|
+
- RTL Support
|
|
67
|
+
|
|
68
|
+
- The charts support RTL languages wherever applicable.
|
|
69
|
+
|
|
70
|
+
- Component Styling
|
|
71
|
+
|
|
72
|
+
- [This article](https://github.com/microsoft/fluentui/wiki/Component-Styling) talks about the styling approach followed within charting library.
|
|
73
|
+
|
|
74
|
+
- Details about ticks.
|
|
75
|
+
- Tick values are applicable only for date axis. Doesn't work for string or numeric axis.
|
|
76
|
+
Tickcount works for numeric and date axis. Doesn't work for string (scaleBand) axis.
|