@topkit/analytics-charts 1.1.4 → 1.1.5-alpha-FX-2298-remove-fontSize-from-link.2604

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 (161) hide show
  1. package/{dist-package/AnalyticsChart → AnalyticsChart}/AnalyticsChart.d.ts +0 -0
  2. package/{dist-package/AnalyticsChart → AnalyticsChart}/AnalyticsChart.js +0 -0
  3. package/{dist-package/AnalyticsChart → AnalyticsChart}/AnalyticsChart.js.map +0 -0
  4. package/{dist-package/AnalyticsChart → AnalyticsChart}/index.d.ts +0 -0
  5. package/{dist-package/AnalyticsChart → AnalyticsChart}/index.js +0 -0
  6. package/{dist-package/AnalyticsChart → AnalyticsChart}/index.js.map +0 -0
  7. package/{dist-package/CategoriesChart → CategoriesChart}/CategoriesChart.d.ts +0 -0
  8. package/{dist-package/CategoriesChart → CategoriesChart}/CategoriesChart.js +0 -0
  9. package/{dist-package/CategoriesChart → CategoriesChart}/CategoriesChart.js.map +0 -0
  10. package/{dist-package/CategoriesChart → CategoriesChart}/index.d.ts +0 -0
  11. package/{dist-package/CategoriesChart → CategoriesChart}/index.js +0 -0
  12. package/{dist-package/CategoriesChart → CategoriesChart}/index.js.map +0 -0
  13. package/{dist-package/CategoriesChart → CategoriesChart}/types.d.ts +0 -0
  14. package/{dist-package/CategoriesChart → CategoriesChart}/types.js +0 -0
  15. package/{dist-package/CategoriesChart → CategoriesChart}/types.js.map +0 -0
  16. package/{dist-package/CategoriesChart → CategoriesChart}/utils/format-data/format-data.d.ts +0 -0
  17. package/{dist-package/CategoriesChart → CategoriesChart}/utils/format-data/format-data.js +0 -0
  18. package/{dist-package/CategoriesChart → CategoriesChart}/utils/format-data/format-data.js.map +0 -0
  19. package/{dist-package/CategoriesChart → CategoriesChart}/utils/format-data/index.d.ts +0 -0
  20. package/{dist-package/CategoriesChart → CategoriesChart}/utils/format-data/index.js +0 -0
  21. package/{dist-package/CategoriesChart → CategoriesChart}/utils/format-data/index.js.map +0 -0
  22. package/{dist-package/CategoriesChart → CategoriesChart}/utils/get-color/get-color.d.ts +0 -0
  23. package/{dist-package/CategoriesChart → CategoriesChart}/utils/get-color/get-color.js +0 -0
  24. package/{dist-package/CategoriesChart → CategoriesChart}/utils/get-color/get-color.js.map +0 -0
  25. package/{dist-package/CategoriesChart → CategoriesChart}/utils/get-color/index.d.ts +0 -0
  26. package/{dist-package/CategoriesChart → CategoriesChart}/utils/get-color/index.js +0 -0
  27. package/{dist-package/CategoriesChart → CategoriesChart}/utils/get-color/index.js.map +0 -0
  28. package/{dist-package/CategoriesChart → CategoriesChart}/utils/index.d.ts +0 -0
  29. package/{dist-package/CategoriesChart → CategoriesChart}/utils/index.js +0 -0
  30. package/{dist-package/CategoriesChart → CategoriesChart}/utils/index.js.map +0 -0
  31. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/CategoriesChartTooltip.d.ts +0 -0
  32. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/CategoriesChartTooltip.js +0 -0
  33. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/CategoriesChartTooltip.js.map +0 -0
  34. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/index.d.ts +0 -0
  35. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/index.js +0 -0
  36. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/index.js.map +0 -0
  37. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/utils/get-display-texts/get-display-texts.d.ts +0 -0
  38. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/utils/get-display-texts/get-display-texts.js +0 -0
  39. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/utils/get-display-texts/get-display-texts.js.map +0 -0
  40. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/utils/get-display-texts/index.d.ts +0 -0
  41. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/utils/get-display-texts/index.js +0 -0
  42. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/utils/get-display-texts/index.js.map +0 -0
  43. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/utils/index.d.ts +0 -0
  44. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/utils/index.js +0 -0
  45. package/{dist-package/CategoriesChartTooltip → CategoriesChartTooltip}/utils/index.js.map +0 -0
  46. package/{dist-package/config.d.ts → config.d.ts} +0 -0
  47. package/{dist-package/config.js → config.js} +0 -0
  48. package/{dist-package/config.js.map → config.js.map} +0 -0
  49. package/{dist-package/index.d.ts → index.d.ts} +0 -0
  50. package/{dist-package/index.js → index.js} +0 -0
  51. package/{dist-package/index.js.map → index.js.map} +0 -0
  52. package/package.json +6 -4
  53. package/{dist-package/utils → utils}/format-y-axis-tick/format-y-axis-tick.d.ts +0 -0
  54. package/{dist-package/utils → utils}/format-y-axis-tick/format-y-axis-tick.js +0 -0
  55. package/{dist-package/utils → utils}/format-y-axis-tick/format-y-axis-tick.js.map +0 -0
  56. package/{dist-package/utils → utils}/format-y-axis-tick/index.d.ts +0 -0
  57. package/{dist-package/utils → utils}/format-y-axis-tick/index.js +0 -0
  58. package/{dist-package/utils → utils}/format-y-axis-tick/index.js.map +0 -0
  59. package/{dist-package/utils → utils}/generate-reference-key/generate-reference-key.d.ts +0 -0
  60. package/{dist-package/utils → utils}/generate-reference-key/generate-reference-key.js +0 -0
  61. package/{dist-package/utils → utils}/generate-reference-key/generate-reference-key.js.map +0 -0
  62. package/{dist-package/utils → utils}/generate-reference-key/index.d.ts +0 -0
  63. package/{dist-package/utils → utils}/generate-reference-key/index.js +0 -0
  64. package/{dist-package/utils → utils}/generate-reference-key/index.js.map +0 -0
  65. package/{dist-package/utils → utils}/get-x-axis-ticks/get-x-axis-ticks.d.ts +0 -0
  66. package/{dist-package/utils → utils}/get-x-axis-ticks/get-x-axis-ticks.js +0 -0
  67. package/{dist-package/utils → utils}/get-x-axis-ticks/get-x-axis-ticks.js.map +0 -0
  68. package/{dist-package/utils → utils}/get-x-axis-ticks/index.d.ts +0 -0
  69. package/{dist-package/utils → utils}/get-x-axis-ticks/index.js +0 -0
  70. package/{dist-package/utils → utils}/get-x-axis-ticks/index.js.map +0 -0
  71. package/{dist-package/utils → utils}/get-y-axis-ticks/get-y-axis-ticks.d.ts +0 -0
  72. package/{dist-package/utils → utils}/get-y-axis-ticks/get-y-axis-ticks.js +0 -0
  73. package/{dist-package/utils → utils}/get-y-axis-ticks/get-y-axis-ticks.js.map +0 -0
  74. package/{dist-package/utils → utils}/get-y-axis-ticks/index.d.ts +0 -0
  75. package/{dist-package/utils → utils}/get-y-axis-ticks/index.js +0 -0
  76. package/{dist-package/utils → utils}/get-y-axis-ticks/index.js.map +0 -0
  77. package/{dist-package/utils → utils}/index.d.ts +0 -0
  78. package/{dist-package/utils → utils}/index.js +0 -0
  79. package/{dist-package/utils → utils}/index.js.map +0 -0
  80. package/{dist-package/utils → utils}/to-chart-format/index.d.ts +0 -0
  81. package/{dist-package/utils → utils}/to-chart-format/index.js +0 -0
  82. package/{dist-package/utils → utils}/to-chart-format/index.js.map +0 -0
  83. package/{dist-package/utils → utils}/to-chart-format/to-chart-format.d.ts +0 -0
  84. package/{dist-package/utils → utils}/to-chart-format/to-chart-format.js +0 -0
  85. package/{dist-package/utils → utils}/to-chart-format/to-chart-format.js.map +0 -0
  86. package/{dist-package/utils → utils}/to-highlight-format/index.d.ts +0 -0
  87. package/{dist-package/utils → utils}/to-highlight-format/index.js +0 -0
  88. package/{dist-package/utils → utils}/to-highlight-format/index.js.map +0 -0
  89. package/{dist-package/utils → utils}/to-highlight-format/to-highlight-format.d.ts +0 -0
  90. package/{dist-package/utils → utils}/to-highlight-format/to-highlight-format.js +0 -0
  91. package/{dist-package/utils → utils}/to-highlight-format/to-highlight-format.js.map +0 -0
  92. package/{dist-package/utils → utils}/to-line-config-format/index.d.ts +0 -0
  93. package/{dist-package/utils → utils}/to-line-config-format/index.js +0 -0
  94. package/{dist-package/utils → utils}/to-line-config-format/index.js.map +0 -0
  95. package/{dist-package/utils → utils}/to-line-config-format/to-line-config-format.d.ts +0 -0
  96. package/{dist-package/utils → utils}/to-line-config-format/to-line-config-format.js +0 -0
  97. package/{dist-package/utils → utils}/to-line-config-format/to-line-config-format.js.map +0 -0
  98. package/CHANGELOG.md +0 -189
  99. package/dist-package/README.md +0 -5
  100. package/dist-package/package.json +0 -36
  101. package/src/AnalyticsChart/AnalyticsChart.tsx +0 -85
  102. package/src/AnalyticsChart/__image_snapshots__/analyticschart-custom-format-xaxis-label-snap.png +0 -0
  103. package/src/AnalyticsChart/__image_snapshots__/analyticschart-default-snap.png +0 -0
  104. package/src/AnalyticsChart/__image_snapshots__/analyticschart-granularity-snap.png +0 -0
  105. package/src/AnalyticsChart/__image_snapshots__/analyticschart-highlights-snap.png +0 -0
  106. package/src/AnalyticsChart/__image_snapshots__/analyticschart-multiple-snap.png +0 -0
  107. package/src/AnalyticsChart/__image_snapshots__/analyticschart-null-values-snap.png +0 -0
  108. package/src/AnalyticsChart/__image_snapshots__/analyticschart-reference-lines-snap.png +0 -0
  109. package/src/AnalyticsChart/index.ts +0 -2
  110. package/src/AnalyticsChart/story/Default.example.tsx +0 -44
  111. package/src/AnalyticsChart/story/FormatLabel.example.tsx +0 -46
  112. package/src/AnalyticsChart/story/Granularity.example.tsx +0 -104
  113. package/src/AnalyticsChart/story/Highlights.example.tsx +0 -54
  114. package/src/AnalyticsChart/story/Multiple.example.tsx +0 -72
  115. package/src/AnalyticsChart/story/NullValues.example.tsx +0 -103
  116. package/src/AnalyticsChart/story/ReferenceLines.example.tsx +0 -105
  117. package/src/AnalyticsChart/story/index.jsx +0 -74
  118. package/src/CategoriesChart/CategoriesChart.tsx +0 -51
  119. package/src/CategoriesChart/__image_snapshots__/categorieschart-default-snap.png +0 -0
  120. package/src/CategoriesChart/index.ts +0 -2
  121. package/src/CategoriesChart/story/Default.example.tsx +0 -234
  122. package/src/CategoriesChart/story/index.jsx +0 -61
  123. package/src/CategoriesChart/types.ts +0 -22
  124. package/src/CategoriesChart/utils/format-data/format-data.ts +0 -23
  125. package/src/CategoriesChart/utils/format-data/index.ts +0 -1
  126. package/src/CategoriesChart/utils/format-data/test.ts +0 -99
  127. package/src/CategoriesChart/utils/get-color/get-color.ts +0 -37
  128. package/src/CategoriesChart/utils/get-color/index.ts +0 -1
  129. package/src/CategoriesChart/utils/get-color/test.ts +0 -65
  130. package/src/CategoriesChart/utils/index.ts +0 -2
  131. package/src/CategoriesChartTooltip/CategoriesChartTooltip.tsx +0 -57
  132. package/src/CategoriesChartTooltip/index.ts +0 -1
  133. package/src/CategoriesChartTooltip/test.tsx +0 -27
  134. package/src/CategoriesChartTooltip/utils/get-display-texts/get-display-texts.ts +0 -61
  135. package/src/CategoriesChartTooltip/utils/get-display-texts/index.ts +0 -1
  136. package/src/CategoriesChartTooltip/utils/get-display-texts/test.ts +0 -81
  137. package/src/CategoriesChartTooltip/utils/index.ts +0 -1
  138. package/src/config.ts +0 -3
  139. package/src/index.ts +0 -3
  140. package/src/utils/format-y-axis-tick/format-y-axis-tick.ts +0 -23
  141. package/src/utils/format-y-axis-tick/index.ts +0 -1
  142. package/src/utils/format-y-axis-tick/test.ts +0 -13
  143. package/src/utils/generate-reference-key/generate-reference-key.ts +0 -4
  144. package/src/utils/generate-reference-key/index.ts +0 -1
  145. package/src/utils/get-x-axis-ticks/get-x-axis-ticks.ts +0 -24
  146. package/src/utils/get-x-axis-ticks/index.ts +0 -1
  147. package/src/utils/get-x-axis-ticks/test.ts +0 -37
  148. package/src/utils/get-y-axis-ticks/get-y-axis-ticks.ts +0 -25
  149. package/src/utils/get-y-axis-ticks/index.ts +0 -1
  150. package/src/utils/get-y-axis-ticks/test.ts +0 -22
  151. package/src/utils/index.ts +0 -7
  152. package/src/utils/to-chart-format/index.ts +0 -1
  153. package/src/utils/to-chart-format/test.ts +0 -200
  154. package/src/utils/to-chart-format/to-chart-format.ts +0 -60
  155. package/src/utils/to-highlight-format/index.ts +0 -1
  156. package/src/utils/to-highlight-format/test.ts +0 -56
  157. package/src/utils/to-highlight-format/to-highlight-format.ts +0 -26
  158. package/src/utils/to-line-config-format/index.ts +0 -1
  159. package/src/utils/to-line-config-format/test.ts +0 -50
  160. package/src/utils/to-line-config-format/to-line-config-format.ts +0 -19
  161. package/tsconfig.build.json +0 -7
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topkit/analytics-charts",
3
- "version": "1.1.4",
3
+ "version": "1.1.5-alpha-FX-2298-remove-fontSize-from-link.2604+4e4a5135",
4
4
  "description": "Charts utilities",
