@rio-cloud/uikit-mcp 1.0.0 → 1.1.0

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 (388) hide show
  1. package/README.md +75 -40
  2. package/dist/doc-metadata.json +1872 -0
  3. package/dist/docs/components/accentBar.md +582 -0
  4. package/dist/docs/components/activity.md +330 -0
  5. package/dist/docs/components/animatedNumber.md +88 -0
  6. package/dist/docs/components/animatedTextReveal.md +381 -0
  7. package/dist/docs/components/animations.md +459 -0
  8. package/dist/docs/components/appHeader.md +737 -0
  9. package/dist/docs/components/appLayout.md +2016 -0
  10. package/dist/docs/components/appNavigationBar.md +274 -0
  11. package/dist/docs/components/areaCharts.md +828 -0
  12. package/dist/docs/components/aspectRatioPlaceholder.md +106 -0
  13. package/dist/docs/components/assetTree.md +3223 -0
  14. package/dist/docs/components/autosuggests.md +1177 -0
  15. package/dist/docs/components/avatar.md +206 -0
  16. package/dist/docs/components/banner.md +668 -0
  17. package/dist/docs/components/barCharts.md +2785 -0
  18. package/dist/docs/components/barList.md +517 -0
  19. package/dist/docs/components/basicMap.md +167 -0
  20. package/dist/docs/components/bottomSheet.md +721 -0
  21. package/dist/docs/components/button.md +775 -0
  22. package/dist/docs/components/buttonToolbar.md +134 -0
  23. package/dist/docs/components/calendarStripe.md +525 -0
  24. package/dist/docs/components/card.md +86 -0
  25. package/dist/docs/components/carousel.md +128 -0
  26. package/dist/docs/components/chartColors.md +716 -0
  27. package/dist/docs/components/chartsGettingStarted.md +28 -0
  28. package/dist/docs/components/chat.md +932 -0
  29. package/dist/docs/components/checkbox.md +996 -0
  30. package/dist/docs/components/clearableInput.md +806 -0
  31. package/dist/docs/components/collapse.md +189 -0
  32. package/dist/docs/components/composedCharts.md +424 -0
  33. package/dist/docs/components/contentLoader.md +674 -0
  34. package/dist/docs/components/dataTabs.md +1251 -0
  35. package/dist/docs/components/datepickers.md +2543 -0
  36. package/dist/docs/components/dialogs.md +2244 -0
  37. package/dist/docs/components/divider.md +219 -0
  38. package/dist/docs/components/dropdowns.md +17550 -0
  39. package/dist/docs/components/editableContent.md +1127 -0
  40. package/dist/docs/components/expander.md +970 -0
  41. package/dist/docs/components/fade.md +836 -0
  42. package/dist/docs/components/fadeExpander.md +180 -0
  43. package/dist/docs/components/fadeUp.md +396 -0
  44. package/dist/docs/components/feedback.md +758 -0
  45. package/dist/docs/components/filePickers.md +370 -0
  46. package/dist/docs/components/formLabel.md +251 -0
  47. package/dist/docs/components/fullscreenMap.md +10 -0
  48. package/dist/docs/components/groupedItemList.md +1001 -0
  49. package/dist/docs/components/iconList.md +306 -0
  50. package/dist/docs/components/imagePreloader.md +167 -0
  51. package/dist/docs/components/labeledElement.md +115 -0
  52. package/dist/docs/components/licensePlate.md +412 -0
  53. package/dist/docs/components/lineCharts.md +2014 -0
  54. package/dist/docs/components/listMenu.md +392 -0
  55. package/dist/docs/components/loadMore.md +219 -0
  56. package/dist/docs/components/mainNavigation.md +129 -0
  57. package/dist/docs/components/mapCircle.md +93 -0
  58. package/dist/docs/components/mapCluster.md +337 -0
  59. package/dist/docs/components/mapContext.md +284 -0
  60. package/dist/docs/components/mapDraggableMarker.md +150 -0
  61. package/dist/docs/components/mapGettingStarted.md +39 -0
  62. package/dist/docs/components/mapInfoBubble.md +135 -0
  63. package/dist/docs/components/mapLayerGroup.md +94 -0
  64. package/dist/docs/components/mapMarker.md +1814 -0
  65. package/dist/docs/components/mapPolygon.md +959 -0
  66. package/dist/docs/components/mapRoute.md +3816 -0
  67. package/dist/docs/components/mapRouteGenerator.md +6 -0
  68. package/dist/docs/components/mapSettings.md +1040 -0
  69. package/dist/docs/components/mapUtils.md +132 -0
  70. package/dist/docs/components/multiselects.md +1921 -0
  71. package/dist/docs/components/noData.md +210 -0
  72. package/dist/docs/components/notifications.md +314 -0
  73. package/dist/docs/components/numbercontrol.md +706 -0
  74. package/dist/docs/components/onboarding.md +297 -0
  75. package/dist/docs/components/page.md +241 -0
  76. package/dist/docs/components/pager.md +133 -0
  77. package/dist/docs/components/pieCharts.md +1284 -0
  78. package/dist/docs/components/popover.md +222 -0
  79. package/dist/docs/components/position.md +50 -0
  80. package/dist/docs/components/radialBarCharts.md +3663 -0
  81. package/dist/docs/components/radiobutton.md +1271 -0
  82. package/dist/docs/components/releaseNotes.md +135 -0
  83. package/dist/docs/components/resizer.md +162 -0
  84. package/dist/docs/components/responsiveColumnStripe.md +435 -0
  85. package/dist/docs/components/responsiveVideo.md +71 -0
  86. package/dist/docs/components/rioglyph.md +331 -0
  87. package/dist/docs/components/rules.md +965 -0
  88. package/dist/docs/components/saveableInput.md +1721 -0
  89. package/dist/docs/components/selects.md +1993 -0
  90. package/dist/docs/components/sidebar.md +332 -0
  91. package/dist/docs/components/sliders.md +376 -0
  92. package/dist/docs/components/smoothScrollbars.md +1180 -0
  93. package/dist/docs/components/spinners.md +506 -0
  94. package/dist/docs/components/states.md +1176 -0
  95. package/dist/docs/components/statsWidgets.md +636 -0
  96. package/dist/docs/components/statusBar.md +644 -0
  97. package/dist/docs/components/stepButton.md +61 -0
  98. package/dist/docs/components/steppedProgressBars.md +1064 -0
  99. package/dist/docs/components/subNavigation.md +470 -0
  100. package/dist/docs/components/supportMarker.md +115 -0
  101. package/dist/docs/components/svgImage.md +248 -0
  102. package/dist/docs/components/switch.md +554 -0
  103. package/dist/docs/components/tables.md +8 -0
  104. package/dist/docs/components/tagManager.md +476 -0
  105. package/dist/docs/components/tags.md +785 -0
  106. package/dist/docs/components/teaser.md +925 -0
  107. package/dist/docs/components/timeline.md +514 -0
  108. package/dist/docs/components/timepicker.md +262 -0
  109. package/dist/docs/components/toggleButton.md +178 -0
  110. package/dist/docs/components/tooltip.md +454 -0
  111. package/dist/docs/components/virtualList.md +483 -0
  112. package/dist/docs/foundations.md +20901 -0
  113. package/dist/docs/start/changelog.md +439 -0
  114. package/dist/docs/start/goodtoknow.md +14 -0
  115. package/dist/docs/start/guidelines/color-combinations.md +678 -0
  116. package/dist/docs/start/guidelines/custom-css.md +42 -0
  117. package/dist/docs/start/guidelines/custom-rioglyph.md +35 -0
  118. package/dist/docs/start/guidelines/formatting.md +587 -0
  119. package/dist/docs/start/guidelines/iframe.md +323 -0
  120. package/dist/docs/start/guidelines/obfuscate-data.md +30 -0
  121. package/dist/docs/start/guidelines/print-css.md +36 -0
  122. package/dist/docs/start/guidelines/spinner.md +710 -0
  123. package/dist/docs/start/guidelines/supported-browsers.md +10 -0
  124. package/dist/docs/start/guidelines/writing.md +635 -0
  125. package/dist/docs/start/howto.md +187 -0
  126. package/dist/docs/start/intro.md +43 -0
  127. package/dist/docs/start/responsiveness.md +98 -0
  128. package/dist/docs/templates/common-table.md +1111 -0
  129. package/dist/docs/templates/detail-views.md +942 -0
  130. package/dist/docs/templates/expandable-details.md +228 -0
  131. package/dist/docs/templates/feature-cards.md +549 -0
  132. package/dist/docs/templates/form-summary.md +199 -0
  133. package/dist/docs/templates/form-toggle.md +367 -0
  134. package/dist/docs/templates/list-blocks.md +1021 -0
  135. package/dist/docs/templates/loading-progress.md +109 -0
  136. package/dist/docs/templates/options-panel.md +152 -0
  137. package/dist/docs/templates/panel-variants.md +164 -0
  138. package/dist/docs/templates/progress-cards.md +607 -0
  139. package/dist/docs/templates/progress-success.md +142 -0
  140. package/dist/docs/templates/settings-form.md +434 -0
  141. package/dist/docs/templates/stats-blocks.md +1381 -0
  142. package/dist/docs/templates/table-panel.md +184 -0
  143. package/dist/docs/templates/table-row-animation.md +317 -0
  144. package/dist/docs/templates/usage-cards.md +227 -0
  145. package/dist/docs/utilities/deviceUtils.md +123 -0
  146. package/dist/docs/utilities/featureToggles.md +90 -0
  147. package/dist/docs/utilities/fuelTypeUtils.md +186 -0
  148. package/dist/docs/utilities/routeUtils.md +138 -0
  149. package/dist/docs/utilities/useAfterMount.md +66 -0
  150. package/dist/docs/utilities/useAutoAnimate.md +193 -0
  151. package/dist/docs/utilities/useAverage.md +95 -0
  152. package/dist/docs/utilities/useClickOutside.md +61 -0
  153. package/dist/docs/utilities/useClipboard.md +93 -0
  154. package/dist/docs/utilities/useCount.md +178 -0
  155. package/dist/docs/utilities/useDarkMode.md +49 -0
  156. package/dist/docs/utilities/useDebugInfo.md +126 -0
  157. package/dist/docs/utilities/useEffectOnce.md +58 -0
  158. package/dist/docs/utilities/useElapsedTime.md +58 -0
  159. package/dist/docs/utilities/useElementSize.md +71 -0
  160. package/dist/docs/utilities/useEsc.md +58 -0
  161. package/dist/docs/utilities/useEvent.md +64 -0
  162. package/dist/docs/utilities/useFocusTrap.md +85 -0
  163. package/dist/docs/utilities/useFullscreen.md +198 -0
  164. package/dist/docs/utilities/useHover.md +55 -0
  165. package/dist/docs/utilities/useIncomingPostMessages.md +237 -0
  166. package/dist/docs/utilities/useInterval.md +85 -0
  167. package/dist/docs/utilities/useIsFocusWithin.md +114 -0
  168. package/dist/docs/utilities/useKey.md +151 -0
  169. package/dist/docs/utilities/useLocalStorage.md +91 -0
  170. package/dist/docs/utilities/useLocationSuggestions.md +114 -0
  171. package/dist/docs/utilities/useMax.md +62 -0
  172. package/dist/docs/utilities/useMin.md +78 -0
  173. package/dist/docs/utilities/useMutationObserver.md +113 -0
  174. package/dist/docs/utilities/useOnScreen.md +138 -0
  175. package/dist/docs/utilities/useOnlineStatus.md +49 -0
  176. package/dist/docs/utilities/usePostMessage.md +117 -0
  177. package/dist/docs/utilities/usePostMessageSender.md +257 -0
  178. package/dist/docs/utilities/usePrevious.md +101 -0
  179. package/dist/docs/utilities/useResizeObserver.md +151 -0
  180. package/dist/docs/utilities/useScrollPosition.md +252 -0
  181. package/dist/docs/utilities/useSearch.md +228 -0
  182. package/dist/docs/utilities/useSorting.md +389 -0
  183. package/dist/docs/utilities/useStateWithValidation.md +83 -0
  184. package/dist/docs/utilities/useSum.md +155 -0
  185. package/dist/docs/utilities/useTableExport.md +404 -0
  186. package/dist/docs/utilities/useTableSelection.md +1120 -0
  187. package/dist/docs/utilities/useTimeout.md +55 -0
  188. package/dist/docs/utilities/useToggle.md +115 -0
  189. package/dist/docs/utilities/useWindowResize.md +70 -0
  190. package/dist/index.mjs +271 -0
  191. package/dist/search-synonyms.json +134 -0
  192. package/dist/version.json +4 -0
  193. package/package.json +23 -19
  194. package/bin/uikit-mcp.mjs +0 -23
  195. package/data/pages/Components/components/accentbar.json +0 -207
  196. package/data/pages/Components/components/activity.json +0 -87
  197. package/data/pages/Components/components/animatednumber.json +0 -99
  198. package/data/pages/Components/components/animations.json +0 -87
  199. package/data/pages/Components/components/appheader.json +0 -291
  200. package/data/pages/Components/components/applayout.json +0 -1198
  201. package/data/pages/Components/components/appnavigationbar.json +0 -327
  202. package/data/pages/Components/components/areacharts.json +0 -563
  203. package/data/pages/Components/components/aspectratioplaceholder.json +0 -75
  204. package/data/pages/Components/components/assettree.json +0 -3080
  205. package/data/pages/Components/components/autosuggests.json +0 -710
  206. package/data/pages/Components/components/avatar.json +0 -157
  207. package/data/pages/Components/components/banner.json +0 -599
  208. package/data/pages/Components/components/barcharts.json +0 -1507
  209. package/data/pages/Components/components/barlist.json +0 -223
  210. package/data/pages/Components/components/basicmap.json +0 -68
  211. package/data/pages/Components/components/bottomsheet.json +0 -601
  212. package/data/pages/Components/components/button.json +0 -583
  213. package/data/pages/Components/components/buttontoolbar.json +0 -63
  214. package/data/pages/Components/components/calendarstripe.json +0 -235
  215. package/data/pages/Components/components/card.json +0 -69
  216. package/data/pages/Components/components/carousel.json +0 -39
  217. package/data/pages/Components/components/chartcolors.json +0 -34
  218. package/data/pages/Components/components/chartsgettingstarted.json +0 -32
  219. package/data/pages/Components/components/chat.json +0 -39
  220. package/data/pages/Components/components/checkbox.json +0 -847
  221. package/data/pages/Components/components/clearableinput.json +0 -789
  222. package/data/pages/Components/components/collapse.json +0 -175
  223. package/data/pages/Components/components/composedcharts.json +0 -159
  224. package/data/pages/Components/components/contentloader.json +0 -233
  225. package/data/pages/Components/components/datatabs.json +0 -680
  226. package/data/pages/Components/components/datepickers.json +0 -287
  227. package/data/pages/Components/components/dialogs.json +0 -1492
  228. package/data/pages/Components/components/divider.json +0 -93
  229. package/data/pages/Components/components/dropdowns.json +0 -936
  230. package/data/pages/Components/components/editablecontent.json +0 -1117
  231. package/data/pages/Components/components/expander.json +0 -377
  232. package/data/pages/Components/components/fade.json +0 -403
  233. package/data/pages/Components/components/fadeexpander.json +0 -75
  234. package/data/pages/Components/components/fadeup.json +0 -127
  235. package/data/pages/Components/components/feedback.json +0 -269
  236. package/data/pages/Components/components/filepickers.json +0 -269
  237. package/data/pages/Components/components/formlabel.json +0 -115
  238. package/data/pages/Components/components/fullscreenmap.json +0 -22
  239. package/data/pages/Components/components/groupeditemlist.json +0 -323
  240. package/data/pages/Components/components/iconlist.json +0 -45
  241. package/data/pages/Components/components/imagepreloader.json +0 -81
  242. package/data/pages/Components/components/labeledelement.json +0 -75
  243. package/data/pages/Components/components/licenseplate.json +0 -69
  244. package/data/pages/Components/components/linecharts.json +0 -987
  245. package/data/pages/Components/components/listmenu.json +0 -313
  246. package/data/pages/Components/components/loadmore.json +0 -175
  247. package/data/pages/Components/components/mainnavigation.json +0 -39
  248. package/data/pages/Components/components/mapcircle.json +0 -34
  249. package/data/pages/Components/components/mapcluster.json +0 -51
  250. package/data/pages/Components/components/mapcontext.json +0 -105
  251. package/data/pages/Components/components/mapdraggablemarker.json +0 -34
  252. package/data/pages/Components/components/mapgettingstarted.json +0 -27
  253. package/data/pages/Components/components/mapgroup.json +0 -1198
  254. package/data/pages/Components/components/mapinfobubble.json +0 -34
  255. package/data/pages/Components/components/maplayergroup.json +0 -34
  256. package/data/pages/Components/components/mapmarker.json +0 -700
  257. package/data/pages/Components/components/mappolygon.json +0 -45
  258. package/data/pages/Components/components/maproute.json +0 -623
  259. package/data/pages/Components/components/maproutegenerator.json +0 -16
  260. package/data/pages/Components/components/mapsettings.json +0 -51
  261. package/data/pages/Components/components/maputils.json +0 -34
  262. package/data/pages/Components/components/multiselects.json +0 -1451
  263. package/data/pages/Components/components/nodata.json +0 -139
  264. package/data/pages/Components/components/notifications.json +0 -65
  265. package/data/pages/Components/components/numbercontrol.json +0 -301
  266. package/data/pages/Components/components/onboarding.json +0 -302
  267. package/data/pages/Components/components/page.json +0 -197
  268. package/data/pages/Components/components/pager.json +0 -93
  269. package/data/pages/Components/components/piecharts.json +0 -731
  270. package/data/pages/Components/components/popover.json +0 -251
  271. package/data/pages/Components/components/position.json +0 -69
  272. package/data/pages/Components/components/radialbarcharts.json +0 -1304
  273. package/data/pages/Components/components/radiobutton.json +0 -1105
  274. package/data/pages/Components/components/releasenotes.json +0 -44
  275. package/data/pages/Components/components/resizer.json +0 -93
  276. package/data/pages/Components/components/responsivecolumnstripe.json +0 -123
  277. package/data/pages/Components/components/responsivevideo.json +0 -75
  278. package/data/pages/Components/components/rioglyph.json +0 -93
  279. package/data/pages/Components/components/rules.json +0 -410
  280. package/data/pages/Components/components/saveableinput.json +0 -703
  281. package/data/pages/Components/components/selects.json +0 -701
  282. package/data/pages/Components/components/sidebar.json +0 -243
  283. package/data/pages/Components/components/sliders.json +0 -235
  284. package/data/pages/Components/components/smoothscrollbars.json +0 -335
  285. package/data/pages/Components/components/spinners.json +0 -343
  286. package/data/pages/Components/components/states.json +0 -1705
  287. package/data/pages/Components/components/statswidgets.json +0 -314
  288. package/data/pages/Components/components/statusbar.json +0 -177
  289. package/data/pages/Components/components/stepbutton.json +0 -57
  290. package/data/pages/Components/components/steppedprogressbars.json +0 -417
  291. package/data/pages/Components/components/subnavigation.json +0 -107
  292. package/data/pages/Components/components/supportmarker.json +0 -45
  293. package/data/pages/Components/components/svgimage.json +0 -81
  294. package/data/pages/Components/components/switch.json +0 -111
  295. package/data/pages/Components/components/tables.json +0 -144
  296. package/data/pages/Components/components/tagmanager.json +0 -86
  297. package/data/pages/Components/components/tags.json +0 -146
  298. package/data/pages/Components/components/teaser.json +0 -188
  299. package/data/pages/Components/components/timeline.json +0 -45
  300. package/data/pages/Components/components/timepicker.json +0 -163
  301. package/data/pages/Components/components/togglebutton.json +0 -247
  302. package/data/pages/Components/components/tooltip.json +0 -270
  303. package/data/pages/Components/components/virtuallist.json +0 -175
  304. package/data/pages/Foundations/foundations.json +0 -2475
  305. package/data/pages/Getting-started/start/changelog.json +0 -22
  306. package/data/pages/Getting-started/start/goodtoknow.json +0 -32
  307. package/data/pages/Getting-started/start/guidelines/color-combinations.json +0 -58
  308. package/data/pages/Getting-started/start/guidelines/custom-css.json +0 -27
  309. package/data/pages/Getting-started/start/guidelines/custom-rioglyph.json +0 -22
  310. package/data/pages/Getting-started/start/guidelines/formatting.json +0 -97
  311. package/data/pages/Getting-started/start/guidelines/iframe.json +0 -93
  312. package/data/pages/Getting-started/start/guidelines/obfuscate-data.json +0 -22
  313. package/data/pages/Getting-started/start/guidelines/print-css.json +0 -37
  314. package/data/pages/Getting-started/start/guidelines/spinner.json +0 -144
  315. package/data/pages/Getting-started/start/guidelines/supported-browsers.json +0 -22
  316. package/data/pages/Getting-started/start/guidelines/writing.json +0 -242
  317. package/data/pages/Getting-started/start/howto.json +0 -72
  318. package/data/pages/Getting-started/start/intro.json +0 -37
  319. package/data/pages/Getting-started/start/responsiveness.json +0 -52
  320. package/data/pages/Templates/templates/common-table.json +0 -39
  321. package/data/pages/Templates/templates/detail-views.json +0 -71
  322. package/data/pages/Templates/templates/expandable-details.json +0 -39
  323. package/data/pages/Templates/templates/feature-cards.json +0 -103
  324. package/data/pages/Templates/templates/form-summary.json +0 -39
  325. package/data/pages/Templates/templates/form-toggle.json +0 -39
  326. package/data/pages/Templates/templates/list-blocks.json +0 -119
  327. package/data/pages/Templates/templates/loading-progress.json +0 -39
  328. package/data/pages/Templates/templates/options-panel.json +0 -39
  329. package/data/pages/Templates/templates/panel-variants.json +0 -39
  330. package/data/pages/Templates/templates/progress-cards.json +0 -71
  331. package/data/pages/Templates/templates/progress-success.json +0 -39
  332. package/data/pages/Templates/templates/settings-form.json +0 -39
  333. package/data/pages/Templates/templates/stats-blocks.json +0 -135
  334. package/data/pages/Templates/templates/table-panel.json +0 -39
  335. package/data/pages/Templates/templates/table-row-animation.json +0 -39
  336. package/data/pages/Templates/templates/usage-cards.json +0 -39
  337. package/data/pages/Utilities/utilities/deviceutils.json +0 -39
  338. package/data/pages/Utilities/utilities/featuretoggles.json +0 -42
  339. package/data/pages/Utilities/utilities/fueltypeutils.json +0 -118
  340. package/data/pages/Utilities/utilities/routeutils.json +0 -34
  341. package/data/pages/Utilities/utilities/useaftermount.json +0 -63
  342. package/data/pages/Utilities/utilities/useaverage.json +0 -86
  343. package/data/pages/Utilities/utilities/useclickoutside.json +0 -69
  344. package/data/pages/Utilities/utilities/useclipboard.json +0 -57
  345. package/data/pages/Utilities/utilities/usecount.json +0 -92
  346. package/data/pages/Utilities/utilities/usedarkmode.json +0 -50
  347. package/data/pages/Utilities/utilities/usedebuginfo.json +0 -63
  348. package/data/pages/Utilities/utilities/useeffectonce.json +0 -57
  349. package/data/pages/Utilities/utilities/useelapsedtime.json +0 -57
  350. package/data/pages/Utilities/utilities/useelementsize.json +0 -63
  351. package/data/pages/Utilities/utilities/useesc.json +0 -57
  352. package/data/pages/Utilities/utilities/useevent.json +0 -75
  353. package/data/pages/Utilities/utilities/usefocustrap.json +0 -57
  354. package/data/pages/Utilities/utilities/usefullscreen.json +0 -197
  355. package/data/pages/Utilities/utilities/usehover.json +0 -57
  356. package/data/pages/Utilities/utilities/useinterval.json +0 -63
  357. package/data/pages/Utilities/utilities/useisfocuswithin.json +0 -75
  358. package/data/pages/Utilities/utilities/usekey.json +0 -75
  359. package/data/pages/Utilities/utilities/uselocalstorage.json +0 -69
  360. package/data/pages/Utilities/utilities/uselocationsuggestions.json +0 -110
  361. package/data/pages/Utilities/utilities/usemax.json +0 -86
  362. package/data/pages/Utilities/utilities/usemin.json +0 -86
  363. package/data/pages/Utilities/utilities/usemutationobserver.json +0 -69
  364. package/data/pages/Utilities/utilities/useonlinestatus.json +0 -39
  365. package/data/pages/Utilities/utilities/useonscreen.json +0 -63
  366. package/data/pages/Utilities/utilities/usepostmessage.json +0 -80
  367. package/data/pages/Utilities/utilities/useprevious.json +0 -63
  368. package/data/pages/Utilities/utilities/useresizeobserver.json +0 -65
  369. package/data/pages/Utilities/utilities/usescrollposition.json +0 -103
  370. package/data/pages/Utilities/utilities/usesearch.json +0 -197
  371. package/data/pages/Utilities/utilities/usesorting.json +0 -139
  372. package/data/pages/Utilities/utilities/usestatewithvalidation.json +0 -69
  373. package/data/pages/Utilities/utilities/usesum.json +0 -86
  374. package/data/pages/Utilities/utilities/usetableexport.json +0 -87
  375. package/data/pages/Utilities/utilities/usetableselection.json +0 -311
  376. package/data/pages/Utilities/utilities/usetimeout.json +0 -63
  377. package/data/pages/Utilities/utilities/usetoggle.json +0 -75
  378. package/data/pages/Utilities/utilities/usewindowresize.json +0 -63
  379. package/data/version.json +0 -4
  380. package/docs/content-schema.md +0 -147
  381. package/docs/navigation-inventory.json +0 -1310
  382. package/docs/search-synonyms.json +0 -43
  383. package/server/index.mjs +0 -268
  384. package/server/lib/load-docs.mjs +0 -48
  385. package/server/lib/normalise-doc.mjs +0 -220
  386. package/server/lib/render-markdown.mjs +0 -82
  387. package/server/lib/search-index.mjs +0 -49
  388. package/server/lib/types.js +0 -99