5
5
  "author": "Toptal",
6
6
  "license": "MIT",
@@ -11,11 +11,12 @@
11
11
  "url": "git+https://github.com/toptal/picasso.git"
12
12
  },
13
13
  "publishConfig": {
14
- "access": "public"
14
+ "access": "public",
15
+ "directory": "dist-package"
15
16
  },
16
17
  "scripts": {
17
18
  "build:package": "cross-env NODE_ENV=production node ../../bin/build.js --tsConfig=./tsconfig.build.json",
18
- "prepublishOnly": "../../bin/prepublish.js"
19
+ "prepublishOnly": "if [ -d dist-package ]; then cp ./package.json ./dist-package/package.json; fi"
19
20
  },
20
21
  "bugs": {
21
22
  "url": "https://github.com/toptal/picasso/issues"
@@ -32,5 +33,6 @@
32
33
  "dependencies": {
33
34
  "d3": "^6.6.2",
34
35
  "d3-array": "^2.12.1"
35
- }
36
+ },
37
+ "gitHead": "4e4a5135c4a54f7349badcde3dc80c53d02d1933"
36
38
  }
File without changes
File without changes
File without changes
package/CHANGELOG.md DELETED
@@ -1,189 +0,0 @@
1
- # Change Log
2
-
3
- ## 1.1.4
4
-
5
- ### Patch Changes
6
-
7
- - [#2218](https://github.com/toptal/picasso/pull/2218) [`6a7073f0`](https://github.com/toptal/picasso/commit/6a7073f012bdc60b1ef95f30d0731204802731e4) Thanks [@TomasSlama](https://github.com/TomasSlama)! - Update storybook to latest version and make some small adjusments in components to work properly in the new Storybook.
8
-
9
- All notable changes to this project will be documented in this file.
10
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
11
-
12
- ## [1.1.3](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@1.1.2...@topkit/analytics-charts@1.1.3) (2021-10-18)
13
-
14
- **Note:** Version bump only for package @topkit/analytics-charts
15
-
16
- ## [1.1.2](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@1.1.1...@topkit/analytics-charts@1.1.2) (2021-10-14)
17
-
18
- **Note:** Version bump only for package @topkit/analytics-charts
19
-
20
- ## [1.1.1](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@1.1.0...@topkit/analytics-charts@1.1.1) (2021-09-08)
21
-
22
- **Note:** Version bump only for package @topkit/analytics-charts
23
-
24
- # [1.1.0](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@1.0.7...@topkit/analytics-charts@1.1.0) (2021-06-02)
25
-
26
- ### Features
27
-
28
- - **CategoriesChart:** add categories chart ([#2024](https://github.com/toptal/picasso/issues/2024)) ([c0860fb](https://github.com/toptal/picasso/commit/c0860fb7a0c8153ad7d62f9d6684abff6c7455ad))
29
-
30
- ## [1.0.7](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@1.0.6...@topkit/analytics-charts@1.0.7) (2021-03-30)
31
-
32
- ### Bug Fixes
33
-
34
- - readme not being published to npm ([#2006](https://github.com/toptal/picasso/issues/2006)) ([1b82c73](https://github.com/toptal/picasso/commit/1b82c7382acbc4d17423c28e42f1dadf773abe11))
35
-
36
- ## [1.0.6](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@1.0.5...@topkit/analytics-charts@1.0.6) (2021-03-24)
37
-
38
- **Note:** Version bump only for package @topkit/analytics-charts
39
-
40
- ## [1.0.5](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@1.0.4...@topkit/analytics-charts@1.0.5) (2021-03-24)
41
-
42
- ### Bug Fixes
43
-
44
- - prepublish ([#2004](https://github.com/toptal/picasso/issues/2004)) ([800db08](https://github.com/toptal/picasso/commit/800db08bd0f47fb2b3f0752e6e5b3952ae503723))
45
-
46
- ## [1.0.4](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@1.0.3...@topkit/analytics-charts@1.0.4) (2021-03-24)
47
-
48
- **Note:** Version bump only for package @topkit/analytics-charts
49
-
50
- ## [1.0.3](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@1.0.2...@topkit/analytics-charts@1.0.3) (2021-03-24)
51
-
52
- **Note:** Version bump only for package @topkit/analytics-charts
53
-
54
- ## [1.0.2](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@1.0.1...@topkit/analytics-charts@1.0.2) (2021-03-15)
55
-
56
- ### Bug Fixes
57
-
58
- - versions dependency between packages ([#1981](https://github.com/toptal/picasso/issues/1981)) ([ca4ab84](https://github.com/toptal/picasso/commit/ca4ab84934204323c8842991fe382745f56b5ff6))
59
-
60
- ## [1.0.1](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.6.1...@topkit/analytics-charts@1.0.1) (2021-03-10)
61
-
62
- **Note:** Version bump only for package @topkit/analytics-charts
63
-
64
- ## [0.6.1](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.6.0...@topkit/analytics-charts@0.6.1) (2021-03-04)
65
-
66
- **Note:** Version bump only for package @topkit/analytics-charts
67
-
68
- # [0.6.0](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.5.2...@topkit/analytics-charts@0.6.0) (2021-02-25)
69
-
70
- ### Features
71
-
72
- - cross platform package builds ([#1925](https://github.com/toptal/picasso/issues/1925)) ([21f30be](https://github.com/toptal/picasso/commit/21f30beeb360fcc67c88d70af5c3234d8dcfe213))
73
-
74
- ## [0.5.2](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.5.1...@topkit/analytics-charts@0.5.2) (2021-02-05)
75
-
76
- **Note:** Version bump only for package @topkit/analytics-charts
77
-
78
- ## [0.5.1](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.5.0...@topkit/analytics-charts@0.5.1) (2021-02-03)
79
-
80
- **Note:** Version bump only for package @topkit/analytics-charts
81
-
82
- # [0.5.0](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.4.3...@topkit/analytics-charts@0.5.0) (2021-01-29)
83
-
84
- ### Features
85
-
86
- - **BarChart:** add bar chart ([#1857](https://github.com/toptal/picasso/issues/1857)) ([83c8f23](https://github.com/toptal/picasso/commit/83c8f23157149ab874fdc166ab9c176219b1e74d))
87
-
88
- ## [0.4.3](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.4.2...@topkit/analytics-charts@0.4.3) (2021-01-20)
89
-
90
- **Note:** Version bump only for package @topkit/analytics-charts
91
-
92
- ## [0.4.2](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.4.1...@topkit/analytics-charts@0.4.2) (2021-01-18)
93
-
94
- **Note:** Version bump only for package @topkit/analytics-charts
95
-
96
- ## [0.4.1](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.4.0...@topkit/analytics-charts@0.4.1) (2020-12-14)
97
-
98
- ### Bug Fixes
99
-
100
- - **AnalyticsChart:** format y axis ([#1770](https://github.com/toptal/picasso/issues/1770)) ([bd342b9](https://github.com/toptal/picasso/commit/bd342b9c744c26d5be95466340e0ba5330d294ce))
101
-
102
- # [0.4.0](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.3.10...@topkit/analytics-charts@0.4.0) (2020-11-27)
103
-
104
- ### Features
105
-
106
- - add logic for rendering x axis in day and hour granularity ([#1696](https://github.com/toptal/picasso/issues/1696)) ([4bd3439](https://github.com/toptal/picasso/commit/4bd3439a9b37b10916325731f3b5c0bb4dafdd21))
107
-
108
- ## [0.3.10](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.3.9...@topkit/analytics-charts@0.3.10) (2020-11-06)
109
-
110
- **Note:** Version bump only for package @topkit/analytics-charts
111
-
112
- ## [0.3.9](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.3.8...@topkit/analytics-charts@0.3.9) (2020-11-02)
113
-
114
- **Note:** Version bump only for package @topkit/analytics-charts
115
-
116
- ## [0.3.8](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.3.7...@topkit/analytics-charts@0.3.8) (2020-10-27)
117
-
118
- **Note:** Version bump only for package @topkit/analytics-charts
119
-
120
- ## [0.3.7](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.3.6...@topkit/analytics-charts@0.3.7) (2020-09-23)
121
-
122
- ### Bug Fixes
123
-
124
- - **AnalyticsChart:** allow passing null values ([#1577](https://github.com/toptal/picasso/issues/1577)) ([68dc4b1](https://github.com/toptal/picasso/commit/68dc4b1b9e607b84c218149c3bc6c675d8108a01))
125
-
126
- ## [0.3.6](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.3.5...@topkit/analytics-charts@0.3.6) (2020-08-31)
127
-
128
- **Note:** Version bump only for package @topkit/analytics-charts
129
-
130
- ## [0.3.5](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.3.4...@topkit/analytics-charts@0.3.5) (2020-06-16)
131
-
132
- **Note:** Version bump only for package @topkit/analytics-charts
133
-
134
- ## [0.3.4](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.3.3...@topkit/analytics-charts@0.3.4) (2020-06-02)
135
-
136
- **Note:** Version bump only for package @topkit/analytics-charts
137
-
138
- ## [0.3.3](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.3.2...@topkit/analytics-charts@0.3.3) (2020-05-22)
139
-
140
- **Note:** Version bump only for package @topkit/analytics-charts
141
-
142
- ## [0.3.2](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.3.0...@topkit/analytics-charts@0.3.2) (2020-05-14)
143
-
144
- ### Bug Fixes
145
-
146
- - add picasso/utils import alias ([#1305](https://github.com/toptal/picasso/issues/1305)) ([905f808](https://github.com/toptal/picasso/commit/905f80867f940dd7971a8bb7454a5dc73a42818f))
147
-
148
- ## [0.3.1](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.3.0...@topkit/analytics-charts@0.3.1) (2020-05-14)
149
-
150
- ### Bug Fixes
151
-
152
- - add picasso/utils import alias ([#1305](https://github.com/toptal/picasso/issues/1305)) ([905f808](https://github.com/toptal/picasso/commit/905f80867f940dd7971a8bb7454a5dc73a42818f))
153
-
154
- # [0.3.0](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.2.4...@topkit/analytics-charts@0.3.0) (2020-04-15)
155
-
156
- ### Features
157
-
158
- - **charts:** add prop to custom format xAxis label ([#1232](https://github.com/toptal/picasso/issues/1232)) ([1ceeecd](https://github.com/toptal/picasso/commit/1ceeecdfdf280df0b3598abb8a521bbb116f7c0f))
159
-
160
- ## [0.2.4](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.2.3...@topkit/analytics-charts@0.2.4) (2020-04-07)
161
-
162
- ### Bug Fixes
163
-
164
- - add missing analytics-charts stories ([#1216](https://github.com/toptal/picasso/issues/1216)) ([721fa8b](https://github.com/toptal/picasso/commit/721fa8b5994751ec53b018be2df98d6cb2abeefe))
165
-
166
- ## [0.2.3](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.2.2...@topkit/analytics-charts@0.2.3) (2020-04-06)
167
-
168
- ### Bug Fixes
169
-
170
- - analytics-charts overflow and highlighting ([#1213](https://github.com/toptal/picasso/issues/1213)) ([f184b01](https://github.com/toptal/picasso/commit/f184b0100f6c819986d414c47dc51fee3580aa83))
171
-
172
- ## [0.2.2](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.2.1...@topkit/analytics-charts@0.2.2) (2020-04-02)
173
-
174
- ### Bug Fixes
175
-
176
- - analytics charts types ([#1209](https://github.com/toptal/picasso/issues/1209)) ([348fa94](https://github.com/toptal/picasso/commit/348fa94b906a809225bbcaf3450c57e53e27157a))
177
-
178
- ## [0.2.1](https://github.com/toptal/picasso/compare/@topkit/analytics-charts@0.2.0...@topkit/analytics-charts@0.2.1) (2020-04-02)
179
-
180
- ### Bug Fixes
181
-
182
- - tsconfig ([#1207](https://github.com/toptal/picasso/issues/1207)) ([cf79fde](https://github.com/toptal/picasso/commit/cf79fde32e4c1f1379b96f4ef51ef2b205af86f8))
183
-
184
- # 0.2.0 (2020-04-01)
185
-
186
- ### Features
187
-
188
- - @topkit/analytics-charts ([#1187](https://github.com/toptal/picasso/issues/1187)) ([57d452b](https://github.com/toptal/picasso/commit/57d452b712313a524685f74ab39969539e7cac32))
189
- - support multiple lines in analytics chart ([#1197](https://github.com/toptal/picasso/issues/1197)) ([3fdbb47](https://github.com/toptal/picasso/commit/3fdbb47f99481d1cfa52d7d17b9d9405aede37a9))
@@ -1,5 +0,0 @@
1
- # @topkit/analytics-charts
2
-
3
- ## Setup
4
-
5
- - `yarn add @topkit/analytics-charts`
@@ -1,36 +0,0 @@
1
- {
2
- "name": "@topkit/analytics-charts",
3
- "version": "1.1.4",
4
- "description": "Charts utilities",
5
- "author": "Toptal",
6
- "license": "MIT",
7
- "main": "index.js",
8
- "module": "index.js",
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/toptal/picasso.git"
12
- },
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
- "scripts": {
17
- "build:package": "cross-env NODE_ENV=production node ../../bin/build.js --tsConfig=./tsconfig.build.json",
18
- "prepublishOnly": "../../bin/prepublish.js"
19
- },
20
- "bugs": {
21
- "url": "https://github.com/toptal/picasso/issues"
22
- },
23
- "peerDependencies": {
24
- "@toptal/picasso-charts": "^4",
25
- "react": "^16.12.0"
26
- },
27
- "devDependencies": {
28
- "@types/d3": "^6.3.0",
29
- "@types/d3-array": "2.8.0",
30
- "date-fns": "^2.9.0"
31
- },
32
- "dependencies": {
33
- "d3": "^6.6.2",
34
- "d3-array": "^2.12.1"
35
- }
36
- }
@@ -1,85 +0,0 @@
1
- import React, { useMemo } from 'react'
2
- import { BaseLineChartProps, LineChart } from '@toptal/picasso-charts'
3
-
4
- import {
5
- toChartFormat,
6
- toHighlightFormat,
7
- toLineConfigFormat,
8
- getXAxisTicks,
9
- getYAxisTicks,
10
- formatYAxisTick
11
- } from './../utils'
12
-
13
- export type ChartGranularity = 'month' | 'week' | 'day' | 'hour'
14
-
15
- export type Point = {
16
- id: string
17
- values: Record<string, number | null>
18
- }
19
-
20
- export type Highlight = {
21
- data: string[]
22
- color: string
23
- }
24
-
25
- export type ReferenceLine = {
26
- data: Record<string, number>
27
- color: string
28
- }
29
-
30
- export type Props = BaseLineChartProps & {
31
- data: Point[]
32
- highlights?: Highlight[]
33
- referenceLines?: ReferenceLine[]
34
- formatXAxisLabel?: (label: string) => string
35
- granularity?: ChartGranularity
36
- }
37
-
38
- export const AnalyticsChart = ({
39
- data,
40
- highlights,
41
- referenceLines,
42
- xAxisKey = 'x',
43
- lineConfig: lines,
44
- formatXAxisLabel = (label: string) => label,
45
- granularity,
46
- unit,
47
- ...rest
48
- }: Props) => {
49
- const chartData = useMemo(
50
- () => toChartFormat(data, referenceLines, xAxisKey, formatXAxisLabel),
51
- [data, referenceLines, xAxisKey, formatXAxisLabel]
52
- )
53
- const lineConfig = useMemo(
54
- () => (referenceLines ? toLineConfigFormat(lines, referenceLines) : lines),
55
- [referenceLines, lines]
56
- )
57
- const highlightsData = useMemo(
58
- () =>
59
- highlights &&
60
- toHighlightFormat(chartData, highlights, xAxisKey, formatXAxisLabel),
61
- [chartData, formatXAxisLabel, highlights, xAxisKey]
62
- )
63
-
64
- return (
65
- <LineChart
66
- xAxisKey={xAxisKey}
67
- data={chartData}
68
- highlights={highlightsData || null}
69
- lineConfig={lineConfig}
70
- getXAxisTicks={orderedData => getXAxisTicks(orderedData, granularity)}
71
- getYAxisTicks={domain => getYAxisTicks(domain, unit)}
72
- formatYAxisTick={(value, domain) => formatYAxisTick(value, domain, unit)}
73
- {...rest}
74
- />
75
- )
76
- }
77
-
78
- AnalyticsChart.defaultProps = {
79
- xAxisKey: 'x',
80
- formatXAxisLabel: (label: string) => label
81
- }
82
-
83
- AnalyticsChart.displayName = 'AnalyticsChart'
84
-
85
- export default AnalyticsChart
@@ -1,2 +0,0 @@
1
- export { default } from './AnalyticsChart'
2
- export type { Highlight, Point, ReferenceLine, ChartGranularity } from './AnalyticsChart'