@@ -0,0 +1,2785 @@
1
+ # BarChart
2
+
3
+ *Category:* Components
4
+ *Section:* Charts
5
+ *Source:* https://uikit.developers.rio.cloud/#components/barCharts
6
+ *Captured:* 2025-12-12T12:39:25.288Z
7
+
8
+ ## BarChart
9
+
10
+ > Note: When using a chart in your application, do not get fancy and try to stick to the proposed examples or at least base your chart upon them. That will save time and money and, equally important, gives the user a coherent look and feel across the different services.
11
+
12
+ ### Example: Simple horizontal BarChart
13
+
14
+ Simple horizontal BarChart
15
+
16
+ JanuaryFebruaryMarchAprilMayJune
17
+
18
+ #### Summary
19
+
20
+ Simple horizontal BarChart
21
+
22
+ JanuaryFebruaryMarchAprilMayJune
23
+
24
+ #### React (tsx)
25
+
26
+ ```tsx
27
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
28
+ import Bar, { type RenderableText } from '@rio-cloud/rio-uikit/Bar';
29
+ import FormLabel from '@rio-cloud/rio-uikit/FormLabel';
30
+
31
+ export default () => {
32
+ return (
33
+ <>
34
+ <FormLabel>Simple horizontal BarChart</FormLabel>
35
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 max-width-500'>
36
+ <BarChart
37
+ data={data}
38
+ dataKey='label'
39
+ xAxisOptions={{ dataKey: 'label' }}
40
+ showYAxis={false}
41
+ margin={{ bottom: 15 }}
42
+ bars={[
43
+ <Bar
44
+ key='myBar'
45
+ dataKey='costs'
46
+ unit='€'
47
+ color='brand-primary'
48
+ radius={[3, 3, 0, 0]}
49
+ label={{
50
+ position: 'top',
51
+ formatter: (value: RenderableText) => `${value} €`,
52
+ }}
53
+ />,
54
+ ]}
55
+ />
56
+ </div>
57
+ </>
58
+ );
59
+ };
60
+
61
+ const data = [
62
+ {
63
+ label: 'January',
64
+ costs: 46.8,
65
+ },
66
+ {
67
+ label: 'February',
68
+ costs: 22.0,
69
+ },
70
+ {
71
+ label: 'March',
72
+ costs: 12.4,
73
+ },
74
+ {
75
+ label: 'April',
76
+ costs: 3.88,
77
+ },
78
+ {
79
+ label: 'May',
80
+ costs: 3.23,
81
+ },
82
+ {
83
+ label: 'June',
84
+ costs: 4.67,
85
+ },
86
+ ];
87
+ ```
88
+
89
+ #### HTML (html)
90
+
91
+ ```html
92
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5">Simple horizontal BarChart</div>
93
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 max-width-500">
94
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
95
+ <div style="width: 0px; height: 0px; overflow: visible;">
96
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
97
+ <div xmlns="http://www.w3.org/1999/xhtml" tabindex="-1" class="recharts-tooltip-wrapper" style="visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px;">
98
+ <div class="recharts-default-tooltip" role="status" aria-live="assertive" style="margin: 0px; padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); white-space: nowrap;">
99
+ <p class="recharts-tooltip-label" style="margin: 0px;">
100
+ </p>
101
+ </div>
102
+ </div>
103
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
104
+ <title>
105
+ </title>
106
+ <desc>
107
+ </desc>
108
+ <g tabindex="-1" id="recharts-zindex--100-:r1:">
109
+ </g>
110
+ <g tabindex="-1" id="recharts-zindex--50-:r2:">
111
+ </g>
112
+ <defs>
113
+ <clipPath id="recharts1-clip">
114
+ <rect x="0" y="0" height="223" width="468">
115
+ </rect>
116
+ </clipPath>
117
+ </defs>
118
+ <g tabindex="-1" id="recharts-zindex-100-:r4:">
119
+ </g>
120
+ <g tabindex="-1" id="recharts-zindex-200-:r5:">
121
+ </g>
122
+ <g tabindex="-1" id="recharts-zindex-300-:r6:">
123
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r3:">
124
+ <g class="recharts-layer recharts-bar-rectangles">
125
+ <g class="recharts-layer">
126
+ <g class="recharts-layer recharts-bar-rectangle">
127
+ <path fill="#30b4c0 " name="undefined" x="7.8" y="49.06000000000002" width="62" height="173.94" class="recharts-rectangle" d="M7.8,52.06000000000002A 3,3,0,0,1,10.8,49.06000000000002L 66.8,49.06000000000002A 3,3,0,0,1,
128
+ 69.8,52.06000000000002L 69.8,223L 7.8,223Z">
129
+ </path>
130
+ </g>
131
+ <g class="recharts-layer recharts-bar-rectangle">
132
+ <path fill="#30b4c0 " name="undefined" x="85.8" y="141.23333333333332" width="62" height="81.76666666666668" class="recharts-rectangle" d="M85.8,144.23333333333332A 3,3,0,0,1,88.8,141.23333333333332L 144.8,141.23333333333332A 3,3,0,0,1,
133
+ 147.8,144.23333333333332L 147.8,223L 85.8,223Z">
134
+ </path>
135
+ </g>
136
+ <g class="recharts-layer recharts-bar-rectangle">
137
+ <path fill="#30b4c0 " name="undefined" x="163.8" y="176.91333333333333" width="62" height="46.08666666666667" class="recharts-rectangle" d="M163.8,179.91333333333333A 3,3,0,0,1,166.8,176.91333333333333L 222.8,176.91333333333333A 3,3,0,0,1,
138
+ 225.8,179.91333333333333L 225.8,223L 163.8,223Z">
139
+ </path>
140
+ </g>
141
+ <g class="recharts-layer recharts-bar-rectangle">
142
+ <path fill="#30b4c0 " name="undefined" x="241.8" y="208.57933333333332" width="62" height="14.420666666666676" class="recharts-rectangle" d="M241.8,211.57933333333332A 3,3,0,0,1,244.8,208.57933333333332L 300.8,208.57933333333332A 3,3,0,0,1,
143
+ 303.8,211.57933333333332L 303.8,223L 241.8,223Z">
144
+ </path>
145
+ </g>
146
+ <g class="recharts-layer recharts-bar-rectangle">
147
+ <path fill="#30b4c0 " name="undefined" x="319.8" y="210.99516666666668" width="62" height="12.004833333333323" class="recharts-rectangle" d="M319.8,213.99516666666668A 3,3,0,0,1,322.8,210.99516666666668L 378.8,210.99516666666668A 3,3,0,0,1,
148
+ 381.8,213.99516666666668L 381.8,223L 319.8,223Z">
149
+ </path>
150
+ </g>
151
+ <g class="recharts-layer recharts-bar-rectangle">
152
+ <path fill="#30b4c0 " name="undefined" x="397.8" y="205.64316666666667" width="62" height="17.356833333333327" class="recharts-rectangle" d="M397.8,208.64316666666667A 3,3,0,0,1,400.8,205.64316666666667L 456.8,205.64316666666667A 3,3,0,0,1,
153
+ 459.8,208.64316666666667L 459.8,223L 397.8,223Z">
154
+ </path>
155
+ </g>
156
+ </g>
157
+ </g>
158
+ </g>
159
+ </g>
160
+ <g tabindex="-1" id="recharts-zindex-400-:r7:">
161
+ </g>
162
+ <g tabindex="-1" id="recharts-zindex-500-:r8:">
163
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
164
+ <line angle="0" height="30" orientation="bottom" x="0" y="223" width="468" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="0" y1="223" x2="468" y2="223">
165
+ </line>
166
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
167
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
168
+ <g class="recharts-layer recharts-cartesian-axis-tick">
169
+ <line angle="0" height="30" orientation="bottom" x="0" y="223" width="468" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="229" x2="39" y2="223">
170
+ </line>
171
+ </g>
172
+ <g class="recharts-layer recharts-cartesian-axis-tick">
173
+ <line angle="0" height="30" orientation="bottom" x="0" y="223" width="468" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="117" y1="229" x2="117" y2="223">
174
+ </line>
175
+ </g>
176
+ <g class="recharts-layer recharts-cartesian-axis-tick">
177
+ <line angle="0" height="30" orientation="bottom" x="0" y="223" width="468" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="195" y1="229" x2="195" y2="223">
178
+ </line>
179
+ </g>
180
+ <g class="recharts-layer recharts-cartesian-axis-tick">
181
+ <line angle="0" height="30" orientation="bottom" x="0" y="223" width="468" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="273" y1="229" x2="273" y2="223">
182
+ </line>
183
+ </g>
184
+ <g class="recharts-layer recharts-cartesian-axis-tick">
185
+ <line angle="0" height="30" orientation="bottom" x="0" y="223" width="468" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="351" y1="229" x2="351" y2="223">
186
+ </line>
187
+ </g>
188
+ <g class="recharts-layer recharts-cartesian-axis-tick">
189
+ <line angle="0" height="30" orientation="bottom" x="0" y="223" width="468" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="429" y1="229" x2="429" y2="223">
190
+ </line>
191
+ </g>
192
+ </g>
193
+ </g>
194
+ </g>
195
+ </g>
196
+ <g tabindex="-1" id="recharts-zindex-600-:r9:">
197
+ </g>
198
+ <g tabindex="-1" id="recharts-zindex-1000-:ra:">
199
+ </g>
200
+ <g tabindex="-1" id="recharts-zindex-1100-:rb:">
201
+ </g>
202
+ <g tabindex="-1" id="recharts-zindex-1200-:rc:">
203
+ </g>
204
+ <g tabindex="-1" id="recharts-zindex-2000-:rd:">
205
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
206
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
207
+ <text height="30" orientation="bottom" width="468" stroke="none" x="39" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
208
+ <tspan x="39" dy="0.71em">January</tspan>
209
+ </text>
210
+ </g>
211
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
212
+ <text height="30" orientation="bottom" width="468" stroke="none" x="117" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
213
+ <tspan x="117" dy="0.71em">February</tspan>
214
+ </text>
215
+ </g>
216
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
217
+ <text height="30" orientation="bottom" width="468" stroke="none" x="195" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
218
+ <tspan x="195" dy="0.71em">March</tspan>
219
+ </text>
220
+ </g>
221
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
222
+ <text height="30" orientation="bottom" width="468" stroke="none" x="273" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
223
+ <tspan x="273" dy="0.71em">April</tspan>
224
+ </text>
225
+ </g>
226
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
227
+ <text height="30" orientation="bottom" width="468" stroke="none" x="351" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
228
+ <tspan x="351" dy="0.71em">May</tspan>
229
+ </text>
230
+ </g>
231
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
232
+ <text height="30" orientation="bottom" width="468" stroke="none" x="429" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
233
+ <tspan x="429" dy="0.71em">June</tspan>
234
+ </text>
235
+ </g>
236
+ </g>
237
+ <g class="recharts-layer recharts-label-list">
238
+ <text width="62" height="49.06000000000002" offset="5" x="38.8" y="44.06000000000002" class="recharts-text recharts-label" text-anchor="middle" fill="#808080">
239
+ <tspan x="38.8" dy="0em">46.8 €</tspan>
240
+ </text>
241
+ <text width="62" height="141.23333333333332" offset="5" x="116.8" y="136.23333333333332" class="recharts-text recharts-label" text-anchor="middle" fill="#808080">
242
+ <tspan x="116.8" dy="0em">22 €</tspan>
243
+ </text>
244
+ <text width="62" height="176.91333333333333" offset="5" x="194.8" y="171.91333333333333" class="recharts-text recharts-label" text-anchor="middle" fill="#808080">
245
+ <tspan x="194.8" dy="0em">12.4 €</tspan>
246
+ </text>
247
+ <text width="62" height="208.57933333333332" offset="5" x="272.8" y="203.57933333333332" class="recharts-text recharts-label" text-anchor="middle" fill="#808080">
248
+ <tspan x="272.8" dy="0em">3.88 €</tspan>
249
+ </text>
250
+ <text width="62" height="210.99516666666668" offset="5" x="350.8" y="205.99516666666668" class="recharts-text recharts-label" text-anchor="middle" fill="#808080">
251
+ <tspan x="350.8" dy="0em">3.23 €</tspan>
252
+ </text>
253
+ <text width="62" height="205.64316666666667" offset="5" x="428.8" y="200.64316666666667" class="recharts-text recharts-label" text-anchor="middle" fill="#808080">
254
+ <tspan x="428.8" dy="0em">4.67 €</tspan>
255
+ </text>
256
+ </g>
257
+ </g>
258
+ </svg>
259
+ </div>
260
+ </div>
261
+ </div>
262
+ </div>
263
+ ```
264
+
265
+ #### Props: BarChart
266
+
267
+ ### BarChart
268
+
269
+ | Name | Type | Default | Description |
270
+ | --- | --- | --- | --- |
271
+ | width | Number | — | The width of chart container. |
272
+ | height | Number | — | The height of chart container. |
273
+ | data | Array | — | The source data, in which each element is an object. It has the following format: [{ name: "a", value: 12 }] Note: for some charts, the color of the individual data is taken from the color prop: [{ name: "a", value: 12, color: "color-coldplay-fountain" }] |
274
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
275
+ | dataUnit | string | — | The unit of data displayed in the chart. |
276
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
277
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
278
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
279
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
280
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
281
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
282
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
283
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
284
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
285
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
286
+ | tooltip | ChartTooltip \| Boolean | — | Defines whether or not the tooltip component shall be used. You can customize the tooltip by providing a custom ChartTooltip. Prop details can be found here: https://recharts.org/en-US/api/Tooltip. You can also customize the cursor color by setting a stroke or fill color in the cursor props. Details can be found here: https://recharts.org/en-US/api/Tooltip#cursor |
287
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
288
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
289
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
290
+
291
+ #### Props: Bar
292
+
293
+ ### Bar
294
+
295
+ | Name | Type | Default | Description |
296
+ | --- | --- | --- | --- |
297
+ | color | String | color-coldplay-fountain | Defines the color for the whole bar component instead of individual colors from the data. Take the color name from the charts colors page. |
298
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
299
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
300
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
301
+
302
+ #### Props: Legend
303
+
304
+ ### Legend
305
+
306
+ | Name | Type | Default | Description |
307
+ | --- | --- | --- | --- |
308
+ | iconType | String | square | Defines the type of the leading icon. |
309
+ | iconSize | String | 12 | Defines the size of the leading icon. |
310
+ | layout | String | vertical | Defines the layout of the legend. |
311
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
312
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
313
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
314
+
315
+ ### Example: Horizontal BarChart
316
+
317
+ Horizontal BarChart
318
+
319
+ JanuaryFebruaryMarchAprilMayJuneTimerange0 €15 €30 €45 €60 €Costs
320
+
321
+ #### Summary
322
+
323
+ Horizontal BarChart
324
+
325
+ JanuaryFebruaryMarchAprilMayJuneTimerange0 €15 €30 €45 €60 €Costs
326
+
327
+ #### React (tsx)
328
+
329
+ ```tsx
330
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
331
+ import Bar from '@rio-cloud/rio-uikit/Bar';
332
+ import FormLabel from '@rio-cloud/rio-uikit/FormLabel';
333
+
334
+ export default () => {
335
+ return (
336
+ <>
337
+ <FormLabel>Horizontal BarChart</FormLabel>
338
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 max-width-500'>
339
+ <BarChart
340
+ data={data}
341
+ dataKey='label'
342
+ showGrid
343
+ xAxisOptions={{
344
+ dataKey: 'label',
345
+ label: { value: 'Timerange', offset: 0, position: 'bottom' },
346
+ }}
347
+ yAxisOptions={{
348
+ unit: ' €',
349
+ label: { value: 'Costs', angle: -90, position: 'insideLeft' },
350
+ }}
351
+ margin={{ bottom: 15 }}
352
+ bars={[<Bar key='myBar' dataKey='costs' unit='€' radius={[3, 3, 0, 0]} barSize={20} />]}
353
+ />
354
+ </div>
355
+ </>
356
+ );
357
+ };
358
+
359
+ const data = [
360
+ {
361
+ label: 'January',
362
+ costs: 46.8,
363
+ },
364
+ {
365
+ label: 'February',
366
+ costs: 22.0,
367
+ },
368
+ {
369
+ label: 'March',
370
+ costs: 12.4,
371
+ },
372
+ {
373
+ label: 'April',
374
+ costs: 3.88,
375
+ },
376
+ {
377
+ label: 'May',
378
+ costs: 3.23,
379
+ },
380
+ {
381
+ label: 'June',
382
+ costs: 4.67,
383
+ },
384
+ ];
385
+ ```
386
+
387
+ #### HTML (html)
388
+
389
+ ```html
390
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5">Horizontal BarChart</div>
391
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 max-width-500">
392
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
393
+ <div style="width: 0px; height: 0px; overflow: visible;">
394
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
395
+ <div xmlns="http://www.w3.org/1999/xhtml" tabindex="-1" class="recharts-tooltip-wrapper" style="visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px;">
396
+ <div class="recharts-default-tooltip" role="status" aria-live="assertive" style="margin: 0px; padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); white-space: nowrap;">
397
+ <p class="recharts-tooltip-label" style="margin: 0px;">
398
+ </p>
399
+ </div>
400
+ </div>
401
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
402
+ <title>
403
+ </title>
404
+ <desc>
405
+ </desc>
406
+ <g tabindex="-1" id="recharts-zindex--100-:re:">
407
+ <g class="recharts-cartesian-grid">
408
+ <g class="recharts-cartesian-grid-horizontal">
409
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="60" y1="223" x2="468" y2="223">
410
+ </line>
411
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="60" y1="167.25" x2="468" y2="167.25">
412
+ </line>
413
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="60" y1="111.5" x2="468" y2="111.5">
414
+ </line>
415
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="60" y1="55.75" x2="468" y2="55.75">
416
+ </line>
417
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="60" y1="0" x2="468" y2="0">
418
+ </line>
419
+ </g>
420
+ <g class="recharts-cartesian-grid-vertical">
421
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="94" y1="0" x2="94" y2="223">
422
+ </line>
423
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="162" y1="0" x2="162" y2="223">
424
+ </line>
425
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="230" y1="0" x2="230" y2="223">
426
+ </line>
427
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="298" y1="0" x2="298" y2="223">
428
+ </line>
429
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="366" y1="0" x2="366" y2="223">
430
+ </line>
431
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="434" y1="0" x2="434" y2="223">
432
+ </line>
433
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="60" y1="0" x2="60" y2="223">
434
+ </line>
435
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="223" x1="468" y1="0" x2="468" y2="223">
436
+ </line>
437
+ </g>
438
+ </g>
439
+ </g>
440
+ <g tabindex="-1" id="recharts-zindex--50-:rf:">
441
+ </g>
442
+ <defs>
443
+ <clipPath id="recharts2-clip">
444
+ <rect x="60" y="0" height="223" width="408">
445
+ </rect>
446
+ </clipPath>
447
+ </defs>
448
+ <g tabindex="-1" id="recharts-zindex-100-:rh:">
449
+ </g>
450
+ <g tabindex="-1" id="recharts-zindex-200-:ri:">
451
+ </g>
452
+ <g tabindex="-1" id="recharts-zindex-300-:rj:">
453
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:rg:">
454
+ <g class="recharts-layer recharts-bar-rectangles">
455
+ <g class="recharts-layer">
456
+ <g class="recharts-layer recharts-bar-rectangle">
457
+ <path fill="#67abc5 " name="undefined" x="84" y="49.06000000000002" width="20" height="173.94" class="recharts-rectangle" d="M84,52.06000000000002A 3,3,0,0,1,87,49.06000000000002L 101,49.06000000000002A 3,3,0,0,1,
458
+ 104,52.06000000000002L 104,223L 84,223Z">
459
+ </path>
460
+ </g>
461
+ <g class="recharts-layer recharts-bar-rectangle">
462
+ <path fill="#67abc5 " name="undefined" x="152" y="141.23333333333332" width="20" height="81.76666666666668" class="recharts-rectangle" d="M152,144.23333333333332A 3,3,0,0,1,155,141.23333333333332L 169,141.23333333333332A 3,3,0,0,1,
463
+ 172,144.23333333333332L 172,223L 152,223Z">
464
+ </path>
465
+ </g>
466
+ <g class="recharts-layer recharts-bar-rectangle">
467
+ <path fill="#67abc5 " name="undefined" x="220" y="176.91333333333333" width="20" height="46.08666666666667" class="recharts-rectangle" d="M220,179.91333333333333A 3,3,0,0,1,223,176.91333333333333L 237,176.91333333333333A 3,3,0,0,1,
468
+ 240,179.91333333333333L 240,223L 220,223Z">
469
+ </path>
470
+ </g>
471
+ <g class="recharts-layer recharts-bar-rectangle">
472
+ <path fill="#67abc5 " name="undefined" x="288" y="208.57933333333332" width="20" height="14.420666666666676" class="recharts-rectangle" d="M288,211.57933333333332A 3,3,0,0,1,291,208.57933333333332L 305,208.57933333333332A 3,3,0,0,1,
473
+ 308,211.57933333333332L 308,223L 288,223Z">
474
+ </path>
475
+ </g>
476
+ <g class="recharts-layer recharts-bar-rectangle">
477
+ <path fill="#67abc5 " name="undefined" x="356" y="210.99516666666668" width="20" height="12.004833333333323" class="recharts-rectangle" d="M356,213.99516666666668A 3,3,0,0,1,359,210.99516666666668L 373,210.99516666666668A 3,3,0,0,1,
478
+ 376,213.99516666666668L 376,223L 356,223Z">
479
+ </path>
480
+ </g>
481
+ <g class="recharts-layer recharts-bar-rectangle">
482
+ <path fill="#67abc5 " name="undefined" x="424" y="205.64316666666667" width="20" height="17.356833333333327" class="recharts-rectangle" d="M424,208.64316666666667A 3,3,0,0,1,427,205.64316666666667L 441,205.64316666666667A 3,3,0,0,1,
483
+ 444,208.64316666666667L 444,223L 424,223Z">
484
+ </path>
485
+ </g>
486
+ </g>
487
+ </g>
488
+ </g>
489
+ </g>
490
+ <g tabindex="-1" id="recharts-zindex-400-:rk:">
491
+ </g>
492
+ <g tabindex="-1" id="recharts-zindex-500-:rl:">
493
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
494
+ <line angle="0" height="30" orientation="bottom" x="60" y="223" width="408" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="60" y1="223" x2="468" y2="223">
495
+ </line>
496
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
497
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
498
+ <g class="recharts-layer recharts-cartesian-axis-tick">
499
+ <line angle="0" height="30" orientation="bottom" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="94" y1="229" x2="94" y2="223">
500
+ </line>
501
+ </g>
502
+ <g class="recharts-layer recharts-cartesian-axis-tick">
503
+ <line angle="0" height="30" orientation="bottom" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="162" y1="229" x2="162" y2="223">
504
+ </line>
505
+ </g>
506
+ <g class="recharts-layer recharts-cartesian-axis-tick">
507
+ <line angle="0" height="30" orientation="bottom" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="230" y1="229" x2="230" y2="223">
508
+ </line>
509
+ </g>
510
+ <g class="recharts-layer recharts-cartesian-axis-tick">
511
+ <line angle="0" height="30" orientation="bottom" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="298" y1="229" x2="298" y2="223">
512
+ </line>
513
+ </g>
514
+ <g class="recharts-layer recharts-cartesian-axis-tick">
515
+ <line angle="0" height="30" orientation="bottom" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="366" y1="229" x2="366" y2="223">
516
+ </line>
517
+ </g>
518
+ <g class="recharts-layer recharts-cartesian-axis-tick">
519
+ <line angle="0" height="30" orientation="bottom" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="434" y1="229" x2="434" y2="223">
520
+ </line>
521
+ </g>
522
+ </g>
523
+ </g>
524
+ </g>
525
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
526
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="223" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="60" y1="0" x2="60" y2="223">
527
+ </line>
528
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
529
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
530
+ <g class="recharts-layer recharts-cartesian-axis-tick">
531
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="223" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="54" y1="223" x2="60" y2="223">
532
+ </line>
533
+ </g>
534
+ <g class="recharts-layer recharts-cartesian-axis-tick">
535
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="223" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="54" y1="167.25" x2="60" y2="167.25">
536
+ </line>
537
+ </g>
538
+ <g class="recharts-layer recharts-cartesian-axis-tick">
539
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="223" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="54" y1="111.5" x2="60" y2="111.5">
540
+ </line>
541
+ </g>
542
+ <g class="recharts-layer recharts-cartesian-axis-tick">
543
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="223" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="54" y1="55.75" x2="60" y2="55.75">
544
+ </line>
545
+ </g>
546
+ <g class="recharts-layer recharts-cartesian-axis-tick">
547
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="223" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="54" y1="0" x2="60" y2="0">
548
+ </line>
549
+ </g>
550
+ </g>
551
+ </g>
552
+ </g>
553
+ </g>
554
+ <g tabindex="-1" id="recharts-zindex-600-:rm:">
555
+ </g>
556
+ <g tabindex="-1" id="recharts-zindex-1000-:rn:">
557
+ </g>
558
+ <g tabindex="-1" id="recharts-zindex-1100-:ro:">
559
+ </g>
560
+ <g tabindex="-1" id="recharts-zindex-1200-:rp:">
561
+ </g>
562
+ <g tabindex="-1" id="recharts-zindex-2000-:rq:">
563
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
564
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
565
+ <text height="30" orientation="bottom" width="408" stroke="none" x="94" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
566
+ <tspan x="94" dy="0.71em">January</tspan>
567
+ </text>
568
+ </g>
569
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
570
+ <text height="30" orientation="bottom" width="408" stroke="none" x="162" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
571
+ <tspan x="162" dy="0.71em">February</tspan>
572
+ </text>
573
+ </g>
574
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
575
+ <text height="30" orientation="bottom" width="408" stroke="none" x="230" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
576
+ <tspan x="230" dy="0.71em">March</tspan>
577
+ </text>
578
+ </g>
579
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
580
+ <text height="30" orientation="bottom" width="408" stroke="none" x="298" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
581
+ <tspan x="298" dy="0.71em">April</tspan>
582
+ </text>
583
+ </g>
584
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
585
+ <text height="30" orientation="bottom" width="408" stroke="none" x="366" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
586
+ <tspan x="366" dy="0.71em">May</tspan>
587
+ </text>
588
+ </g>
589
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
590
+ <text height="30" orientation="bottom" width="408" stroke="none" x="434" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
591
+ <tspan x="434" dy="0.71em">June</tspan>
592
+ </text>
593
+ </g>
594
+ </g>
595
+ <text offset="0" x="264" y="253" class="recharts-text recharts-label" text-anchor="middle" fill="#808080">
596
+ <tspan x="264" dy="0.71em">Timerange</tspan>
597
+ </text>
598
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
599
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
600
+ <text orientation="left" width="60" height="223" stroke="none" x="52" y="223" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
601
+ <tspan x="52" dy="0.355em">0 €</tspan>
602
+ </text>
603
+ </g>
604
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
605
+ <text orientation="left" width="60" height="223" stroke="none" x="52" y="167.25" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
606
+ <tspan x="52" dy="0.355em">15 €</tspan>
607
+ </text>
608
+ </g>
609
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
610
+ <text orientation="left" width="60" height="223" stroke="none" x="52" y="111.5" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
611
+ <tspan x="52" dy="0.355em">30 €</tspan>
612
+ </text>
613
+ </g>
614
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
615
+ <text orientation="left" width="60" height="223" stroke="none" x="52" y="55.75" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
616
+ <tspan x="52" dy="0.355em">45 €</tspan>
617
+ </text>
618
+ </g>
619
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
620
+ <text orientation="left" width="60" height="223" stroke="none" x="52" y="10" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
621
+ <tspan x="52" dy="0.355em">60 €</tspan>
622
+ </text>
623
+ </g>
624
+ </g>
625
+ <text offset="5" transform="rotate(-90, 5, 111.5)" x="5" y="111.5" class="recharts-text recharts-label" text-anchor="start" fill="#808080">
626
+ <tspan x="5" dy="0.355em">Costs</tspan>
627
+ </text>
628
+ </g>
629
+ </svg>
630
+ </div>
631
+ </div>
632
+ </div>
633
+ </div>
634
+ ```
635
+
636
+ #### Props: BarChart
637
+
638
+ ### BarChart
639
+
640
+ | Name | Type | Default | Description |
641
+ | --- | --- | --- | --- |
642
+ | width | Number | — | The width of chart container. |
643
+ | height | Number | — | The height of chart container. |
644
+ | data | Array | — | The source data, in which each element is an object. It has the following format: [{ name: "a", value: 12 }] Note: for some charts, the color of the individual data is taken from the color prop: [{ name: "a", value: 12, color: "color-coldplay-fountain" }] |
645
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
646
+ | dataUnit | string | — | The unit of data displayed in the chart. |
647
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
648
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
649
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
650
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
651
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
652
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
653
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
654
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
655
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
656
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
657
+ | tooltip | ChartTooltip \| Boolean | — | Defines whether or not the tooltip component shall be used. You can customize the tooltip by providing a custom ChartTooltip. Prop details can be found here: https://recharts.org/en-US/api/Tooltip. You can also customize the cursor color by setting a stroke or fill color in the cursor props. Details can be found here: https://recharts.org/en-US/api/Tooltip#cursor |
658
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
659
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
660
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
661
+
662
+ #### Props: Bar
663
+
664
+ ### Bar
665
+
666
+ | Name | Type | Default | Description |
667
+ | --- | --- | --- | --- |
668
+ | color | String | color-coldplay-fountain | Defines the color for the whole bar component instead of individual colors from the data. Take the color name from the charts colors page. |
669
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
670
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
671
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
672
+
673
+ #### Props: Legend
674
+
675
+ ### Legend
676
+
677
+ | Name | Type | Default | Description |
678
+ | --- | --- | --- | --- |
679
+ | iconType | String | square | Defines the type of the leading icon. |
680
+ | iconSize | String | 12 | Defines the size of the leading icon. |
681
+ | layout | String | vertical | Defines the layout of the legend. |
682
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
683
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
684
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
685
+
686
+ ### Example: pv
687
+
688
+ Multiple Bars BarChart
689
+
690
+ pv
691
+ uv
692
+
693
+ Page APage BPage CPage DPage EPage FPage G025005000750010000
694
+
695
+ #### Summary
696
+
697
+ Multiple Bars BarChart
698
+
699
+ pv
700
+ uv
701
+
702
+ Page APage BPage CPage DPage EPage FPage G025005000750010000
703
+
704
+ #### React (tsx)
705
+
706
+ ```tsx
707
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
708
+ import Bar from '@rio-cloud/rio-uikit/Bar';
709
+ import Legend, { type LegendPayload } from '@rio-cloud/rio-uikit/Legend';
710
+
711
+ type CustomData = {
712
+ name: string;
713
+ uv: number;
714
+ pv: number;
715
+ };
716
+
717
+ export default () => {
718
+ return (
719
+ <>
720
+ <label>Multiple Bars BarChart</label>
721
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 min-width-300 max-width-500'>
722
+ <BarChart
723
+ data={data}
724
+ dataKey='name'
725
+ legend={
726
+ <Legend
727
+ layout='horizontal'
728
+ verticalAlign='bottom'
729
+ align='center'
730
+ formatter={(value: string | number, _entry: LegendPayload) => (
731
+ <span className='text-color-dark'>{value}</span>
732
+ )}
733
+ />
734
+ }
735
+ showGrid
736
+ gridOptions={{ vertical: false }}
737
+ xAxisOptions={{ dataKey: 'name' }}
738
+ yAxisOptions={{ width: 40 }}
739
+ bars={[
740
+ <Bar key='pv' dataKey='pv' color='color-coldplay-moos' />,
741
+ <Bar key='uv' dataKey='uv' color='color-warmup-crimson' />,
742
+ ]}
743
+ />
744
+ </div>
745
+ </>
746
+ );
747
+ };
748
+
749
+ const data: CustomData[] = [
750
+ { name: 'Page A', uv: 4000, pv: 2400 },
751
+ { name: 'Page B', uv: 3000, pv: 1398 },
752
+ { name: 'Page C', uv: 2000, pv: 9800 },
753
+ { name: 'Page D', uv: 2780, pv: 3908 },
754
+ { name: 'Page E', uv: 1890, pv: 4800 },
755
+ { name: 'Page F', uv: 2390, pv: 3800 },
756
+ { name: 'Page G', uv: 3490, pv: 4300 },
757
+ ];
758
+ ```
759
+
760
+ #### HTML (html)
761
+
762
+ ```html
763
+ <label>Multiple Bars BarChart</label>
764
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 min-width-300 max-width-500">
765
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
766
+ <div style="width: 0px; height: 0px; overflow: visible;">
767
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
768
+ <div xmlns="http://www.w3.org/1999/xhtml" tabindex="-1" class="recharts-tooltip-wrapper" style="visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px;">
769
+ <div class="recharts-default-tooltip" role="status" aria-live="assertive" style="margin: 0px; padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); white-space: nowrap;">
770
+ <p class="recharts-tooltip-label" style="margin: 0px;">
771
+ </p>
772
+ </div>
773
+ </div>
774
+ <div class="recharts-legend-wrapper" style="position: absolute; width: 458px; height: auto; left: 5px; bottom: 5px;">
775
+ <ul class="recharts-default-legend" style="padding: 0px; margin: 0px; text-align: center;">
776
+ <li class="recharts-legend-item legend-item-0" style="display: inline-block; margin-right: 10px;">
777
+ <svg aria-label="[object Object] legend icon" class="recharts-surface" width="12" height="12" viewBox="0 0 32 32" style="display: inline-block; vertical-align: middle; margin-right: 4px;">
778
+ <title>
779
+ </title>
780
+ <desc>
781
+ </desc>
782
+ <path fill="#a1daa3 " cx="16" cy="16" class="recharts-symbols" transform="translate(16, 16)" d="M16,0A16,16,0,1,1,-16,0A16,16,0,1,1,16,0">
783
+ </path>
784
+ </svg>
785
+ <span class="recharts-legend-item-text" style="color: rgb(161, 218, 163);">
786
+ <span class="text-color-dark">pv</span>
787
+ </span>
788
+ </li>
789
+ <li class="recharts-legend-item legend-item-1" style="display: inline-block; margin-right: 10px;">
790
+ <svg aria-label="[object Object] legend icon" class="recharts-surface" width="12" height="12" viewBox="0 0 32 32" style="display: inline-block; vertical-align: middle; margin-right: 4px;">
791
+ <title>
792
+ </title>
793
+ <desc>
794
+ </desc>
795
+ <path fill="#31144f " cx="16" cy="16" class="recharts-symbols" transform="translate(16, 16)" d="M16,0A16,16,0,1,1,-16,0A16,16,0,1,1,16,0">
796
+ </path>
797
+ </svg>
798
+ <span class="recharts-legend-item-text" style="color: rgb(49, 20, 79);">
799
+ <span class="text-color-dark">uv</span>
800
+ </span>
801
+ </li>
802
+ </ul>
803
+ </div>
804
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
805
+ <title>
806
+ </title>
807
+ <desc>
808
+ </desc>
809
+ <g tabindex="-1" id="recharts-zindex--100-:rr:">
810
+ <g class="recharts-cartesian-grid">
811
+ <g class="recharts-cartesian-grid-horizontal">
812
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="213" x2="463" y2="213">
813
+ </line>
814
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="161" x2="463" y2="161">
815
+ </line>
816
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="109" x2="463" y2="109">
817
+ </line>
818
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="57" x2="463" y2="57">
819
+ </line>
820
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="5" x2="463" y2="5">
821
+ </line>
822
+ </g>
823
+ </g>
824
+ </g>
825
+ <g tabindex="-1" id="recharts-zindex--50-:rs:">
826
+ </g>
827
+ <defs>
828
+ <clipPath id="recharts3-clip">
829
+ <rect x="45" y="5" height="208" width="418">
830
+ </rect>
831
+ </clipPath>
832
+ </defs>
833
+ <g tabindex="-1" id="recharts-zindex-100-:rv:">
834
+ </g>
835
+ <g tabindex="-1" id="recharts-zindex-200-:r10:">
836
+ </g>
837
+ <g tabindex="-1" id="recharts-zindex-300-:r11:">
838
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:rt:">
839
+ <g class="recharts-layer recharts-bar-rectangles">
840
+ <g class="recharts-layer">
841
+ <g class="recharts-layer recharts-bar-rectangle">
842
+ <path fill="#a1daa3 " name="Page A" x="50.971428571428575" y="163.07999999999998" width="21" height="49.920000000000016" radius="0" class="recharts-rectangle" d="M 50.971428571428575,163.07999999999998 h 21 v 49.920000000000016 h -21 Z">
843
+ </path>
844
+ </g>
845
+ <g class="recharts-layer recharts-bar-rectangle">
846
+ <path fill="#a1daa3 " name="Page B" x="110.6857142857143" y="183.9216" width="21" height="29.078399999999988" radius="0" class="recharts-rectangle" d="M 110.6857142857143,183.9216 h 21 v 29.078399999999988 h -21 Z">
847
+ </path>
848
+ </g>
849
+ <g class="recharts-layer recharts-bar-rectangle">
850
+ <path fill="#a1daa3 " name="Page C" x="170.4" y="9.160000000000004" width="21" height="203.84" radius="0" class="recharts-rectangle" d="M 170.4,9.160000000000004 h 21 v 203.84 h -21 Z">
851
+ </path>
852
+ </g>
853
+ <g class="recharts-layer recharts-bar-rectangle">
854
+ <path fill="#a1daa3 " name="Page D" x="230.1142857142857" y="131.7136" width="21" height="81.28639999999999" radius="0" class="recharts-rectangle" d="M 230.1142857142857,131.7136 h 21 v 81.28639999999999 h -21 Z">
855
+ </path>
856
+ </g>
857
+ <g class="recharts-layer recharts-bar-rectangle">
858
+ <path fill="#a1daa3 " name="Page E" x="289.8285714285715" y="113.16000000000001" width="21" height="99.83999999999999" radius="0" class="recharts-rectangle" d="M 289.8285714285715,113.16000000000001 h 21 v 99.83999999999999 h -21 Z">
859
+ </path>
860
+ </g>
861
+ <g class="recharts-layer recharts-bar-rectangle">
862
+ <path fill="#a1daa3 " name="Page F" x="349.54285714285714" y="133.96" width="21" height="79.03999999999999" radius="0" class="recharts-rectangle" d="M 349.54285714285714,133.96 h 21 v 79.03999999999999 h -21 Z">
863
+ </path>
864
+ </g>
865
+ <g class="recharts-layer recharts-bar-rectangle">
866
+ <path fill="#a1daa3 " name="Page G" x="409.25714285714287" y="123.56000000000002" width="21" height="89.43999999999998" radius="0" class="recharts-rectangle" d="M 409.25714285714287,123.56000000000002 h 21 v 89.43999999999998 h -21 Z">
867
+ </path>
868
+ </g>
869
+ </g>
870
+ </g>
871
+ </g>
872
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:ru:">
873
+ <g class="recharts-layer recharts-bar-rectangles">
874
+ <g class="recharts-layer">
875
+ <g class="recharts-layer recharts-bar-rectangle">
876
+ <path fill="#31144f " name="Page A" x="75.97142857142858" y="129.8" width="21" height="83.19999999999999" radius="0" class="recharts-rectangle" d="M 75.97142857142858,129.8 h 21 v 83.19999999999999 h -21 Z">
877
+ </path>
878
+ </g>
879
+ <g class="recharts-layer recharts-bar-rectangle">
880
+ <path fill="#31144f " name="Page B" x="135.68571428571428" y="150.6" width="21" height="62.400000000000006" radius="0" class="recharts-rectangle" d="M 135.68571428571428,150.6 h 21 v 62.400000000000006 h -21 Z">
881
+ </path>
882
+ </g>
883
+ <g class="recharts-layer recharts-bar-rectangle">
884
+ <path fill="#31144f " name="Page C" x="195.4" y="171.4" width="21" height="41.599999999999994" radius="0" class="recharts-rectangle" d="M 195.4,171.4 h 21 v 41.599999999999994 h -21 Z">
885
+ </path>
886
+ </g>
887
+ <g class="recharts-layer recharts-bar-rectangle">
888
+ <path fill="#31144f " name="Page D" x="255.1142857142857" y="155.176" width="21" height="57.82400000000001" radius="0" class="recharts-rectangle" d="M 255.1142857142857,155.176 h 21 v 57.82400000000001 h -21 Z">
889
+ </path>
890
+ </g>
891
+ <g class="recharts-layer recharts-bar-rectangle">
892
+ <path fill="#31144f " name="Page E" x="314.8285714285715" y="173.688" width="21" height="39.31200000000001" radius="0" class="recharts-rectangle" d="M 314.8285714285715,173.688 h 21 v 39.31200000000001 h -21 Z">
893
+ </path>
894
+ </g>
895
+ <g class="recharts-layer recharts-bar-rectangle">
896
+ <path fill="#31144f " name="Page F" x="374.54285714285714" y="163.28799999999998" width="21" height="49.71200000000002" radius="0" class="recharts-rectangle" d="M 374.54285714285714,163.28799999999998 h 21 v 49.71200000000002 h -21 Z">
897
+ </path>
898
+ </g>
899
+ <g class="recharts-layer recharts-bar-rectangle">
900
+ <path fill="#31144f " name="Page G" x="434.25714285714287" y="140.40800000000002" width="21" height="72.59199999999998" radius="0" class="recharts-rectangle" d="M 434.25714285714287,140.40800000000002 h 21 v 72.59199999999998 h -21 Z">
901
+ </path>
902
+ </g>
903
+ </g>
904
+ </g>
905
+ </g>
906
+ </g>
907
+ <g tabindex="-1" id="recharts-zindex-400-:r12:">
908
+ </g>
909
+ <g tabindex="-1" id="recharts-zindex-500-:r13:">
910
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
911
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="45" y1="213" x2="463" y2="213">
912
+ </line>
913
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
914
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
915
+ <g class="recharts-layer recharts-cartesian-axis-tick">
916
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="74.85714285714286" y1="219" x2="74.85714285714286" y2="213">
917
+ </line>
918
+ </g>
919
+ <g class="recharts-layer recharts-cartesian-axis-tick">
920
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="134.57142857142858" y1="219" x2="134.57142857142858" y2="213">
921
+ </line>
922
+ </g>
923
+ <g class="recharts-layer recharts-cartesian-axis-tick">
924
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="194.2857142857143" y1="219" x2="194.2857142857143" y2="213">
925
+ </line>
926
+ </g>
927
+ <g class="recharts-layer recharts-cartesian-axis-tick">
928
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="254" y1="219" x2="254" y2="213">
929
+ </line>
930
+ </g>
931
+ <g class="recharts-layer recharts-cartesian-axis-tick">
932
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="313.7142857142857" y1="219" x2="313.7142857142857" y2="213">
933
+ </line>
934
+ </g>
935
+ <g class="recharts-layer recharts-cartesian-axis-tick">
936
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="373.4285714285714" y1="219" x2="373.4285714285714" y2="213">
937
+ </line>
938
+ </g>
939
+ <g class="recharts-layer recharts-cartesian-axis-tick">
940
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="433.1428571428571" y1="219" x2="433.1428571428571" y2="213">
941
+ </line>
942
+ </g>
943
+ </g>
944
+ </g>
945
+ </g>
946
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
947
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="45" y1="5" x2="45" y2="213">
948
+ </line>
949
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
950
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
951
+ <g class="recharts-layer recharts-cartesian-axis-tick">
952
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="213" x2="45" y2="213">
953
+ </line>
954
+ </g>
955
+ <g class="recharts-layer recharts-cartesian-axis-tick">
956
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="161" x2="45" y2="161">
957
+ </line>
958
+ </g>
959
+ <g class="recharts-layer recharts-cartesian-axis-tick">
960
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="109" x2="45" y2="109">
961
+ </line>
962
+ </g>
963
+ <g class="recharts-layer recharts-cartesian-axis-tick">
964
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="57" x2="45" y2="57">
965
+ </line>
966
+ </g>
967
+ <g class="recharts-layer recharts-cartesian-axis-tick">
968
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="5" x2="45" y2="5">
969
+ </line>
970
+ </g>
971
+ </g>
972
+ </g>
973
+ </g>
974
+ </g>
975
+ <g tabindex="-1" id="recharts-zindex-600-:r14:">
976
+ </g>
977
+ <g tabindex="-1" id="recharts-zindex-1000-:r15:">
978
+ </g>
979
+ <g tabindex="-1" id="recharts-zindex-1100-:r16:">
980
+ </g>
981
+ <g tabindex="-1" id="recharts-zindex-1200-:r17:">
982
+ </g>
983
+ <g tabindex="-1" id="recharts-zindex-2000-:r18:">
984
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
985
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
986
+ <text height="30" orientation="bottom" width="418" stroke="none" x="74.85714285714286" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
987
+ <tspan x="74.85714285714286" dy="0.71em">Page A</tspan>
988
+ </text>
989
+ </g>
990
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
991
+ <text height="30" orientation="bottom" width="418" stroke="none" x="134.57142857142858" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
992
+ <tspan x="134.57142857142858" dy="0.71em">Page B</tspan>
993
+ </text>
994
+ </g>
995
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
996
+ <text height="30" orientation="bottom" width="418" stroke="none" x="194.2857142857143" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
997
+ <tspan x="194.2857142857143" dy="0.71em">Page C</tspan>
998
+ </text>
999
+ </g>
1000
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1001
+ <text height="30" orientation="bottom" width="418" stroke="none" x="254" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1002
+ <tspan x="254" dy="0.71em">Page D</tspan>
1003
+ </text>
1004
+ </g>
1005
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1006
+ <text height="30" orientation="bottom" width="418" stroke="none" x="313.7142857142857" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1007
+ <tspan x="313.7142857142857" dy="0.71em">Page E</tspan>
1008
+ </text>
1009
+ </g>
1010
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1011
+ <text height="30" orientation="bottom" width="418" stroke="none" x="373.4285714285714" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1012
+ <tspan x="373.4285714285714" dy="0.71em">Page F</tspan>
1013
+ </text>
1014
+ </g>
1015
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1016
+ <text height="30" orientation="bottom" width="418" stroke="none" x="433.1428571428571" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1017
+ <tspan x="433.1428571428571" dy="0.71em">Page G</tspan>
1018
+ </text>
1019
+ </g>
1020
+ </g>
1021
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
1022
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1023
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="213" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1024
+ <tspan x="37" dy="0.355em">0</tspan>
1025
+ </text>
1026
+ </g>
1027
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1028
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="161" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1029
+ <tspan x="37" dy="0.355em">2500</tspan>
1030
+ </text>
1031
+ </g>
1032
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1033
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="109" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1034
+ <tspan x="37" dy="0.355em">5000</tspan>
1035
+ </text>
1036
+ </g>
1037
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1038
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="57" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1039
+ <tspan x="37" dy="0.355em">7500</tspan>
1040
+ </text>
1041
+ </g>
1042
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1043
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="10" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1044
+ <tspan x="37" dy="0.355em">10000</tspan>
1045
+ </text>
1046
+ </g>
1047
+ </g>
1048
+ </g>
1049
+ </svg>
1050
+ </div>
1051
+ </div>
1052
+ </div>
1053
+ </div>
1054
+ ```
1055
+
1056
+ #### Props: BarChart
1057
+
1058
+ ### BarChart
1059
+
1060
+ | Name | Type | Default | Description |
1061
+ | --- | --- | --- | --- |
1062
+ | width | Number | — | The width of chart container. |
1063
+ | height | Number | — | The height of chart container. |
1064
+ | data | Array | — | The source data, in which each element is an object. It has the following format: [{ name: "a", value: 12 }] Note: for some charts, the color of the individual data is taken from the color prop: [{ name: "a", value: 12, color: "color-coldplay-fountain" }] |
1065
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
1066
+ | dataUnit | string | — | The unit of data displayed in the chart. |
1067
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
1068
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
1069
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
1070
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
1071
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
1072
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
1073
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
1074
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
1075
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
1076
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
1077
+ | tooltip | ChartTooltip \| Boolean | — | Defines whether or not the tooltip component shall be used. You can customize the tooltip by providing a custom ChartTooltip. Prop details can be found here: https://recharts.org/en-US/api/Tooltip. You can also customize the cursor color by setting a stroke or fill color in the cursor props. Details can be found here: https://recharts.org/en-US/api/Tooltip#cursor |
1078
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
1079
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
1080
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
1081
+
1082
+ #### Props: Bar
1083
+
1084
+ ### Bar
1085
+
1086
+ | Name | Type | Default | Description |
1087
+ | --- | --- | --- | --- |
1088
+ | color | String | color-coldplay-fountain | Defines the color for the whole bar component instead of individual colors from the data. Take the color name from the charts colors page. |
1089
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
1090
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
1091
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
1092
+
1093
+ #### Props: Legend
1094
+
1095
+ ### Legend
1096
+
1097
+ | Name | Type | Default | Description |
1098
+ | --- | --- | --- | --- |
1099
+ | iconType | String | square | Defines the type of the leading icon. |
1100
+ | iconSize | String | 12 | Defines the size of the leading icon. |
1101
+ | layout | String | vertical | Defines the layout of the legend. |
1102
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
1103
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
1104
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
1105
+
1106
+ ### Example: Example 4
1107
+
1108
+ Stacked BarChart
1109
+
1110
+ pv
1111
+ uv
1112
+
1113
+ Page APage BPage CPage DPage EPage FPage G030006000900012000
1114
+
1115
+ #### Summary
1116
+
1117
+ Stacked BarChart
1118
+
1119
+ pv
1120
+ uv
1121
+
1122
+ Page APage BPage CPage DPage EPage FPage G030006000900012000
1123
+
1124
+ #### React (tsx)
1125
+
1126
+ ```tsx
1127
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
1128
+ import Bar from '@rio-cloud/rio-uikit/Bar';
1129
+ import Legend from '@rio-cloud/rio-uikit/Legend';
1130
+
1131
+ export default () => {
1132
+ return (
1133
+ <>
1134
+ <label>Stacked BarChart</label>
1135
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 max-width-500'>
1136
+ <BarChart
1137
+ data={data}
1138
+ dataKey='name'
1139
+ legend={<Legend layout='horizontal' verticalAlign='bottom' align='center' />}
1140
+ showGrid
1141
+ gridOptions={{ vertical: false }}
1142
+ xAxisOptions={{ dataKey: 'name' }}
1143
+ yAxisOptions={{ width: 40 }}
1144
+ bars={[
1145
+ <Bar key='pv' dataKey='pv' stackId='a' barSize={26} color='color-coldplay-moos' />,
1146
+ <Bar key='uv' dataKey='uv' stackId='a' barSize={26} color='color-coldplay-fountain' />,
1147
+ ]}
1148
+ />
1149
+ </div>
1150
+ </>
1151
+ );
1152
+ };
1153
+
1154
+ const data = [
1155
+ {
1156
+ name: 'Page A',
1157
+ uv: 4000,
1158
+ pv: 2400,
1159
+ },
1160
+ {
1161
+ name: 'Page B',
1162
+ uv: 3000,
1163
+ pv: 1398,
1164
+ },
1165
+ {
1166
+ name: 'Page C',
1167
+ uv: 2000,
1168
+ pv: 9800,
1169
+ },
1170
+ {
1171
+ name: 'Page D',
1172
+ uv: 2780,
1173
+ pv: 3908,
1174
+ },
1175
+ {
1176
+ name: 'Page E',
1177
+ uv: 1890,
1178
+ pv: 4800,
1179
+ },
1180
+ {
1181
+ name: 'Page F',
1182
+ uv: 2390,
1183
+ pv: 3800,
1184
+ },
1185
+ {
1186
+ name: 'Page G',
1187
+ uv: 3490,
1188
+ pv: 4300,
1189
+ },
1190
+ ];
1191
+ ```
1192
+
1193
+ #### HTML (html)
1194
+
1195
+ ```html
1196
+ <label>Stacked BarChart</label>
1197
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 max-width-500">
1198
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
1199
+ <div style="width: 0px; height: 0px; overflow: visible;">
1200
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
1201
+ <div xmlns="http://www.w3.org/1999/xhtml" tabindex="-1" class="recharts-tooltip-wrapper" style="visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px;">
1202
+ <div class="recharts-default-tooltip" role="status" aria-live="assertive" style="margin: 0px; padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); white-space: nowrap;">
1203
+ <p class="recharts-tooltip-label" style="margin: 0px;">
1204
+ </p>
1205
+ </div>
1206
+ </div>
1207
+ <div class="recharts-legend-wrapper" style="position: absolute; width: 458px; height: auto; left: 5px; bottom: 5px;">
1208
+ <ul class="recharts-default-legend" style="padding: 0px; margin: 0px; text-align: center;">
1209
+ <li class="recharts-legend-item legend-item-0" style="display: inline-block; margin-right: 10px;">
1210
+ <svg aria-label="pv legend icon" class="recharts-surface" width="12" height="12" viewBox="0 0 32 32" style="display: inline-block; vertical-align: middle; margin-right: 4px;">
1211
+ <title>
1212
+ </title>
1213
+ <desc>
1214
+ </desc>
1215
+ <path fill="#a1daa3 " cx="16" cy="16" class="recharts-symbols" transform="translate(16, 16)" d="M16,0A16,16,0,1,1,-16,0A16,16,0,1,1,16,0">
1216
+ </path>
1217
+ </svg>
1218
+ <span class="recharts-legend-item-text" style="color: rgb(161, 218, 163);">pv</span>
1219
+ </li>
1220
+ <li class="recharts-legend-item legend-item-1" style="display: inline-block; margin-right: 10px;">
1221
+ <svg aria-label="uv legend icon" class="recharts-surface" width="12" height="12" viewBox="0 0 32 32" style="display: inline-block; vertical-align: middle; margin-right: 4px;">
1222
+ <title>
1223
+ </title>
1224
+ <desc>
1225
+ </desc>
1226
+ <path fill="#67abc5 " cx="16" cy="16" class="recharts-symbols" transform="translate(16, 16)" d="M16,0A16,16,0,1,1,-16,0A16,16,0,1,1,16,0">
1227
+ </path>
1228
+ </svg>
1229
+ <span class="recharts-legend-item-text" style="color: rgb(103, 171, 197);">uv</span>
1230
+ </li>
1231
+ </ul>
1232
+ </div>
1233
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
1234
+ <title>
1235
+ </title>
1236
+ <desc>
1237
+ </desc>
1238
+ <g tabindex="-1" id="recharts-zindex--100-:r19:">
1239
+ <g class="recharts-cartesian-grid">
1240
+ <g class="recharts-cartesian-grid-horizontal">
1241
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="213" x2="463" y2="213">
1242
+ </line>
1243
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="161" x2="463" y2="161">
1244
+ </line>
1245
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="109" x2="463" y2="109">
1246
+ </line>
1247
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="57" x2="463" y2="57">
1248
+ </line>
1249
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="5" x2="463" y2="5">
1250
+ </line>
1251
+ </g>
1252
+ </g>
1253
+ </g>
1254
+ <g tabindex="-1" id="recharts-zindex--50-:r1a:">
1255
+ </g>
1256
+ <defs>
1257
+ <clipPath id="recharts4-clip">
1258
+ <rect x="45" y="5" height="208" width="418">
1259
+ </rect>
1260
+ </clipPath>
1261
+ </defs>
1262
+ <g tabindex="-1" id="recharts-zindex-100-:r1d:">
1263
+ </g>
1264
+ <g tabindex="-1" id="recharts-zindex-200-:r1e:">
1265
+ </g>
1266
+ <g tabindex="-1" id="recharts-zindex-300-:r1f:">
1267
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r1b:">
1268
+ <g class="recharts-layer recharts-bar-rectangles">
1269
+ <g class="recharts-layer">
1270
+ <g class="recharts-layer recharts-bar-rectangle">
1271
+ <path fill="#a1daa3 " name="Page A" x="61" y="171.4" width="26" height="41.599999999999994" radius="0" class="recharts-rectangle" d="M 61,171.4 h 26 v 41.599999999999994 h -26 Z">
1272
+ </path>
1273
+ </g>
1274
+ <g class="recharts-layer recharts-bar-rectangle">
1275
+ <path fill="#a1daa3 " name="Page B" x="120.71428571428572" y="188.768" width="26" height="24.232" radius="0" class="recharts-rectangle" d="M 120.71428571428572,188.768 h 26 v 24.232 h -26 Z">
1276
+ </path>
1277
+ </g>
1278
+ <g class="recharts-layer recharts-bar-rectangle">
1279
+ <path fill="#a1daa3 " name="Page C" x="180.42857142857144" y="43.13333333333334" width="26" height="169.86666666666667" radius="0" class="recharts-rectangle" d="M 180.42857142857144,43.13333333333334 h 26 v 169.86666666666667 h -26 Z">
1280
+ </path>
1281
+ </g>
1282
+ <g class="recharts-layer recharts-bar-rectangle">
1283
+ <path fill="#a1daa3 " name="Page D" x="240.14285714285714" y="145.26133333333334" width="26" height="67.73866666666666" radius="0" class="recharts-rectangle" d="M 240.14285714285714,145.26133333333334 h 26 v 67.73866666666666 h -26 Z">
1284
+ </path>
1285
+ </g>
1286
+ <g class="recharts-layer recharts-bar-rectangle">
1287
+ <path fill="#a1daa3 " name="Page E" x="299.8571428571429" y="129.8" width="26" height="83.19999999999999" radius="0" class="recharts-rectangle" d="M 299.8571428571429,129.8 h 26 v 83.19999999999999 h -26 Z">
1288
+ </path>
1289
+ </g>
1290
+ <g class="recharts-layer recharts-bar-rectangle">
1291
+ <path fill="#a1daa3 " name="Page F" x="359.57142857142856" y="147.13333333333335" width="26" height="65.86666666666665" radius="0" class="recharts-rectangle" d="M 359.57142857142856,147.13333333333335 h 26 v 65.86666666666665 h -26 Z">
1292
+ </path>
1293
+ </g>
1294
+ <g class="recharts-layer recharts-bar-rectangle">
1295
+ <path fill="#a1daa3 " name="Page G" x="419.2857142857143" y="138.46666666666664" width="26" height="74.53333333333336" radius="0" class="recharts-rectangle" d="M 419.2857142857143,138.46666666666664 h 26 v 74.53333333333336 h -26 Z">
1296
+ </path>
1297
+ </g>
1298
+ </g>
1299
+ </g>
1300
+ </g>
1301
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r1c:">
1302
+ <g class="recharts-layer recharts-bar-rectangles">
1303
+ <g class="recharts-layer">
1304
+ <g class="recharts-layer recharts-bar-rectangle">
1305
+ <path fill="#67abc5 " name="Page A" x="61" y="102.06666666666668" width="26" height="69.33333333333333" radius="0" class="recharts-rectangle" d="M 61,102.06666666666668 h 26 v 69.33333333333333 h -26 Z">
1306
+ </path>
1307
+ </g>
1308
+ <g class="recharts-layer recharts-bar-rectangle">
1309
+ <path fill="#67abc5 " name="Page B" x="120.71428571428572" y="136.768" width="26" height="52" radius="0" class="recharts-rectangle" d="M 120.71428571428572,136.768 h 26 v 52 h -26 Z">
1310
+ </path>
1311
+ </g>
1312
+ <g class="recharts-layer recharts-bar-rectangle">
1313
+ <path fill="#67abc5 " name="Page C" x="180.42857142857144" y="8.466666666666677" width="26" height="34.666666666666664" radius="0" class="recharts-rectangle" d="M 180.42857142857144,8.466666666666677 h 26 v 34.666666666666664 h -26 Z">
1314
+ </path>
1315
+ </g>
1316
+ <g class="recharts-layer recharts-bar-rectangle">
1317
+ <path fill="#67abc5 " name="Page D" x="240.14285714285714" y="97.07466666666666" width="26" height="48.18666666666668" radius="0" class="recharts-rectangle" d="M 240.14285714285714,97.07466666666666 h 26 v 48.18666666666668 h -26 Z">
1318
+ </path>
1319
+ </g>
1320
+ <g class="recharts-layer recharts-bar-rectangle">
1321
+ <path fill="#67abc5 " name="Page E" x="299.8571428571429" y="97.03999999999999" width="26" height="32.76000000000002" radius="0" class="recharts-rectangle" d="M 299.8571428571429,97.03999999999999 h 26 v 32.76000000000002 h -26 Z">
1322
+ </path>
1323
+ </g>
1324
+ <g class="recharts-layer recharts-bar-rectangle">
1325
+ <path fill="#67abc5 " name="Page F" x="359.57142857142856" y="105.70666666666666" width="26" height="41.42666666666669" radius="0" class="recharts-rectangle" d="M 359.57142857142856,105.70666666666666 h 26 v 41.42666666666669 h -26 Z">
1326
+ </path>
1327
+ </g>
1328
+ <g class="recharts-layer recharts-bar-rectangle">
1329
+ <path fill="#67abc5 " name="Page G" x="419.2857142857143" y="77.97333333333334" width="26" height="60.4933333333333" radius="0" class="recharts-rectangle" d="M 419.2857142857143,77.97333333333334 h 26 v 60.4933333333333 h -26 Z">
1330
+ </path>
1331
+ </g>
1332
+ </g>
1333
+ </g>
1334
+ </g>
1335
+ </g>
1336
+ <g tabindex="-1" id="recharts-zindex-400-:r1g:">
1337
+ </g>
1338
+ <g tabindex="-1" id="recharts-zindex-500-:r1h:">
1339
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
1340
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="45" y1="213" x2="463" y2="213">
1341
+ </line>
1342
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
1343
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
1344
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1345
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="74.85714285714286" y1="219" x2="74.85714285714286" y2="213">
1346
+ </line>
1347
+ </g>
1348
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1349
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="134.57142857142858" y1="219" x2="134.57142857142858" y2="213">
1350
+ </line>
1351
+ </g>
1352
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1353
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="194.2857142857143" y1="219" x2="194.2857142857143" y2="213">
1354
+ </line>
1355
+ </g>
1356
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1357
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="254" y1="219" x2="254" y2="213">
1358
+ </line>
1359
+ </g>
1360
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1361
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="313.7142857142857" y1="219" x2="313.7142857142857" y2="213">
1362
+ </line>
1363
+ </g>
1364
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1365
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="373.4285714285714" y1="219" x2="373.4285714285714" y2="213">
1366
+ </line>
1367
+ </g>
1368
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1369
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="433.1428571428571" y1="219" x2="433.1428571428571" y2="213">
1370
+ </line>
1371
+ </g>
1372
+ </g>
1373
+ </g>
1374
+ </g>
1375
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
1376
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="45" y1="5" x2="45" y2="213">
1377
+ </line>
1378
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
1379
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
1380
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1381
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="213" x2="45" y2="213">
1382
+ </line>
1383
+ </g>
1384
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1385
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="161" x2="45" y2="161">
1386
+ </line>
1387
+ </g>
1388
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1389
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="109" x2="45" y2="109">
1390
+ </line>
1391
+ </g>
1392
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1393
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="57" x2="45" y2="57">
1394
+ </line>
1395
+ </g>
1396
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1397
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="5" x2="45" y2="5">
1398
+ </line>
1399
+ </g>
1400
+ </g>
1401
+ </g>
1402
+ </g>
1403
+ </g>
1404
+ <g tabindex="-1" id="recharts-zindex-600-:r1i:">
1405
+ </g>
1406
+ <g tabindex="-1" id="recharts-zindex-1000-:r1j:">
1407
+ </g>
1408
+ <g tabindex="-1" id="recharts-zindex-1100-:r1k:">
1409
+ </g>
1410
+ <g tabindex="-1" id="recharts-zindex-1200-:r1l:">
1411
+ </g>
1412
+ <g tabindex="-1" id="recharts-zindex-2000-:r1m:">
1413
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
1414
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1415
+ <text height="30" orientation="bottom" width="418" stroke="none" x="74.85714285714286" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1416
+ <tspan x="74.85714285714286" dy="0.71em">Page A</tspan>
1417
+ </text>
1418
+ </g>
1419
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1420
+ <text height="30" orientation="bottom" width="418" stroke="none" x="134.57142857142858" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1421
+ <tspan x="134.57142857142858" dy="0.71em">Page B</tspan>
1422
+ </text>
1423
+ </g>
1424
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1425
+ <text height="30" orientation="bottom" width="418" stroke="none" x="194.2857142857143" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1426
+ <tspan x="194.2857142857143" dy="0.71em">Page C</tspan>
1427
+ </text>
1428
+ </g>
1429
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1430
+ <text height="30" orientation="bottom" width="418" stroke="none" x="254" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1431
+ <tspan x="254" dy="0.71em">Page D</tspan>
1432
+ </text>
1433
+ </g>
1434
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1435
+ <text height="30" orientation="bottom" width="418" stroke="none" x="313.7142857142857" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1436
+ <tspan x="313.7142857142857" dy="0.71em">Page E</tspan>
1437
+ </text>
1438
+ </g>
1439
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1440
+ <text height="30" orientation="bottom" width="418" stroke="none" x="373.4285714285714" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1441
+ <tspan x="373.4285714285714" dy="0.71em">Page F</tspan>
1442
+ </text>
1443
+ </g>
1444
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1445
+ <text height="30" orientation="bottom" width="418" stroke="none" x="433.1428571428571" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1446
+ <tspan x="433.1428571428571" dy="0.71em">Page G</tspan>
1447
+ </text>
1448
+ </g>
1449
+ </g>
1450
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
1451
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1452
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="213" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1453
+ <tspan x="37" dy="0.355em">0</tspan>
1454
+ </text>
1455
+ </g>
1456
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1457
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="161" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1458
+ <tspan x="37" dy="0.355em">3000</tspan>
1459
+ </text>
1460
+ </g>
1461
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1462
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="109" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1463
+ <tspan x="37" dy="0.355em">6000</tspan>
1464
+ </text>
1465
+ </g>
1466
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1467
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="57" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1468
+ <tspan x="37" dy="0.355em">9000</tspan>
1469
+ </text>
1470
+ </g>
1471
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1472
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="10" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1473
+ <tspan x="37" dy="0.355em">12000</tspan>
1474
+ </text>
1475
+ </g>
1476
+ </g>
1477
+ </g>
1478
+ </svg>
1479
+ </div>
1480
+ </div>
1481
+ </div>
1482
+ </div>
1483
+ ```
1484
+
1485
+ #### Props: BarChart
1486
+
1487
+ ### BarChart
1488
+
1489
+ | Name | Type | Default | Description |
1490
+ | --- | --- | --- | --- |
1491
+ | width | Number | — | The width of chart container. |
1492
+ | height | Number | — | The height of chart container. |
1493
+ | data | Array | — | The source data, in which each element is an object. It has the following format: [{ name: "a", value: 12 }] Note: for some charts, the color of the individual data is taken from the color prop: [{ name: "a", value: 12, color: "color-coldplay-fountain" }] |
1494
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
1495
+ | dataUnit | string | — | The unit of data displayed in the chart. |
1496
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
1497
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
1498
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
1499
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
1500
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
1501
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
1502
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
1503
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
1504
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
1505
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
1506
+ | tooltip | ChartTooltip \| Boolean | — | Defines whether or not the tooltip component shall be used. You can customize the tooltip by providing a custom ChartTooltip. Prop details can be found here: https://recharts.org/en-US/api/Tooltip. You can also customize the cursor color by setting a stroke or fill color in the cursor props. Details can be found here: https://recharts.org/en-US/api/Tooltip#cursor |
1507
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
1508
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
1509
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
1510
+
1511
+ #### Props: Bar
1512
+
1513
+ ### Bar
1514
+
1515
+ | Name | Type | Default | Description |
1516
+ | --- | --- | --- | --- |
1517
+ | color | String | color-coldplay-fountain | Defines the color for the whole bar component instead of individual colors from the data. Take the color name from the charts colors page. |
1518
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
1519
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
1520
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
1521
+
1522
+ #### Props: Legend
1523
+
1524
+ ### Legend
1525
+
1526
+ | Name | Type | Default | Description |
1527
+ | --- | --- | --- | --- |
1528
+ | iconType | String | square | Defines the type of the leading icon. |
1529
+ | iconSize | String | 12 | Defines the size of the leading icon. |
1530
+ | layout | String | vertical | Defines the layout of the legend. |
1531
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
1532
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
1533
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
1534
+
1535
+ ### Example: Basistarif
1536
+
1537
+ Vertical BarChart
1538
+
1539
+ Basistarif
1540
+ Diesel
1541
+ Maut
1542
+ Zuschläge
1543
+
1544
+ 015304560BasistarifDieselMautZuschläge
1545
+
1546
+ #### Summary
1547
+
1548
+ Vertical BarChart
1549
+
1550
+ Basistarif
1551
+ Diesel
1552
+ Maut
1553
+ Zuschläge
1554
+
1555
+ 015304560BasistarifDieselMautZuschläge
1556
+
1557
+ #### React (tsx)
1558
+
1559
+ ```tsx
1560
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
1561
+ import Bar from '@rio-cloud/rio-uikit/Bar';
1562
+ import Legend from '@rio-cloud/rio-uikit/Legend';
1563
+
1564
+ type CustomData = {
1565
+ label: string;
1566
+ color: string;
1567
+ costs: number;
1568
+ };
1569
+
1570
+ export default () => {
1571
+ return (
1572
+ <>
1573
+ <label>Vertical BarChart</label>
1574
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 max-width-500'>
1575
+ <BarChart
1576
+ data={data}
1577
+ layout='vertical'
1578
+ useDataColors
1579
+ legend={
1580
+ <Legend
1581
+ iconSize={12}
1582
+ items={data}
1583
+ content={({ items, iconSize, resolveColor }) => (
1584
+ <div className=''>
1585
+ {items?.map((entry, i) => (
1586
+ <div key={i}>
1587
+ <span
1588
+ className='display-inline-block margin-right-5 rounded-small'
1589
+ style={{
1590
+ width: iconSize,
1591
+ height: iconSize,
1592
+ background: resolveColor(entry, i),
1593
+ }}
1594
+ />
1595
+ <span className='text-color-dark'>{entry.label}</span>
1596
+ </div>
1597
+ ))}
1598
+ </div>
1599
+ )}
1600
+ />
1601
+ }
1602
+ xAxisOptions={{
1603
+ dataKey: 'costs',
1604
+ type: 'number',
1605
+ height: 14,
1606
+ }}
1607
+ yAxisOptions={{
1608
+ dataKey: 'label',
1609
+ type: 'category',
1610
+ width: 10,
1611
+ tickLine: false,
1612
+ axisLine: false,
1613
+ tickMargin: 200,
1614
+ }}
1615
+ bars={[
1616
+ <Bar
1617
+ key='costs'
1618
+ dataKey='costs'
1619
+ label={{
1620
+ position: 'right',
1621
+ formatter: (value: unknown) => `${value}€`,
1622
+ }}
1623
+ />,
1624
+ ]}
1625
+ />
1626
+ </div>
1627
+ </>
1628
+ );
1629
+ };
1630
+
1631
+ const data: CustomData[] = [
1632
+ {
1633
+ label: 'Basistarif',
1634
+ color: 'color-warmup-charm',
1635
+ costs: 46.8,
1636
+ },
1637
+ {
1638
+ label: 'Diesel',
1639
+ color: 'color-warmup-salmon',
1640
+ costs: 22.0,
1641
+ },
1642
+ {
1643
+ label: 'Maut',
1644
+ color: 'color-warmup-cherokee',
1645
+ costs: 12.4,
1646
+ },
1647
+ {
1648
+ label: 'Zuschläge',
1649
+ color: 'brand-warning',
1650
+ costs: 3.88,
1651
+ },
1652
+ ];
1653
+ ```
1654
+
1655
+ #### HTML (html)
1656
+
1657
+ ```html
1658
+ <label>Vertical BarChart</label>
1659
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 max-width-500">
1660
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
1661
+ <div style="width: 0px; height: 0px; overflow: visible;">
1662
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
1663
+ <div xmlns="http://www.w3.org/1999/xhtml" tabindex="-1" class="recharts-tooltip-wrapper" style="visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px;">
1664
+ <div class="recharts-default-tooltip" role="status" aria-live="assertive" style="margin: 0px; padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); white-space: nowrap;">
1665
+ <p class="recharts-tooltip-label" style="margin: 0px;">
1666
+ </p>
1667
+ </div>
1668
+ </div>
1669
+ <div class="recharts-legend-wrapper" style="position: absolute; width: auto; height: auto; right: 5px; top: 5px;">
1670
+ <div class="">
1671
+ <div>
1672
+ <span class="display-inline-block margin-right-5 rounded-small" style="width: 12px; height: 12px; background: rgb(201, 119, 141);">
1673
+ </span>
1674
+ <span class="text-color-dark">Basistarif</span>
1675
+ </div>
1676
+ <div>
1677
+ <span class="display-inline-block margin-right-5 rounded-small" style="width: 12px; height: 12px; background: rgb(241, 149, 136);">
1678
+ </span>
1679
+ <span class="text-color-dark">Diesel</span>
1680
+ </div>
1681
+ <div>
1682
+ <span class="display-inline-block margin-right-5 rounded-small" style="width: 12px; height: 12px; background: rgb(245, 187, 137);">
1683
+ </span>
1684
+ <span class="text-color-dark">Maut</span>
1685
+ </div>
1686
+ <div>
1687
+ <span class="display-inline-block margin-right-5 rounded-small" style="width: 12px; height: 12px; background: rgb(255, 142, 60);">
1688
+ </span>
1689
+ <span class="text-color-dark">Zuschläge</span>
1690
+ </div>
1691
+ </div>
1692
+ </div>
1693
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
1694
+ <title>
1695
+ </title>
1696
+ <desc>
1697
+ </desc>
1698
+ <g tabindex="-1" id="recharts-zindex--100-:r1n:">
1699
+ </g>
1700
+ <g tabindex="-1" id="recharts-zindex--50-:r1o:">
1701
+ </g>
1702
+ <defs>
1703
+ <clipPath id="recharts5-clip">
1704
+ <rect x="15" y="5" height="244" width="371.859375">
1705
+ </rect>
1706
+ </clipPath>
1707
+ </defs>
1708
+ <g tabindex="-1" id="recharts-zindex-100-:r1q:">
1709
+ </g>
1710
+ <g tabindex="-1" id="recharts-zindex-200-:r1r:">
1711
+ </g>
1712
+ <g tabindex="-1" id="recharts-zindex-300-:r1s:">
1713
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r1p:">
1714
+ <g class="recharts-layer recharts-bar-rectangles">
1715
+ <g class="recharts-layer">
1716
+ <g class="recharts-layer recharts-bar-rectangle">
1717
+ <path fill="#c9778d " name="undefined" color="color-warmup-charm" x="15" y="11.1" width="290.05031249999996" height="48" radius="0" class="recharts-rectangle" d="M 15,11.1 h 290.05031249999996 v 48 h -290.05031249999996 Z">
1718
+ </path>
1719
+ </g>
1720
+ <g class="recharts-layer recharts-bar-rectangle">
1721
+ <path fill="#f19588 " name="undefined" color="color-warmup-salmon" x="15" y="72.1" width="136.3484375" height="48" radius="0" class="recharts-rectangle" d="M 15,72.1 h 136.3484375 v 48 h -136.3484375 Z">
1722
+ </path>
1723
+ </g>
1724
+ <g class="recharts-layer recharts-bar-rectangle">
1725
+ <path fill="#f5bb89 " name="undefined" color="color-warmup-cherokee" x="15" y="133.1" width="76.8509375" height="48" radius="0" class="recharts-rectangle" d="M 15,133.1 h 76.8509375 v 48 h -76.8509375 Z">
1726
+ </path>
1727
+ </g>
1728
+ <g class="recharts-layer recharts-bar-rectangle">
1729
+ <path fill="#ff8e3c " name="undefined" color="brand-warning" x="15" y="194.1" width="24.04690625" height="48" radius="0" class="recharts-rectangle" d="M 15,194.1 h 24.04690625 v 48 h -24.04690625 Z">
1730
+ </path>
1731
+ </g>
1732
+ </g>
1733
+ </g>
1734
+ </g>
1735
+ </g>
1736
+ <g tabindex="-1" id="recharts-zindex-400-:r1t:">
1737
+ </g>
1738
+ <g tabindex="-1" id="recharts-zindex-500-:r1u:">
1739
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
1740
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="371.859375" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="15" y1="249" x2="386.859375" y2="249">
1741
+ </line>
1742
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
1743
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
1744
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1745
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="371.859375" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="15" y1="255" x2="15" y2="249">
1746
+ </line>
1747
+ </g>
1748
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1749
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="371.859375" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="107.96484375" y1="255" x2="107.96484375" y2="249">
1750
+ </line>
1751
+ </g>
1752
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1753
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="371.859375" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="200.9296875" y1="255" x2="200.9296875" y2="249">
1754
+ </line>
1755
+ </g>
1756
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1757
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="371.859375" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="293.89453125" y1="255" x2="293.89453125" y2="249">
1758
+ </line>
1759
+ </g>
1760
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1761
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="371.859375" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="386.859375" y1="255" x2="386.859375" y2="249">
1762
+ </line>
1763
+ </g>
1764
+ </g>
1765
+ </g>
1766
+ </g>
1767
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
1768
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
1769
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
1770
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1771
+ </g>
1772
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1773
+ </g>
1774
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1775
+ </g>
1776
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1777
+ </g>
1778
+ </g>
1779
+ </g>
1780
+ </g>
1781
+ </g>
1782
+ <g tabindex="-1" id="recharts-zindex-600-:r1v:">
1783
+ </g>
1784
+ <g tabindex="-1" id="recharts-zindex-1000-:r20:">
1785
+ </g>
1786
+ <g tabindex="-1" id="recharts-zindex-1100-:r21:">
1787
+ </g>
1788
+ <g tabindex="-1" id="recharts-zindex-1200-:r22:">
1789
+ </g>
1790
+ <g tabindex="-1" id="recharts-zindex-2000-:r23:">
1791
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
1792
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1793
+ <text height="14" orientation="bottom" width="371.859375" stroke="none" x="15" y="257" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1794
+ <tspan x="15" dy="0.71em">0</tspan>
1795
+ </text>
1796
+ </g>
1797
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1798
+ <text height="14" orientation="bottom" width="371.859375" stroke="none" x="107.96484375" y="257" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1799
+ <tspan x="107.96484375" dy="0.71em">15</tspan>
1800
+ </text>
1801
+ </g>
1802
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1803
+ <text height="14" orientation="bottom" width="371.859375" stroke="none" x="200.9296875" y="257" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1804
+ <tspan x="200.9296875" dy="0.71em">30</tspan>
1805
+ </text>
1806
+ </g>
1807
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1808
+ <text height="14" orientation="bottom" width="371.859375" stroke="none" x="293.89453125" y="257" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1809
+ <tspan x="293.89453125" dy="0.71em">45</tspan>
1810
+ </text>
1811
+ </g>
1812
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1813
+ <text height="14" orientation="bottom" width="371.859375" stroke="none" x="386.859375" y="257" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1814
+ <tspan x="386.859375" dy="0.71em">60</tspan>
1815
+ </text>
1816
+ </g>
1817
+ </g>
1818
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
1819
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1820
+ <text width="10" orientation="left" height="244" stroke="none" x="-191" y="35.5" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1821
+ <tspan x="-191" dy="0.355em">Basistarif</tspan>
1822
+ </text>
1823
+ </g>
1824
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1825
+ <text width="10" orientation="left" height="244" stroke="none" x="-191" y="96.5" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1826
+ <tspan x="-191" dy="0.355em">Diesel</tspan>
1827
+ </text>
1828
+ </g>
1829
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1830
+ <text width="10" orientation="left" height="244" stroke="none" x="-191" y="157.5" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1831
+ <tspan x="-191" dy="0.355em">Maut</tspan>
1832
+ </text>
1833
+ </g>
1834
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1835
+ <text width="10" orientation="left" height="244" stroke="none" x="-191" y="218.5" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
1836
+ <tspan x="-191" dy="0.355em">Zuschläge</tspan>
1837
+ </text>
1838
+ </g>
1839
+ </g>
1840
+ <g class="recharts-layer recharts-label-list">
1841
+ <text width="157.94968750000004" height="48" offset="5" x="310.05031249999996" y="35.1" class="recharts-text recharts-label" text-anchor="start" fill="#c9778d ">
1842
+ <tspan x="310.05031249999996" dy="0.355em">46.8€</tspan>
1843
+ </text>
1844
+ <text width="311.6515625" height="48" offset="5" x="156.3484375" y="96.1" class="recharts-text recharts-label" text-anchor="start" fill="#f19588 ">
1845
+ <tspan x="156.3484375" dy="0.355em">22€</tspan>
1846
+ </text>
1847
+ <text width="371.1490625" height="48" offset="5" x="96.8509375" y="157.1" class="recharts-text recharts-label" text-anchor="start" fill="#f5bb89 ">
1848
+ <tspan x="96.8509375" dy="0.355em">12.4€</tspan>
1849
+ </text>
1850
+ <text width="423.95309375" height="48" offset="5" x="44.04690625" y="218.1" class="recharts-text recharts-label" text-anchor="start" fill="#ff8e3c ">
1851
+ <tspan x="44.04690625" dy="0.355em">3.88€</tspan>
1852
+ </text>
1853
+ </g>
1854
+ </g>
1855
+ </svg>
1856
+ </div>
1857
+ </div>
1858
+ </div>
1859
+ </div>
1860
+ ```
1861
+
1862
+ #### Props: BarChart
1863
+
1864
+ ### BarChart
1865
+
1866
+ | Name | Type | Default | Description |
1867
+ | --- | --- | --- | --- |
1868
+ | width | Number | — | The width of chart container. |
1869
+ | height | Number | — | The height of chart container. |
1870
+ | data | Array | — | The source data, in which each element is an object. It has the following format: [{ name: "a", value: 12 }] Note: for some charts, the color of the individual data is taken from the color prop: [{ name: "a", value: 12, color: "color-coldplay-fountain" }] |
1871
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
1872
+ | dataUnit | string | — | The unit of data displayed in the chart. |
1873
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
1874
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
1875
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
1876
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
1877
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
1878
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
1879
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
1880
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
1881
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
1882
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
1883
+ | tooltip | ChartTooltip \| Boolean | — | Defines whether or not the tooltip component shall be used. You can customize the tooltip by providing a custom ChartTooltip. Prop details can be found here: https://recharts.org/en-US/api/Tooltip. You can also customize the cursor color by setting a stroke or fill color in the cursor props. Details can be found here: https://recharts.org/en-US/api/Tooltip#cursor |
1884
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
1885
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
1886
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
1887
+
1888
+ #### Props: Bar
1889
+
1890
+ ### Bar
1891
+
1892
+ | Name | Type | Default | Description |
1893
+ | --- | --- | --- | --- |
1894
+ | color | String | color-coldplay-fountain | Defines the color for the whole bar component instead of individual colors from the data. Take the color name from the charts colors page. |
1895
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
1896
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
1897
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
1898
+
1899
+ #### Props: Legend
1900
+
1901
+ ### Legend
1902
+
1903
+ | Name | Type | Default | Description |
1904
+ | --- | --- | --- | --- |
1905
+ | iconType | String | square | Defines the type of the leading icon. |
1906
+ | iconSize | String | 12 | Defines the size of the leading icon. |
1907
+ | layout | String | vertical | Defines the layout of the legend. |
1908
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
1909
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
1910
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
1911
+
1912
+ ### Example: Example 6
1913
+
1914
+ BarChart with custom Tooltips
1915
+ pv
1916
+ uv
1917
+
1918
+ Truck ATruck BTruck CTruck DTruck ETruck FTruck G030006000900012000
1919
+
1920
+ #### Summary
1921
+
1922
+ BarChart with custom Tooltips
1923
+ pv
1924
+ uv
1925
+
1926
+ Truck ATruck BTruck CTruck DTruck ETruck FTruck G030006000900012000
1927
+
1928
+ #### React (tsx)
1929
+
1930
+ ```tsx
1931
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
1932
+ import Bar from '@rio-cloud/rio-uikit/Bar';
1933
+ import Legend from '@rio-cloud/rio-uikit/Legend';
1934
+ import ChartTooltip from '@rio-cloud/rio-uikit/ChartTooltip';
1935
+
1936
+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>
1937
+ const CustomTooltip = ({ active, payload }: { active?: boolean; payload?: any }) => {
1938
+ if (!active) {
1939
+ return null;
1940
+ }
1941
+
1942
+ const firstValue = payload[0].value;
1943
+ const secondValue = payload[1].value;
1944
+ const totalValue = firstValue + secondValue;
1945
+
1946
+ return (
1947
+ <div className='custom-tooltip bg-white border padding-10 min-width-100 rounded shadow-smooth'>
1948
+ <div className='display-flex justify-content-between gap-20'>
1949
+ <span className='text-color-dark'>20.06.2022</span>
1950
+ <span className='display-flex align-items-center text-color-darker line-height-12'>
1951
+ <span className='rioglyph rioglyph-truck' />
1952
+ <span className='margin-left-2'>{payload.length}</span>
1953
+ </span>
1954
+ </div>
1955
+ <hr className='margin-y-5' />
1956
+ <div>
1957
+ <div className='display-flex'>
1958
+ <span className='width-10' />
1959
+ <span className='text-color-highlight-dark'>{`${firstValue} km`}</span>
1960
+ </div>
1961
+ <div className='display-flex'>
1962
+ <span className='width-10 text-center text-color-highlight'>+</span>
1963
+ <span className='text-color-highlight'>{`${secondValue} km`}</span>
1964
+ </div>
1965
+ <div className='display-flex border border-top-only border-color-lightest'>
1966
+ <span className='width-10 text-center text-color-highlight-darkest'>=</span>
1967
+ <span className='text-color-highlight-darkest'>{`${totalValue} km`}</span>
1968
+ </div>
1969
+ </div>
1970
+ </div>
1971
+ );
1972
+ };
1973
+
1974
+ export default () => (
1975
+ <>
1976
+ <label>BarChart with custom Tooltips</label>
1977
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 max-width-500'>
1978
+ <BarChart
1979
+ data={data}
1980
+ dataKey='name'
1981
+ legend={<Legend layout='horizontal' verticalAlign='bottom' align='center' />}
1982
+ showGrid
1983
+ gridOptions={{ vertical: false }}
1984
+ xAxisOptions={{ dataKey: 'name' }}
1985
+ yAxisOptions={{ width: 40 }}
1986
+ bars={[
1987
+ <Bar key='pv' dataKey='pv' stackId='a' barSize={26} color='color-highlight-dark' />,
1988
+ <Bar key='uv' dataKey='uv' stackId='a' barSize={26} color='color-highlight' />,
1989
+ ]}
1990
+ tooltip={<ChartTooltip content={<CustomTooltip />} cursor={{ fill: '#ebf9fa80' }} />}
1991
+ />
1992
+ </div>
1993
+ </>
1994
+ );
1995
+
1996
+ const data = [
1997
+ {
1998
+ name: 'Truck A',
1999
+ uv: 4000,
2000
+ pv: 2400,
2001
+ },
2002
+ {
2003
+ name: 'Truck B',
2004
+ uv: 3000,
2005
+ pv: 1398,
2006
+ },
2007
+ {
2008
+ name: 'Truck C',
2009
+ uv: 2000,
2010
+ pv: 9800,
2011
+ },
2012
+ {
2013
+ name: 'Truck D',
2014
+ uv: 2780,
2015
+ pv: 3908,
2016
+ },
2017
+ {
2018
+ name: 'Truck E',
2019
+ uv: 1890,
2020
+ pv: 4800,
2021
+ },
2022
+ {
2023
+ name: 'Truck F',
2024
+ uv: 2390,
2025
+ pv: 3800,
2026
+ },
2027
+ {
2028
+ name: 'Truck G',
2029
+ uv: 3490,
2030
+ pv: 4300,
2031
+ },
2032
+ ];
2033
+ ```
2034
+
2035
+ #### HTML (html)
2036
+
2037
+ ```html
2038
+ <label>BarChart with custom Tooltips</label>
2039
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 max-width-500">
2040
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
2041
+ <div style="width: 0px; height: 0px; overflow: visible;">
2042
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
2043
+ <div xmlns="http://www.w3.org/1999/xhtml" tabindex="-1" class="recharts-tooltip-wrapper" style="visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px;">
2044
+ </div>
2045
+ <div class="recharts-legend-wrapper" style="position: absolute; width: 458px; height: auto; left: 5px; bottom: 5px;">
2046
+ <ul class="recharts-default-legend" style="padding: 0px; margin: 0px; text-align: center;">
2047
+ <li class="recharts-legend-item legend-item-0" style="display: inline-block; margin-right: 10px;">
2048
+ <svg aria-label="pv legend icon" class="recharts-surface" width="12" height="12" viewBox="0 0 32 32" style="display: inline-block; vertical-align: middle; margin-right: 4px;">
2049
+ <title>
2050
+ </title>
2051
+ <desc>
2052
+ </desc>
2053
+ <path fill="#268897 " cx="16" cy="16" class="recharts-symbols" transform="translate(16, 16)" d="M16,0A16,16,0,1,1,-16,0A16,16,0,1,1,16,0">
2054
+ </path>
2055
+ </svg>
2056
+ <span class="recharts-legend-item-text" style="color: rgb(38, 136, 151);">pv</span>
2057
+ </li>
2058
+ <li class="recharts-legend-item legend-item-1" style="display: inline-block; margin-right: 10px;">
2059
+ <svg aria-label="uv legend icon" class="recharts-surface" width="12" height="12" viewBox="0 0 32 32" style="display: inline-block; vertical-align: middle; margin-right: 4px;">
2060
+ <title>
2061
+ </title>
2062
+ <desc>
2063
+ </desc>
2064
+ <path fill="#30b4c0 " cx="16" cy="16" class="recharts-symbols" transform="translate(16, 16)" d="M16,0A16,16,0,1,1,-16,0A16,16,0,1,1,16,0">
2065
+ </path>
2066
+ </svg>
2067
+ <span class="recharts-legend-item-text" style="color: rgb(48, 180, 192);">uv</span>
2068
+ </li>
2069
+ </ul>
2070
+ </div>
2071
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
2072
+ <title>
2073
+ </title>
2074
+ <desc>
2075
+ </desc>
2076
+ <g tabindex="-1" id="recharts-zindex--100-:r24:">
2077
+ <g class="recharts-cartesian-grid">
2078
+ <g class="recharts-cartesian-grid-horizontal">
2079
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="213" x2="463" y2="213">
2080
+ </line>
2081
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="161" x2="463" y2="161">
2082
+ </line>
2083
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="109" x2="463" y2="109">
2084
+ </line>
2085
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="57" x2="463" y2="57">
2086
+ </line>
2087
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="45" y="5" width="418" height="208" x1="45" y1="5" x2="463" y2="5">
2088
+ </line>
2089
+ </g>
2090
+ </g>
2091
+ </g>
2092
+ <g tabindex="-1" id="recharts-zindex--50-:r25:">
2093
+ </g>
2094
+ <defs>
2095
+ <clipPath id="recharts6-clip">
2096
+ <rect x="45" y="5" height="208" width="418">
2097
+ </rect>
2098
+ </clipPath>
2099
+ </defs>
2100
+ <g tabindex="-1" id="recharts-zindex-100-:r28:">
2101
+ </g>
2102
+ <g tabindex="-1" id="recharts-zindex-200-:r29:">
2103
+ </g>
2104
+ <g tabindex="-1" id="recharts-zindex-300-:r2a:">
2105
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r26:">
2106
+ <g class="recharts-layer recharts-bar-rectangles">
2107
+ <g class="recharts-layer">
2108
+ <g class="recharts-layer recharts-bar-rectangle">
2109
+ <path fill="#268897 " name="Truck A" x="61" y="171.4" width="26" height="41.599999999999994" radius="0" class="recharts-rectangle" d="M 61,171.4 h 26 v 41.599999999999994 h -26 Z">
2110
+ </path>
2111
+ </g>
2112
+ <g class="recharts-layer recharts-bar-rectangle">
2113
+ <path fill="#268897 " name="Truck B" x="120.71428571428572" y="188.768" width="26" height="24.232" radius="0" class="recharts-rectangle" d="M 120.71428571428572,188.768 h 26 v 24.232 h -26 Z">
2114
+ </path>
2115
+ </g>
2116
+ <g class="recharts-layer recharts-bar-rectangle">
2117
+ <path fill="#268897 " name="Truck C" x="180.42857142857144" y="43.13333333333334" width="26" height="169.86666666666667" radius="0" class="recharts-rectangle" d="M 180.42857142857144,43.13333333333334 h 26 v 169.86666666666667 h -26 Z">
2118
+ </path>
2119
+ </g>
2120
+ <g class="recharts-layer recharts-bar-rectangle">
2121
+ <path fill="#268897 " name="Truck D" x="240.14285714285714" y="145.26133333333334" width="26" height="67.73866666666666" radius="0" class="recharts-rectangle" d="M 240.14285714285714,145.26133333333334 h 26 v 67.73866666666666 h -26 Z">
2122
+ </path>
2123
+ </g>
2124
+ <g class="recharts-layer recharts-bar-rectangle">
2125
+ <path fill="#268897 " name="Truck E" x="299.8571428571429" y="129.8" width="26" height="83.19999999999999" radius="0" class="recharts-rectangle" d="M 299.8571428571429,129.8 h 26 v 83.19999999999999 h -26 Z">
2126
+ </path>
2127
+ </g>
2128
+ <g class="recharts-layer recharts-bar-rectangle">
2129
+ <path fill="#268897 " name="Truck F" x="359.57142857142856" y="147.13333333333335" width="26" height="65.86666666666665" radius="0" class="recharts-rectangle" d="M 359.57142857142856,147.13333333333335 h 26 v 65.86666666666665 h -26 Z">
2130
+ </path>
2131
+ </g>
2132
+ <g class="recharts-layer recharts-bar-rectangle">
2133
+ <path fill="#268897 " name="Truck G" x="419.2857142857143" y="138.46666666666664" width="26" height="74.53333333333336" radius="0" class="recharts-rectangle" d="M 419.2857142857143,138.46666666666664 h 26 v 74.53333333333336 h -26 Z">
2134
+ </path>
2135
+ </g>
2136
+ </g>
2137
+ </g>
2138
+ </g>
2139
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r27:">
2140
+ <g class="recharts-layer recharts-bar-rectangles">
2141
+ <g class="recharts-layer">
2142
+ <g class="recharts-layer recharts-bar-rectangle">
2143
+ <path fill="#30b4c0 " name="Truck A" x="61" y="102.06666666666668" width="26" height="69.33333333333333" radius="0" class="recharts-rectangle" d="M 61,102.06666666666668 h 26 v 69.33333333333333 h -26 Z">
2144
+ </path>
2145
+ </g>
2146
+ <g class="recharts-layer recharts-bar-rectangle">
2147
+ <path fill="#30b4c0 " name="Truck B" x="120.71428571428572" y="136.768" width="26" height="52" radius="0" class="recharts-rectangle" d="M 120.71428571428572,136.768 h 26 v 52 h -26 Z">
2148
+ </path>
2149
+ </g>
2150
+ <g class="recharts-layer recharts-bar-rectangle">
2151
+ <path fill="#30b4c0 " name="Truck C" x="180.42857142857144" y="8.466666666666677" width="26" height="34.666666666666664" radius="0" class="recharts-rectangle" d="M 180.42857142857144,8.466666666666677 h 26 v 34.666666666666664 h -26 Z">
2152
+ </path>
2153
+ </g>
2154
+ <g class="recharts-layer recharts-bar-rectangle">
2155
+ <path fill="#30b4c0 " name="Truck D" x="240.14285714285714" y="97.07466666666666" width="26" height="48.18666666666668" radius="0" class="recharts-rectangle" d="M 240.14285714285714,97.07466666666666 h 26 v 48.18666666666668 h -26 Z">
2156
+ </path>
2157
+ </g>
2158
+ <g class="recharts-layer recharts-bar-rectangle">
2159
+ <path fill="#30b4c0 " name="Truck E" x="299.8571428571429" y="97.03999999999999" width="26" height="32.76000000000002" radius="0" class="recharts-rectangle" d="M 299.8571428571429,97.03999999999999 h 26 v 32.76000000000002 h -26 Z">
2160
+ </path>
2161
+ </g>
2162
+ <g class="recharts-layer recharts-bar-rectangle">
2163
+ <path fill="#30b4c0 " name="Truck F" x="359.57142857142856" y="105.70666666666666" width="26" height="41.42666666666669" radius="0" class="recharts-rectangle" d="M 359.57142857142856,105.70666666666666 h 26 v 41.42666666666669 h -26 Z">
2164
+ </path>
2165
+ </g>
2166
+ <g class="recharts-layer recharts-bar-rectangle">
2167
+ <path fill="#30b4c0 " name="Truck G" x="419.2857142857143" y="77.97333333333334" width="26" height="60.4933333333333" radius="0" class="recharts-rectangle" d="M 419.2857142857143,77.97333333333334 h 26 v 60.4933333333333 h -26 Z">
2168
+ </path>
2169
+ </g>
2170
+ </g>
2171
+ </g>
2172
+ </g>
2173
+ </g>
2174
+ <g tabindex="-1" id="recharts-zindex-400-:r2b:">
2175
+ </g>
2176
+ <g tabindex="-1" id="recharts-zindex-500-:r2c:">
2177
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
2178
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="45" y1="213" x2="463" y2="213">
2179
+ </line>
2180
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
2181
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
2182
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2183
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="74.85714285714286" y1="219" x2="74.85714285714286" y2="213">
2184
+ </line>
2185
+ </g>
2186
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2187
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="134.57142857142858" y1="219" x2="134.57142857142858" y2="213">
2188
+ </line>
2189
+ </g>
2190
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2191
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="194.2857142857143" y1="219" x2="194.2857142857143" y2="213">
2192
+ </line>
2193
+ </g>
2194
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2195
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="254" y1="219" x2="254" y2="213">
2196
+ </line>
2197
+ </g>
2198
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2199
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="313.7142857142857" y1="219" x2="313.7142857142857" y2="213">
2200
+ </line>
2201
+ </g>
2202
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2203
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="373.4285714285714" y1="219" x2="373.4285714285714" y2="213">
2204
+ </line>
2205
+ </g>
2206
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2207
+ <line angle="0" height="30" orientation="bottom" x="45" y="213" width="418" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="433.1428571428571" y1="219" x2="433.1428571428571" y2="213">
2208
+ </line>
2209
+ </g>
2210
+ </g>
2211
+ </g>
2212
+ </g>
2213
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
2214
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="45" y1="5" x2="45" y2="213">
2215
+ </line>
2216
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
2217
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
2218
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2219
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="213" x2="45" y2="213">
2220
+ </line>
2221
+ </g>
2222
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2223
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="161" x2="45" y2="161">
2224
+ </line>
2225
+ </g>
2226
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2227
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="109" x2="45" y2="109">
2228
+ </line>
2229
+ </g>
2230
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2231
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="57" x2="45" y2="57">
2232
+ </line>
2233
+ </g>
2234
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2235
+ <line width="40" angle="0" orientation="left" x="5" y="5" height="208" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="39" y1="5" x2="45" y2="5">
2236
+ </line>
2237
+ </g>
2238
+ </g>
2239
+ </g>
2240
+ </g>
2241
+ </g>
2242
+ <g tabindex="-1" id="recharts-zindex-600-:r2d:">
2243
+ </g>
2244
+ <g tabindex="-1" id="recharts-zindex-1000-:r2e:">
2245
+ </g>
2246
+ <g tabindex="-1" id="recharts-zindex-1100-:r2f:">
2247
+ </g>
2248
+ <g tabindex="-1" id="recharts-zindex-1200-:r2g:">
2249
+ </g>
2250
+ <g tabindex="-1" id="recharts-zindex-2000-:r2h:">
2251
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
2252
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2253
+ <text height="30" orientation="bottom" width="418" stroke="none" x="74.85714285714286" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2254
+ <tspan x="74.85714285714286" dy="0.71em">Truck A</tspan>
2255
+ </text>
2256
+ </g>
2257
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2258
+ <text height="30" orientation="bottom" width="418" stroke="none" x="134.57142857142858" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2259
+ <tspan x="134.57142857142858" dy="0.71em">Truck B</tspan>
2260
+ </text>
2261
+ </g>
2262
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2263
+ <text height="30" orientation="bottom" width="418" stroke="none" x="194.2857142857143" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2264
+ <tspan x="194.2857142857143" dy="0.71em">Truck C</tspan>
2265
+ </text>
2266
+ </g>
2267
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2268
+ <text height="30" orientation="bottom" width="418" stroke="none" x="254" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2269
+ <tspan x="254" dy="0.71em">Truck D</tspan>
2270
+ </text>
2271
+ </g>
2272
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2273
+ <text height="30" orientation="bottom" width="418" stroke="none" x="313.7142857142857" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2274
+ <tspan x="313.7142857142857" dy="0.71em">Truck E</tspan>
2275
+ </text>
2276
+ </g>
2277
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2278
+ <text height="30" orientation="bottom" width="418" stroke="none" x="373.4285714285714" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2279
+ <tspan x="373.4285714285714" dy="0.71em">Truck F</tspan>
2280
+ </text>
2281
+ </g>
2282
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2283
+ <text height="30" orientation="bottom" width="418" stroke="none" x="433.1428571428571" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2284
+ <tspan x="433.1428571428571" dy="0.71em">Truck G</tspan>
2285
+ </text>
2286
+ </g>
2287
+ </g>
2288
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
2289
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2290
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="213" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
2291
+ <tspan x="37" dy="0.355em">0</tspan>
2292
+ </text>
2293
+ </g>
2294
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2295
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="161" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
2296
+ <tspan x="37" dy="0.355em">3000</tspan>
2297
+ </text>
2298
+ </g>
2299
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2300
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="109" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
2301
+ <tspan x="37" dy="0.355em">6000</tspan>
2302
+ </text>
2303
+ </g>
2304
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2305
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="57" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
2306
+ <tspan x="37" dy="0.355em">9000</tspan>
2307
+ </text>
2308
+ </g>
2309
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2310
+ <text width="40" orientation="left" height="208" stroke="none" x="37" y="10" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
2311
+ <tspan x="37" dy="0.355em">12000</tspan>
2312
+ </text>
2313
+ </g>
2314
+ </g>
2315
+ </g>
2316
+ </svg>
2317
+ </div>
2318
+ </div>
2319
+ </div>
2320
+ </div>
2321
+ ```
2322
+
2323
+ #### Props: BarChart
2324
+
2325
+ ### BarChart
2326
+
2327
+ | Name | Type | Default | Description |
2328
+ | --- | --- | --- | --- |
2329
+ | width | Number | — | The width of chart container. |
2330
+ | height | Number | — | The height of chart container. |
2331
+ | data | Array | — | The source data, in which each element is an object. It has the following format: [{ name: "a", value: 12 }] Note: for some charts, the color of the individual data is taken from the color prop: [{ name: "a", value: 12, color: "color-coldplay-fountain" }] |
2332
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
2333
+ | dataUnit | string | — | The unit of data displayed in the chart. |
2334
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
2335
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
2336
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
2337
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
2338
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
2339
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
2340
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
2341
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
2342
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
2343
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
2344
+ | tooltip | ChartTooltip \| Boolean | — | Defines whether or not the tooltip component shall be used. You can customize the tooltip by providing a custom ChartTooltip. Prop details can be found here: https://recharts.org/en-US/api/Tooltip. You can also customize the cursor color by setting a stroke or fill color in the cursor props. Details can be found here: https://recharts.org/en-US/api/Tooltip#cursor |
2345
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
2346
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
2347
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
2348
+
2349
+ #### Props: Bar
2350
+
2351
+ ### Bar
2352
+
2353
+ | Name | Type | Default | Description |
2354
+ | --- | --- | --- | --- |
2355
+ | color | String | color-coldplay-fountain | Defines the color for the whole bar component instead of individual colors from the data. Take the color name from the charts colors page. |
2356
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
2357
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
2358
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
2359
+
2360
+ #### Props: Legend
2361
+
2362
+ ### Legend
2363
+
2364
+ | Name | Type | Default | Description |
2365
+ | --- | --- | --- | --- |
2366
+ | iconType | String | square | Defines the type of the leading icon. |
2367
+ | iconSize | String | 12 | Defines the size of the leading icon. |
2368
+ | layout | String | vertical | Defines the layout of the legend. |
2369
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
2370
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
2371
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
2372
+
2373
+ ### Example: Example 7
2374
+
2375
+ Multiple axis BarChart
2376
+
2377
+ JanuaryFebruaryMarchAprilMayJuneTimerange0 €15 €30 €45 €60 €CostsQ1Q1Q1Q2Q2Q2
2378
+
2379
+ #### Summary
2380
+
2381
+ Multiple axis BarChart
2382
+
2383
+ JanuaryFebruaryMarchAprilMayJuneTimerange0 €15 €30 €45 €60 €CostsQ1Q1Q1Q2Q2Q2
2384
+
2385
+ #### React (tsx)
2386
+
2387
+ ```tsx
2388
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
2389
+ import Bar from '@rio-cloud/rio-uikit/Bar';
2390
+ import XAxis from '@rio-cloud/rio-uikit/XAxis';
2391
+
2392
+ export default () => {
2393
+ return (
2394
+ <>
2395
+ <label>Multiple axis BarChart</label>
2396
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 max-width-500'>
2397
+ <BarChart
2398
+ data={data}
2399
+ dataKey='label'
2400
+ showGrid
2401
+ xAxisOptions={{
2402
+ dataKey: 'label',
2403
+ label: { value: 'Timerange', offset: 30, position: 'bottom' },
2404
+ }}
2405
+ yAxisOptions={{
2406
+ unit: ' €',
2407
+ label: { value: 'Costs', angle: -90, position: 'insideLeft' },
2408
+ }}
2409
+ margin={{ bottom: 15 }}
2410
+ bars={[<Bar key='myBar' dataKey='costs' unit='€' />]}
2411
+ additionalAxes={[
2412
+ <XAxis key='quarterAxis' xAxisId='quarterAxis' dataKey='quarter' orientation='bottom' />,
2413
+ ]}
2414
+ />
2415
+ </div>
2416
+ </>
2417
+ );
2418
+ };
2419
+
2420
+ const data = [
2421
+ { label: 'January', costs: 46.8, quarter: 'Q1' },
2422
+ { label: 'February', costs: 22.0, quarter: 'Q1' },
2423
+ { label: 'March', costs: 12.4, quarter: 'Q1' },
2424
+ { label: 'April', costs: 3.88, quarter: 'Q2' },
2425
+ { label: 'May', costs: 3.23, quarter: 'Q2' },
2426
+ { label: 'June', costs: 4.67, quarter: 'Q2' },
2427
+ ];
2428
+ ```
2429
+
2430
+ #### HTML (html)
2431
+
2432
+ ```html
2433
+ <label>Multiple axis BarChart</label>
2434
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 max-width-500">
2435
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
2436
+ <div style="width: 0px; height: 0px; overflow: visible;">
2437
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
2438
+ <div xmlns="http://www.w3.org/1999/xhtml" tabindex="-1" class="recharts-tooltip-wrapper" style="visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px;">
2439
+ <div class="recharts-default-tooltip" role="status" aria-live="assertive" style="margin: 0px; padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); white-space: nowrap;">
2440
+ <p class="recharts-tooltip-label" style="margin: 0px;">
2441
+ </p>
2442
+ </div>
2443
+ </div>
2444
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
2445
+ <title>
2446
+ </title>
2447
+ <desc>
2448
+ </desc>
2449
+ <g tabindex="-1" id="recharts-zindex--100-:r2i:">
2450
+ <g class="recharts-cartesian-grid">
2451
+ <g class="recharts-cartesian-grid-horizontal">
2452
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="60" y1="193" x2="468" y2="193">
2453
+ </line>
2454
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="60" y1="144.75" x2="468" y2="144.75">
2455
+ </line>
2456
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="60" y1="96.5" x2="468" y2="96.5">
2457
+ </line>
2458
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="60" y1="48.25" x2="468" y2="48.25">
2459
+ </line>
2460
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="60" y1="0" x2="468" y2="0">
2461
+ </line>
2462
+ </g>
2463
+ <g class="recharts-cartesian-grid-vertical">
2464
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="94" y1="0" x2="94" y2="193">
2465
+ </line>
2466
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="162" y1="0" x2="162" y2="193">
2467
+ </line>
2468
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="230" y1="0" x2="230" y2="193">
2469
+ </line>
2470
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="298" y1="0" x2="298" y2="193">
2471
+ </line>
2472
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="366" y1="0" x2="366" y2="193">
2473
+ </line>
2474
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="434" y1="0" x2="434" y2="193">
2475
+ </line>
2476
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="60" y1="0" x2="60" y2="193">
2477
+ </line>
2478
+ <line stroke-dasharray="3 3" stroke="#ccc" fill="none" x="60" y="0" width="408" height="193" x1="468" y1="0" x2="468" y2="193">
2479
+ </line>
2480
+ </g>
2481
+ </g>
2482
+ </g>
2483
+ <g tabindex="-1" id="recharts-zindex--50-:r2j:">
2484
+ </g>
2485
+ <defs>
2486
+ <clipPath id="recharts7-clip">
2487
+ <rect x="60" y="0" height="193" width="408">
2488
+ </rect>
2489
+ </clipPath>
2490
+ </defs>
2491
+ <g tabindex="-1" id="recharts-zindex-100-:r2l:">
2492
+ </g>
2493
+ <g tabindex="-1" id="recharts-zindex-200-:r2m:">
2494
+ </g>
2495
+ <g tabindex="-1" id="recharts-zindex-300-:r2n:">
2496
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r2k:">
2497
+ <g class="recharts-layer recharts-bar-rectangles">
2498
+ <g class="recharts-layer">
2499
+ <g class="recharts-layer recharts-bar-rectangle">
2500
+ <path fill="#67abc5 " name="undefined" x="66.8" y="42.460000000000015" width="54" height="150.54" radius="0" class="recharts-rectangle" d="M 66.8,42.460000000000015 h 54 v 150.54 h -54 Z">
2501
+ </path>
2502
+ </g>
2503
+ <g class="recharts-layer recharts-bar-rectangle">
2504
+ <path fill="#67abc5 " name="undefined" x="134.8" y="122.23333333333333" width="54" height="70.76666666666667" radius="0" class="recharts-rectangle" d="M 134.8,122.23333333333333 h 54 v 70.76666666666667 h -54 Z">
2505
+ </path>
2506
+ </g>
2507
+ <g class="recharts-layer recharts-bar-rectangle">
2508
+ <path fill="#67abc5 " name="undefined" x="202.8" y="153.11333333333334" width="54" height="39.886666666666656" radius="0" class="recharts-rectangle" d="M 202.8,153.11333333333334 h 54 v 39.886666666666656 h -54 Z">
2509
+ </path>
2510
+ </g>
2511
+ <g class="recharts-layer recharts-bar-rectangle">
2512
+ <path fill="#67abc5 " name="undefined" x="270.8" y="180.51933333333335" width="54" height="12.48066666666665" radius="0" class="recharts-rectangle" d="M 270.8,180.51933333333335 h 54 v 12.48066666666665 h -54 Z">
2513
+ </path>
2514
+ </g>
2515
+ <g class="recharts-layer recharts-bar-rectangle">
2516
+ <path fill="#67abc5 " name="undefined" x="338.8" y="182.6101666666667" width="54" height="10.389833333333314" radius="0" class="recharts-rectangle" d="M 338.8,182.6101666666667 h 54 v 10.389833333333314 h -54 Z">
2517
+ </path>
2518
+ </g>
2519
+ <g class="recharts-layer recharts-bar-rectangle">
2520
+ <path fill="#67abc5 " name="undefined" x="406.8" y="177.97816666666668" width="54" height="15.02183333333332" radius="0" class="recharts-rectangle" d="M 406.8,177.97816666666668 h 54 v 15.02183333333332 h -54 Z">
2521
+ </path>
2522
+ </g>
2523
+ </g>
2524
+ </g>
2525
+ </g>
2526
+ </g>
2527
+ <g tabindex="-1" id="recharts-zindex-400-:r2o:">
2528
+ </g>
2529
+ <g tabindex="-1" id="recharts-zindex-500-:r2p:">
2530
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
2531
+ <line angle="0" height="30" orientation="bottom" x="60" y="193" width="408" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="60" y1="193" x2="468" y2="193">
2532
+ </line>
2533
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
2534
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
2535
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2536
+ <line angle="0" height="30" orientation="bottom" x="60" y="193" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="94" y1="199" x2="94" y2="193">
2537
+ </line>
2538
+ </g>
2539
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2540
+ <line angle="0" height="30" orientation="bottom" x="60" y="193" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="162" y1="199" x2="162" y2="193">
2541
+ </line>
2542
+ </g>
2543
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2544
+ <line angle="0" height="30" orientation="bottom" x="60" y="193" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="230" y1="199" x2="230" y2="193">
2545
+ </line>
2546
+ </g>
2547
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2548
+ <line angle="0" height="30" orientation="bottom" x="60" y="193" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="298" y1="199" x2="298" y2="193">
2549
+ </line>
2550
+ </g>
2551
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2552
+ <line angle="0" height="30" orientation="bottom" x="60" y="193" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="366" y1="199" x2="366" y2="193">
2553
+ </line>
2554
+ </g>
2555
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2556
+ <line angle="0" height="30" orientation="bottom" x="60" y="193" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="434" y1="199" x2="434" y2="193">
2557
+ </line>
2558
+ </g>
2559
+ </g>
2560
+ </g>
2561
+ </g>
2562
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
2563
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="193" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="60" y1="0" x2="60" y2="193">
2564
+ </line>
2565
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
2566
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
2567
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2568
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="193" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="54" y1="193" x2="60" y2="193">
2569
+ </line>
2570
+ </g>
2571
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2572
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="193" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="54" y1="144.75" x2="60" y2="144.75">
2573
+ </line>
2574
+ </g>
2575
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2576
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="193" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="54" y1="96.5" x2="60" y2="96.5">
2577
+ </line>
2578
+ </g>
2579
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2580
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="193" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="54" y1="48.25" x2="60" y2="48.25">
2581
+ </line>
2582
+ </g>
2583
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2584
+ <line angle="0" orientation="left" width="60" x="0" y="0" height="193" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="54" y1="0" x2="60" y2="0">
2585
+ </line>
2586
+ </g>
2587
+ </g>
2588
+ </g>
2589
+ </g>
2590
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
2591
+ <line orientation="bottom" angle="0" height="30" x="60" y="223" width="408" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="60" y1="223" x2="468" y2="223">
2592
+ </line>
2593
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
2594
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
2595
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2596
+ <line orientation="bottom" angle="0" height="30" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="94" y1="229" x2="94" y2="223">
2597
+ </line>
2598
+ </g>
2599
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2600
+ <line orientation="bottom" angle="0" height="30" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="162" y1="229" x2="162" y2="223">
2601
+ </line>
2602
+ </g>
2603
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2604
+ <line orientation="bottom" angle="0" height="30" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="230" y1="229" x2="230" y2="223">
2605
+ </line>
2606
+ </g>
2607
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2608
+ <line orientation="bottom" angle="0" height="30" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="298" y1="229" x2="298" y2="223">
2609
+ </line>
2610
+ </g>
2611
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2612
+ <line orientation="bottom" angle="0" height="30" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="366" y1="229" x2="366" y2="223">
2613
+ </line>
2614
+ </g>
2615
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2616
+ <line orientation="bottom" angle="0" height="30" x="60" y="223" width="408" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="434" y1="229" x2="434" y2="223">
2617
+ </line>
2618
+ </g>
2619
+ </g>
2620
+ </g>
2621
+ </g>
2622
+ </g>
2623
+ <g tabindex="-1" id="recharts-zindex-600-:r2q:">
2624
+ </g>
2625
+ <g tabindex="-1" id="recharts-zindex-1000-:r2r:">
2626
+ </g>
2627
+ <g tabindex="-1" id="recharts-zindex-1100-:r2s:">
2628
+ </g>
2629
+ <g tabindex="-1" id="recharts-zindex-1200-:r2t:">
2630
+ </g>
2631
+ <g tabindex="-1" id="recharts-zindex-2000-:r2u:">
2632
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
2633
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2634
+ <text height="30" orientation="bottom" width="408" stroke="none" x="94" y="201" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2635
+ <tspan x="94" dy="0.71em">January</tspan>
2636
+ </text>
2637
+ </g>
2638
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2639
+ <text height="30" orientation="bottom" width="408" stroke="none" x="162" y="201" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2640
+ <tspan x="162" dy="0.71em">February</tspan>
2641
+ </text>
2642
+ </g>
2643
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2644
+ <text height="30" orientation="bottom" width="408" stroke="none" x="230" y="201" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2645
+ <tspan x="230" dy="0.71em">March</tspan>
2646
+ </text>
2647
+ </g>
2648
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2649
+ <text height="30" orientation="bottom" width="408" stroke="none" x="298" y="201" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2650
+ <tspan x="298" dy="0.71em">April</tspan>
2651
+ </text>
2652
+ </g>
2653
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2654
+ <text height="30" orientation="bottom" width="408" stroke="none" x="366" y="201" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2655
+ <tspan x="366" dy="0.71em">May</tspan>
2656
+ </text>
2657
+ </g>
2658
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2659
+ <text height="30" orientation="bottom" width="408" stroke="none" x="434" y="201" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2660
+ <tspan x="434" dy="0.71em">June</tspan>
2661
+ </text>
2662
+ </g>
2663
+ </g>
2664
+ <text offset="30" x="264" y="253" class="recharts-text recharts-label" text-anchor="middle" fill="#808080">
2665
+ <tspan x="264" dy="0.71em">Timerange</tspan>
2666
+ </text>
2667
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
2668
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2669
+ <text orientation="left" width="60" height="193" stroke="none" x="52" y="193" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
2670
+ <tspan x="52" dy="0.355em">0 €</tspan>
2671
+ </text>
2672
+ </g>
2673
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2674
+ <text orientation="left" width="60" height="193" stroke="none" x="52" y="144.75" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
2675
+ <tspan x="52" dy="0.355em">15 €</tspan>
2676
+ </text>
2677
+ </g>
2678
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2679
+ <text orientation="left" width="60" height="193" stroke="none" x="52" y="96.5" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
2680
+ <tspan x="52" dy="0.355em">30 €</tspan>
2681
+ </text>
2682
+ </g>
2683
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2684
+ <text orientation="left" width="60" height="193" stroke="none" x="52" y="48.25" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
2685
+ <tspan x="52" dy="0.355em">45 €</tspan>
2686
+ </text>
2687
+ </g>
2688
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2689
+ <text orientation="left" width="60" height="193" stroke="none" x="52" y="10" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="end" fill="#666">
2690
+ <tspan x="52" dy="0.355em">60 €</tspan>
2691
+ </text>
2692
+ </g>
2693
+ </g>
2694
+ <text offset="5" transform="rotate(-90, 5, 96.5)" x="5" y="96.5" class="recharts-text recharts-label" text-anchor="start" fill="#808080">
2695
+ <tspan x="5" dy="0.355em">Costs</tspan>
2696
+ </text>
2697
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
2698
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2699
+ <text orientation="bottom" height="30" width="408" stroke="none" x="94" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2700
+ <tspan x="94" dy="0.71em">Q1</tspan>
2701
+ </text>
2702
+ </g>
2703
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2704
+ <text orientation="bottom" height="30" width="408" stroke="none" x="162" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2705
+ <tspan x="162" dy="0.71em">Q1</tspan>
2706
+ </text>
2707
+ </g>
2708
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2709
+ <text orientation="bottom" height="30" width="408" stroke="none" x="230" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2710
+ <tspan x="230" dy="0.71em">Q1</tspan>
2711
+ </text>
2712
+ </g>
2713
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2714
+ <text orientation="bottom" height="30" width="408" stroke="none" x="298" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2715
+ <tspan x="298" dy="0.71em">Q2</tspan>
2716
+ </text>
2717
+ </g>
2718
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2719
+ <text orientation="bottom" height="30" width="408" stroke="none" x="366" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2720
+ <tspan x="366" dy="0.71em">Q2</tspan>
2721
+ </text>
2722
+ </g>
2723
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2724
+ <text orientation="bottom" height="30" width="408" stroke="none" x="434" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2725
+ <tspan x="434" dy="0.71em">Q2</tspan>
2726
+ </text>
2727
+ </g>
2728
+ </g>
2729
+ </g>
2730
+ </svg>
2731
+ </div>
2732
+ </div>
2733
+ </div>
2734
+ </div>
2735
+ ```
2736
+
2737
+ #### Props: BarChart
2738
+
2739
+ ### BarChart
2740
+
2741
+ | Name | Type | Default | Description |
2742
+ | --- | --- | --- | --- |
2743
+ | width | Number | — | The width of chart container. |
2744
+ | height | Number | — | The height of chart container. |
2745
+ | data | Array | — | The source data, in which each element is an object. It has the following format: [{ name: "a", value: 12 }] Note: for some charts, the color of the individual data is taken from the color prop: [{ name: "a", value: 12, color: "color-coldplay-fountain" }] |
2746
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
2747
+ | dataUnit | string | — | The unit of data displayed in the chart. |
2748
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
2749
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
2750
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
2751
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
2752
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
2753
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
2754
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
2755
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
2756
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
2757
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
2758
+ | tooltip | ChartTooltip \| Boolean | — | Defines whether or not the tooltip component shall be used. You can customize the tooltip by providing a custom ChartTooltip. Prop details can be found here: https://recharts.org/en-US/api/Tooltip. You can also customize the cursor color by setting a stroke or fill color in the cursor props. Details can be found here: https://recharts.org/en-US/api/Tooltip#cursor |
2759
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
2760
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
2761
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
2762
+
2763
+ #### Props: Bar
2764
+
2765
+ ### Bar
2766
+
2767
+ | Name | Type | Default | Description |
2768
+ | --- | --- | --- | --- |
2769
+ | color | String | color-coldplay-fountain | Defines the color for the whole bar component instead of individual colors from the data. Take the color name from the charts colors page. |
2770
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
2771
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
2772
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
2773
+
2774
+ #### Props: Legend
2775
+
2776
+ ### Legend
2777
+
2778
+ | Name | Type | Default | Description |
2779
+ | --- | --- | --- | --- |
2780
+ | iconType | String | square | Defines the type of the leading icon. |
2781
+ | iconSize | String | 12 | Defines the size of the leading icon. |
2782
+ | layout | String | vertical | Defines the layout of the legend. |
2783
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
2784
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
2785
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |