@rio-cloud/uikit-mcp 1.0.1 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (388) hide show
  1. package/README.md +75 -39
  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 +2033 -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 +3132 -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 +2765 -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 +533 -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 +935 -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 +17538 -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 +486 -0
  112. package/dist/docs/foundations.md +20901 -0
  113. package/dist/docs/start/changelog.md +714 -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,2765 @@
1
+ # BarChart
2
+
3
+ *Category:* Components
4
+ *Section:* Charts
5
+ *Source:* https://uikit.developers.rio.cloud/#components/barCharts
6
+ *Captured:* 2025-12-12T14:21:30.427Z
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="58.739705974946446" width="62" height="164.26029402505355" class="recharts-rectangle" d="M7.8,61.739705974946446A 3,3,0,0,1,10.8,58.739705974946446L 66.8,58.739705974946446A 3,3,0,0,1,
128
+ 69.8,61.739705974946446L 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="145.78362246685515" width="62" height="77.21637753314484" class="recharts-rectangle" d="M85.8,148.78362246685515A 3,3,0,0,1,88.8,145.78362246685515L 144.8,145.78362246685515A 3,3,0,0,1,
133
+ 147.8,148.78362246685515L 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="179.47804175404565" width="62" height="43.521958245954366" class="recharts-rectangle" d="M163.8,182.47804175404565A 3,3,0,0,1,166.8,179.47804175404565L 222.8,179.47804175404565A 3,3,0,0,1,
138
+ 225.8,182.47804175404565L 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="209.38183887142716" width="62" height="13.618161128572824" class="recharts-rectangle" d="M241.8,212.38183887142716A 3,3,0,0,1,244.8,209.38183887142716L 300.8,209.38183887142716A 3,3,0,0,1,
143
+ 303.8,212.38183887142716L 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="211.66323184399738" width="62" height="11.336768156002618" class="recharts-rectangle" d="M319.8,214.66323184399738A 3,3,0,0,1,322.8,211.66323184399738L 378.8,211.66323184399738A 3,3,0,0,1,
148
+ 381.8,214.66323184399738L 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="206.6090689509188" width="62" height="16.390931049081193" class="recharts-rectangle" d="M397.8,209.6090689509188A 3,3,0,0,1,400.8,206.6090689509188L 456.8,206.6090689509188A 3,3,0,0,1,
153
+ 459.8,209.6090689509188L 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>
238
+ </svg>
239
+ </div>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ ```
244
+
245
+ #### Props: BarChart
246
+
247
+ ### BarChart
248
+
249
+ | Name | Type | Default | Description |
250
+ | --- | --- | --- | --- |
251
+ | width | Number | — | The width of chart container. |
252
+ | height | Number | — | The height of chart container. |
253
+ | 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" }] |
254
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
255
+ | dataUnit | string | — | The unit of data displayed in the chart. |
256
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
257
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
258
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
259
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
260
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
261
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
262
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
263
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
264
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
265
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
266
+ | 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 |
267
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
268
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
269
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
270
+
271
+ #### Props: Bar
272
+
273
+ ### Bar
274
+
275
+ | Name | Type | Default | Description |
276
+ | --- | --- | --- | --- |
277
+ | 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. |
278
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
279
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
280
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
281
+
282
+ #### Props: Legend
283
+
284
+ ### Legend
285
+
286
+ | Name | Type | Default | Description |
287
+ | --- | --- | --- | --- |
288
+ | iconType | String | square | Defines the type of the leading icon. |
289
+ | iconSize | String | 12 | Defines the size of the leading icon. |
290
+ | layout | String | vertical | Defines the layout of the legend. |
291
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
292
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
293
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
294
+
295
+ ### Example: Horizontal BarChart
296
+
297
+ Horizontal BarChart
298
+
299
+ JanuaryFebruaryMarchAprilMayJuneTimerange0 €15 €30 €45 €60 €Costs
300
+
301
+ #### Summary
302
+
303
+ Horizontal BarChart
304
+
305
+ JanuaryFebruaryMarchAprilMayJuneTimerange0 €15 €30 €45 €60 €Costs
306
+
307
+ #### React (tsx)
308
+
309
+ ```tsx
310
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
311
+ import Bar from '@rio-cloud/rio-uikit/Bar';
312
+ import FormLabel from '@rio-cloud/rio-uikit/FormLabel';
313
+
314
+ export default () => {
315
+ return (
316
+ <>
317
+ <FormLabel>Horizontal BarChart</FormLabel>
318
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 max-width-500'>
319
+ <BarChart
320
+ data={data}
321
+ dataKey='label'
322
+ showGrid
323
+ xAxisOptions={{
324
+ dataKey: 'label',
325
+ label: { value: 'Timerange', offset: 0, position: 'bottom' },
326
+ }}
327
+ yAxisOptions={{
328
+ unit: ' €',
329
+ label: { value: 'Costs', angle: -90, position: 'insideLeft' },
330
+ }}
331
+ margin={{ bottom: 15 }}
332
+ bars={[<Bar key='myBar' dataKey='costs' unit='€' radius={[3, 3, 0, 0]} barSize={20} />]}
333
+ />
334
+ </div>
335
+ </>
336
+ );
337
+ };
338
+
339
+ const data = [
340
+ {
341
+ label: 'January',
342
+ costs: 46.8,
343
+ },
344
+ {
345
+ label: 'February',
346
+ costs: 22.0,
347
+ },
348
+ {
349
+ label: 'March',
350
+ costs: 12.4,
351
+ },
352
+ {
353
+ label: 'April',
354
+ costs: 3.88,
355
+ },
356
+ {
357
+ label: 'May',
358
+ costs: 3.23,
359
+ },
360
+ {
361
+ label: 'June',
362
+ costs: 4.67,
363
+ },
364
+ ];
365
+ ```
366
+
367
+ #### HTML (html)
368
+
369
+ ```html
370
+ <div class="text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5">Horizontal BarChart</div>
371
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 max-width-500">
372
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
373
+ <div style="width: 0px; height: 0px; overflow: visible;">
374
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
375
+ <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;">
376
+ <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;">
377
+ <p class="recharts-tooltip-label" style="margin: 0px;">
378
+ </p>
379
+ </div>
380
+ </div>
381
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
382
+ <title>
383
+ </title>
384
+ <desc>
385
+ </desc>
386
+ <g tabindex="-1" id="recharts-zindex--100-:re:">
387
+ <g class="recharts-cartesian-grid">
388
+ <g class="recharts-cartesian-grid-horizontal">
389
+ <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">
390
+ </line>
391
+ <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">
392
+ </line>
393
+ <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">
394
+ </line>
395
+ <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">
396
+ </line>
397
+ <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">
398
+ </line>
399
+ </g>
400
+ <g class="recharts-cartesian-grid-vertical">
401
+ <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">
402
+ </line>
403
+ <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">
404
+ </line>
405
+ <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">
406
+ </line>
407
+ <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">
408
+ </line>
409
+ <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">
410
+ </line>
411
+ <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">
412
+ </line>
413
+ <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">
414
+ </line>
415
+ <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">
416
+ </line>
417
+ </g>
418
+ </g>
419
+ </g>
420
+ <g tabindex="-1" id="recharts-zindex--50-:rf:">
421
+ </g>
422
+ <defs>
423
+ <clipPath id="recharts2-clip">
424
+ <rect x="60" y="0" height="223" width="408">
425
+ </rect>
426
+ </clipPath>
427
+ </defs>
428
+ <g tabindex="-1" id="recharts-zindex-100-:rh:">
429
+ </g>
430
+ <g tabindex="-1" id="recharts-zindex-200-:ri:">
431
+ </g>
432
+ <g tabindex="-1" id="recharts-zindex-300-:rj:">
433
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:rg:">
434
+ <g class="recharts-layer recharts-bar-rectangles">
435
+ <g class="recharts-layer">
436
+ <g class="recharts-layer recharts-bar-rectangle">
437
+ <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,
438
+ 104,52.06000000000002L 104,223L 84,223Z">
439
+ </path>
440
+ </g>
441
+ <g class="recharts-layer recharts-bar-rectangle">
442
+ <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,
443
+ 172,144.23333333333332L 172,223L 152,223Z">
444
+ </path>
445
+ </g>
446
+ <g class="recharts-layer recharts-bar-rectangle">
447
+ <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,
448
+ 240,179.91333333333333L 240,223L 220,223Z">
449
+ </path>
450
+ </g>
451
+ <g class="recharts-layer recharts-bar-rectangle">
452
+ <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,
453
+ 308,211.57933333333332L 308,223L 288,223Z">
454
+ </path>
455
+ </g>
456
+ <g class="recharts-layer recharts-bar-rectangle">
457
+ <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,
458
+ 376,213.99516666666668L 376,223L 356,223Z">
459
+ </path>
460
+ </g>
461
+ <g class="recharts-layer recharts-bar-rectangle">
462
+ <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,
463
+ 444,208.64316666666667L 444,223L 424,223Z">
464
+ </path>
465
+ </g>
466
+ </g>
467
+ </g>
468
+ </g>
469
+ </g>
470
+ <g tabindex="-1" id="recharts-zindex-400-:rk:">
471
+ </g>
472
+ <g tabindex="-1" id="recharts-zindex-500-:rl:">
473
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
474
+ <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">
475
+ </line>
476
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
477
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
478
+ <g class="recharts-layer recharts-cartesian-axis-tick">
479
+ <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">
480
+ </line>
481
+ </g>
482
+ <g class="recharts-layer recharts-cartesian-axis-tick">
483
+ <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">
484
+ </line>
485
+ </g>
486
+ <g class="recharts-layer recharts-cartesian-axis-tick">
487
+ <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">
488
+ </line>
489
+ </g>
490
+ <g class="recharts-layer recharts-cartesian-axis-tick">
491
+ <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">
492
+ </line>
493
+ </g>
494
+ <g class="recharts-layer recharts-cartesian-axis-tick">
495
+ <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">
496
+ </line>
497
+ </g>
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="434" y1="229" x2="434" y2="223">
500
+ </line>
501
+ </g>
502
+ </g>
503
+ </g>
504
+ </g>
505
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
506
+ <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">
507
+ </line>
508
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
509
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
510
+ <g class="recharts-layer recharts-cartesian-axis-tick">
511
+ <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">
512
+ </line>
513
+ </g>
514
+ <g class="recharts-layer recharts-cartesian-axis-tick">
515
+ <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">
516
+ </line>
517
+ </g>
518
+ <g class="recharts-layer recharts-cartesian-axis-tick">
519
+ <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">
520
+ </line>
521
+ </g>
522
+ <g class="recharts-layer recharts-cartesian-axis-tick">
523
+ <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">
524
+ </line>
525
+ </g>
526
+ <g class="recharts-layer recharts-cartesian-axis-tick">
527
+ <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">
528
+ </line>
529
+ </g>
530
+ </g>
531
+ </g>
532
+ </g>
533
+ </g>
534
+ <g tabindex="-1" id="recharts-zindex-600-:rm:">
535
+ </g>
536
+ <g tabindex="-1" id="recharts-zindex-1000-:rn:">
537
+ </g>
538
+ <g tabindex="-1" id="recharts-zindex-1100-:ro:">
539
+ </g>
540
+ <g tabindex="-1" id="recharts-zindex-1200-:rp:">
541
+ </g>
542
+ <g tabindex="-1" id="recharts-zindex-2000-:rq:">
543
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
544
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
545
+ <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">
546
+ <tspan x="94" dy="0.71em">January</tspan>
547
+ </text>
548
+ </g>
549
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
550
+ <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">
551
+ <tspan x="162" dy="0.71em">February</tspan>
552
+ </text>
553
+ </g>
554
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
555
+ <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">
556
+ <tspan x="230" dy="0.71em">March</tspan>
557
+ </text>
558
+ </g>
559
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
560
+ <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">
561
+ <tspan x="298" dy="0.71em">April</tspan>
562
+ </text>
563
+ </g>
564
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
565
+ <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">
566
+ <tspan x="366" dy="0.71em">May</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="434" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
571
+ <tspan x="434" dy="0.71em">June</tspan>
572
+ </text>
573
+ </g>
574
+ </g>
575
+ <text offset="0" x="264" y="253" class="recharts-text recharts-label" text-anchor="middle" fill="#808080">
576
+ <tspan x="264" dy="0.71em">Timerange</tspan>
577
+ </text>
578
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
579
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
580
+ <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">
581
+ <tspan x="52" dy="0.355em">0 €</tspan>
582
+ </text>
583
+ </g>
584
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
585
+ <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">
586
+ <tspan x="52" dy="0.355em">15 €</tspan>
587
+ </text>
588
+ </g>
589
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
590
+ <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">
591
+ <tspan x="52" dy="0.355em">30 €</tspan>
592
+ </text>
593
+ </g>
594
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
595
+ <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">
596
+ <tspan x="52" dy="0.355em">45 €</tspan>
597
+ </text>
598
+ </g>
599
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
600
+ <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">
601
+ <tspan x="52" dy="0.355em">60 €</tspan>
602
+ </text>
603
+ </g>
604
+ </g>
605
+ <text offset="5" transform="rotate(-90, 5, 111.5)" x="5" y="111.5" class="recharts-text recharts-label" text-anchor="start" fill="#808080">
606
+ <tspan x="5" dy="0.355em">Costs</tspan>
607
+ </text>
608
+ </g>
609
+ </svg>
610
+ </div>
611
+ </div>
612
+ </div>
613
+ </div>
614
+ ```
615
+
616
+ #### Props: BarChart
617
+
618
+ ### BarChart
619
+
620
+ | Name | Type | Default | Description |
621
+ | --- | --- | --- | --- |
622
+ | width | Number | — | The width of chart container. |
623
+ | height | Number | — | The height of chart container. |
624
+ | 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" }] |
625
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
626
+ | dataUnit | string | — | The unit of data displayed in the chart. |
627
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
628
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
629
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
630
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
631
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
632
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
633
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
634
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
635
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
636
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
637
+ | 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 |
638
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
639
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
640
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
641
+
642
+ #### Props: Bar
643
+
644
+ ### Bar
645
+
646
+ | Name | Type | Default | Description |
647
+ | --- | --- | --- | --- |
648
+ | 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. |
649
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
650
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
651
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
652
+
653
+ #### Props: Legend
654
+
655
+ ### Legend
656
+
657
+ | Name | Type | Default | Description |
658
+ | --- | --- | --- | --- |
659
+ | iconType | String | square | Defines the type of the leading icon. |
660
+ | iconSize | String | 12 | Defines the size of the leading icon. |
661
+ | layout | String | vertical | Defines the layout of the legend. |
662
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
663
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
664
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
665
+
666
+ ### Example: pv
667
+
668
+ Multiple Bars BarChart
669
+
670
+ pv
671
+ uv
672
+
673
+ Page APage BPage CPage DPage EPage FPage G025005000750010000
674
+
675
+ #### Summary
676
+
677
+ Multiple Bars BarChart
678
+
679
+ pv
680
+ uv
681
+
682
+ Page APage BPage CPage DPage EPage FPage G025005000750010000
683
+
684
+ #### React (tsx)
685
+
686
+ ```tsx
687
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
688
+ import Bar from '@rio-cloud/rio-uikit/Bar';
689
+ import Legend, { type LegendPayload } from '@rio-cloud/rio-uikit/Legend';
690
+
691
+ type CustomData = {
692
+ name: string;
693
+ uv: number;
694
+ pv: number;
695
+ };
696
+
697
+ export default () => {
698
+ return (
699
+ <>
700
+ <label>Multiple Bars BarChart</label>
701
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 min-width-300 max-width-500'>
702
+ <BarChart
703
+ data={data}
704
+ dataKey='name'
705
+ legend={
706
+ <Legend
707
+ layout='horizontal'
708
+ verticalAlign='bottom'
709
+ align='center'
710
+ formatter={(value: string | number, _entry: LegendPayload) => (
711
+ <span className='text-color-dark'>{value}</span>
712
+ )}
713
+ />
714
+ }
715
+ showGrid
716
+ gridOptions={{ vertical: false }}
717
+ xAxisOptions={{ dataKey: 'name' }}
718
+ yAxisOptions={{ width: 40 }}
719
+ bars={[
720
+ <Bar key='pv' dataKey='pv' color='color-coldplay-moos' />,
721
+ <Bar key='uv' dataKey='uv' color='color-warmup-crimson' />,
722
+ ]}
723
+ />
724
+ </div>
725
+ </>
726
+ );
727
+ };
728
+
729
+ const data: CustomData[] = [
730
+ { name: 'Page A', uv: 4000, pv: 2400 },
731
+ { name: 'Page B', uv: 3000, pv: 1398 },
732
+ { name: 'Page C', uv: 2000, pv: 9800 },
733
+ { name: 'Page D', uv: 2780, pv: 3908 },
734
+ { name: 'Page E', uv: 1890, pv: 4800 },
735
+ { name: 'Page F', uv: 2390, pv: 3800 },
736
+ { name: 'Page G', uv: 3490, pv: 4300 },
737
+ ];
738
+ ```
739
+
740
+ #### HTML (html)
741
+
742
+ ```html
743
+ <label>Multiple Bars BarChart</label>
744
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 min-width-300 max-width-500">
745
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
746
+ <div style="width: 0px; height: 0px; overflow: visible;">
747
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
748
+ <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;">
749
+ <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;">
750
+ <p class="recharts-tooltip-label" style="margin: 0px;">
751
+ </p>
752
+ </div>
753
+ </div>
754
+ <div class="recharts-legend-wrapper" style="position: absolute; width: 458px; height: auto; left: 5px; bottom: 5px;">
755
+ <ul class="recharts-default-legend" style="padding: 0px; margin: 0px; text-align: center;">
756
+ <li class="recharts-legend-item legend-item-0" style="display: inline-block; margin-right: 10px;">
757
+ <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;">
758
+ <title>
759
+ </title>
760
+ <desc>
761
+ </desc>
762
+ <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">
763
+ </path>
764
+ </svg>
765
+ <span class="recharts-legend-item-text" style="color: rgb(161, 218, 163);">
766
+ <span class="text-color-dark">pv</span>
767
+ </span>
768
+ </li>
769
+ <li class="recharts-legend-item legend-item-1" style="display: inline-block; margin-right: 10px;">
770
+ <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;">
771
+ <title>
772
+ </title>
773
+ <desc>
774
+ </desc>
775
+ <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">
776
+ </path>
777
+ </svg>
778
+ <span class="recharts-legend-item-text" style="color: rgb(49, 20, 79);">
779
+ <span class="text-color-dark">uv</span>
780
+ </span>
781
+ </li>
782
+ </ul>
783
+ </div>
784
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
785
+ <title>
786
+ </title>
787
+ <desc>
788
+ </desc>
789
+ <g tabindex="-1" id="recharts-zindex--100-:rr:">
790
+ <g class="recharts-cartesian-grid">
791
+ <g class="recharts-cartesian-grid-horizontal">
792
+ <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">
793
+ </line>
794
+ <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">
795
+ </line>
796
+ <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">
797
+ </line>
798
+ <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">
799
+ </line>
800
+ <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">
801
+ </line>
802
+ </g>
803
+ </g>
804
+ </g>
805
+ <g tabindex="-1" id="recharts-zindex--50-:rs:">
806
+ </g>
807
+ <defs>
808
+ <clipPath id="recharts3-clip">
809
+ <rect x="45" y="5" height="208" width="418">
810
+ </rect>
811
+ </clipPath>
812
+ </defs>
813
+ <g tabindex="-1" id="recharts-zindex-100-:rv:">
814
+ </g>
815
+ <g tabindex="-1" id="recharts-zindex-200-:r10:">
816
+ </g>
817
+ <g tabindex="-1" id="recharts-zindex-300-:r11:">
818
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:rt:">
819
+ <g class="recharts-layer recharts-bar-rectangles">
820
+ <g class="recharts-layer">
821
+ <g class="recharts-layer recharts-bar-rectangle">
822
+ <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">
823
+ </path>
824
+ </g>
825
+ <g class="recharts-layer recharts-bar-rectangle">
826
+ <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">
827
+ </path>
828
+ </g>
829
+ <g class="recharts-layer recharts-bar-rectangle">
830
+ <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">
831
+ </path>
832
+ </g>
833
+ <g class="recharts-layer recharts-bar-rectangle">
834
+ <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">
835
+ </path>
836
+ </g>
837
+ <g class="recharts-layer recharts-bar-rectangle">
838
+ <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">
839
+ </path>
840
+ </g>
841
+ <g class="recharts-layer recharts-bar-rectangle">
842
+ <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">
843
+ </path>
844
+ </g>
845
+ <g class="recharts-layer recharts-bar-rectangle">
846
+ <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">
847
+ </path>
848
+ </g>
849
+ </g>
850
+ </g>
851
+ </g>
852
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:ru:">
853
+ <g class="recharts-layer recharts-bar-rectangles">
854
+ <g class="recharts-layer">
855
+ <g class="recharts-layer recharts-bar-rectangle">
856
+ <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">
857
+ </path>
858
+ </g>
859
+ <g class="recharts-layer recharts-bar-rectangle">
860
+ <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">
861
+ </path>
862
+ </g>
863
+ <g class="recharts-layer recharts-bar-rectangle">
864
+ <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">
865
+ </path>
866
+ </g>
867
+ <g class="recharts-layer recharts-bar-rectangle">
868
+ <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">
869
+ </path>
870
+ </g>
871
+ <g class="recharts-layer recharts-bar-rectangle">
872
+ <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">
873
+ </path>
874
+ </g>
875
+ <g class="recharts-layer recharts-bar-rectangle">
876
+ <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">
877
+ </path>
878
+ </g>
879
+ <g class="recharts-layer recharts-bar-rectangle">
880
+ <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">
881
+ </path>
882
+ </g>
883
+ </g>
884
+ </g>
885
+ </g>
886
+ </g>
887
+ <g tabindex="-1" id="recharts-zindex-400-:r12:">
888
+ </g>
889
+ <g tabindex="-1" id="recharts-zindex-500-:r13:">
890
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
891
+ <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">
892
+ </line>
893
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
894
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
895
+ <g class="recharts-layer recharts-cartesian-axis-tick">
896
+ <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">
897
+ </line>
898
+ </g>
899
+ <g class="recharts-layer recharts-cartesian-axis-tick">
900
+ <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">
901
+ </line>
902
+ </g>
903
+ <g class="recharts-layer recharts-cartesian-axis-tick">
904
+ <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">
905
+ </line>
906
+ </g>
907
+ <g class="recharts-layer recharts-cartesian-axis-tick">
908
+ <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">
909
+ </line>
910
+ </g>
911
+ <g class="recharts-layer recharts-cartesian-axis-tick">
912
+ <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">
913
+ </line>
914
+ </g>
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="373.4285714285714" y1="219" x2="373.4285714285714" 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="433.1428571428571" y1="219" x2="433.1428571428571" y2="213">
921
+ </line>
922
+ </g>
923
+ </g>
924
+ </g>
925
+ </g>
926
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
927
+ <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">
928
+ </line>
929
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
930
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
931
+ <g class="recharts-layer recharts-cartesian-axis-tick">
932
+ <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">
933
+ </line>
934
+ </g>
935
+ <g class="recharts-layer recharts-cartesian-axis-tick">
936
+ <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">
937
+ </line>
938
+ </g>
939
+ <g class="recharts-layer recharts-cartesian-axis-tick">
940
+ <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">
941
+ </line>
942
+ </g>
943
+ <g class="recharts-layer recharts-cartesian-axis-tick">
944
+ <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">
945
+ </line>
946
+ </g>
947
+ <g class="recharts-layer recharts-cartesian-axis-tick">
948
+ <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">
949
+ </line>
950
+ </g>
951
+ </g>
952
+ </g>
953
+ </g>
954
+ </g>
955
+ <g tabindex="-1" id="recharts-zindex-600-:r14:">
956
+ </g>
957
+ <g tabindex="-1" id="recharts-zindex-1000-:r15:">
958
+ </g>
959
+ <g tabindex="-1" id="recharts-zindex-1100-:r16:">
960
+ </g>
961
+ <g tabindex="-1" id="recharts-zindex-1200-:r17:">
962
+ </g>
963
+ <g tabindex="-1" id="recharts-zindex-2000-:r18:">
964
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
965
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
966
+ <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">
967
+ <tspan x="74.85714285714286" dy="0.71em">Page A</tspan>
968
+ </text>
969
+ </g>
970
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
971
+ <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">
972
+ <tspan x="134.57142857142858" dy="0.71em">Page B</tspan>
973
+ </text>
974
+ </g>
975
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
976
+ <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">
977
+ <tspan x="194.2857142857143" dy="0.71em">Page C</tspan>
978
+ </text>
979
+ </g>
980
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
981
+ <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">
982
+ <tspan x="254" dy="0.71em">Page D</tspan>
983
+ </text>
984
+ </g>
985
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
986
+ <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">
987
+ <tspan x="313.7142857142857" dy="0.71em">Page E</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="373.4285714285714" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
992
+ <tspan x="373.4285714285714" dy="0.71em">Page F</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="433.1428571428571" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
997
+ <tspan x="433.1428571428571" dy="0.71em">Page G</tspan>
998
+ </text>
999
+ </g>
1000
+ </g>
1001
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
1002
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1003
+ <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">
1004
+ <tspan x="37" dy="0.355em">0</tspan>
1005
+ </text>
1006
+ </g>
1007
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1008
+ <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">
1009
+ <tspan x="37" dy="0.355em">2500</tspan>
1010
+ </text>
1011
+ </g>
1012
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1013
+ <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">
1014
+ <tspan x="37" dy="0.355em">5000</tspan>
1015
+ </text>
1016
+ </g>
1017
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1018
+ <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">
1019
+ <tspan x="37" dy="0.355em">7500</tspan>
1020
+ </text>
1021
+ </g>
1022
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1023
+ <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">
1024
+ <tspan x="37" dy="0.355em">10000</tspan>
1025
+ </text>
1026
+ </g>
1027
+ </g>
1028
+ </g>
1029
+ </svg>
1030
+ </div>
1031
+ </div>
1032
+ </div>
1033
+ </div>
1034
+ ```
1035
+
1036
+ #### Props: BarChart
1037
+
1038
+ ### BarChart
1039
+
1040
+ | Name | Type | Default | Description |
1041
+ | --- | --- | --- | --- |
1042
+ | width | Number | — | The width of chart container. |
1043
+ | height | Number | — | The height of chart container. |
1044
+ | 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" }] |
1045
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
1046
+ | dataUnit | string | — | The unit of data displayed in the chart. |
1047
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
1048
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
1049
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
1050
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
1051
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
1052
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
1053
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
1054
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
1055
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
1056
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
1057
+ | 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 |
1058
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
1059
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
1060
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
1061
+
1062
+ #### Props: Bar
1063
+
1064
+ ### Bar
1065
+
1066
+ | Name | Type | Default | Description |
1067
+ | --- | --- | --- | --- |
1068
+ | 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. |
1069
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
1070
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
1071
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
1072
+
1073
+ #### Props: Legend
1074
+
1075
+ ### Legend
1076
+
1077
+ | Name | Type | Default | Description |
1078
+ | --- | --- | --- | --- |
1079
+ | iconType | String | square | Defines the type of the leading icon. |
1080
+ | iconSize | String | 12 | Defines the size of the leading icon. |
1081
+ | layout | String | vertical | Defines the layout of the legend. |
1082
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
1083
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
1084
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
1085
+
1086
+ ### Example: Example 4
1087
+
1088
+ Stacked BarChart
1089
+
1090
+ pv
1091
+ uv
1092
+
1093
+ Page APage BPage CPage DPage EPage FPage G030006000900012000
1094
+
1095
+ #### Summary
1096
+
1097
+ Stacked BarChart
1098
+
1099
+ pv
1100
+ uv
1101
+
1102
+ Page APage BPage CPage DPage EPage FPage G030006000900012000
1103
+
1104
+ #### React (tsx)
1105
+
1106
+ ```tsx
1107
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
1108
+ import Bar from '@rio-cloud/rio-uikit/Bar';
1109
+ import Legend from '@rio-cloud/rio-uikit/Legend';
1110
+
1111
+ export default () => {
1112
+ return (
1113
+ <>
1114
+ <label>Stacked BarChart</label>
1115
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 max-width-500'>
1116
+ <BarChart
1117
+ data={data}
1118
+ dataKey='name'
1119
+ legend={<Legend layout='horizontal' verticalAlign='bottom' align='center' />}
1120
+ showGrid
1121
+ gridOptions={{ vertical: false }}
1122
+ xAxisOptions={{ dataKey: 'name' }}
1123
+ yAxisOptions={{ width: 40 }}
1124
+ bars={[
1125
+ <Bar key='pv' dataKey='pv' stackId='a' barSize={26} color='color-coldplay-moos' />,
1126
+ <Bar key='uv' dataKey='uv' stackId='a' barSize={26} color='color-coldplay-fountain' />,
1127
+ ]}
1128
+ />
1129
+ </div>
1130
+ </>
1131
+ );
1132
+ };
1133
+
1134
+ const data = [
1135
+ {
1136
+ name: 'Page A',
1137
+ uv: 4000,
1138
+ pv: 2400,
1139
+ },
1140
+ {
1141
+ name: 'Page B',
1142
+ uv: 3000,
1143
+ pv: 1398,
1144
+ },
1145
+ {
1146
+ name: 'Page C',
1147
+ uv: 2000,
1148
+ pv: 9800,
1149
+ },
1150
+ {
1151
+ name: 'Page D',
1152
+ uv: 2780,
1153
+ pv: 3908,
1154
+ },
1155
+ {
1156
+ name: 'Page E',
1157
+ uv: 1890,
1158
+ pv: 4800,
1159
+ },
1160
+ {
1161
+ name: 'Page F',
1162
+ uv: 2390,
1163
+ pv: 3800,
1164
+ },
1165
+ {
1166
+ name: 'Page G',
1167
+ uv: 3490,
1168
+ pv: 4300,
1169
+ },
1170
+ ];
1171
+ ```
1172
+
1173
+ #### HTML (html)
1174
+
1175
+ ```html
1176
+ <label>Stacked BarChart</label>
1177
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 max-width-500">
1178
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
1179
+ <div style="width: 0px; height: 0px; overflow: visible;">
1180
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
1181
+ <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;">
1182
+ <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;">
1183
+ <p class="recharts-tooltip-label" style="margin: 0px;">
1184
+ </p>
1185
+ </div>
1186
+ </div>
1187
+ <div class="recharts-legend-wrapper" style="position: absolute; width: 458px; height: auto; left: 5px; bottom: 5px;">
1188
+ <ul class="recharts-default-legend" style="padding: 0px; margin: 0px; text-align: center;">
1189
+ <li class="recharts-legend-item legend-item-0" style="display: inline-block; margin-right: 10px;">
1190
+ <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;">
1191
+ <title>
1192
+ </title>
1193
+ <desc>
1194
+ </desc>
1195
+ <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">
1196
+ </path>
1197
+ </svg>
1198
+ <span class="recharts-legend-item-text" style="color: rgb(161, 218, 163);">pv</span>
1199
+ </li>
1200
+ <li class="recharts-legend-item legend-item-1" style="display: inline-block; margin-right: 10px;">
1201
+ <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;">
1202
+ <title>
1203
+ </title>
1204
+ <desc>
1205
+ </desc>
1206
+ <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">
1207
+ </path>
1208
+ </svg>
1209
+ <span class="recharts-legend-item-text" style="color: rgb(103, 171, 197);">uv</span>
1210
+ </li>
1211
+ </ul>
1212
+ </div>
1213
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
1214
+ <title>
1215
+ </title>
1216
+ <desc>
1217
+ </desc>
1218
+ <g tabindex="-1" id="recharts-zindex--100-:r19:">
1219
+ <g class="recharts-cartesian-grid">
1220
+ <g class="recharts-cartesian-grid-horizontal">
1221
+ <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">
1222
+ </line>
1223
+ <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">
1224
+ </line>
1225
+ <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">
1226
+ </line>
1227
+ <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">
1228
+ </line>
1229
+ <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">
1230
+ </line>
1231
+ </g>
1232
+ </g>
1233
+ </g>
1234
+ <g tabindex="-1" id="recharts-zindex--50-:r1a:">
1235
+ </g>
1236
+ <defs>
1237
+ <clipPath id="recharts4-clip">
1238
+ <rect x="45" y="5" height="208" width="418">
1239
+ </rect>
1240
+ </clipPath>
1241
+ </defs>
1242
+ <g tabindex="-1" id="recharts-zindex-100-:r1d:">
1243
+ </g>
1244
+ <g tabindex="-1" id="recharts-zindex-200-:r1e:">
1245
+ </g>
1246
+ <g tabindex="-1" id="recharts-zindex-300-:r1f:">
1247
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r1b:">
1248
+ <g class="recharts-layer recharts-bar-rectangles">
1249
+ <g class="recharts-layer">
1250
+ <g class="recharts-layer recharts-bar-rectangle">
1251
+ <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">
1252
+ </path>
1253
+ </g>
1254
+ <g class="recharts-layer recharts-bar-rectangle">
1255
+ <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">
1256
+ </path>
1257
+ </g>
1258
+ <g class="recharts-layer recharts-bar-rectangle">
1259
+ <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">
1260
+ </path>
1261
+ </g>
1262
+ <g class="recharts-layer recharts-bar-rectangle">
1263
+ <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">
1264
+ </path>
1265
+ </g>
1266
+ <g class="recharts-layer recharts-bar-rectangle">
1267
+ <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">
1268
+ </path>
1269
+ </g>
1270
+ <g class="recharts-layer recharts-bar-rectangle">
1271
+ <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">
1272
+ </path>
1273
+ </g>
1274
+ <g class="recharts-layer recharts-bar-rectangle">
1275
+ <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">
1276
+ </path>
1277
+ </g>
1278
+ </g>
1279
+ </g>
1280
+ </g>
1281
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r1c:">
1282
+ <g class="recharts-layer recharts-bar-rectangles">
1283
+ <g class="recharts-layer">
1284
+ <g class="recharts-layer recharts-bar-rectangle">
1285
+ <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">
1286
+ </path>
1287
+ </g>
1288
+ <g class="recharts-layer recharts-bar-rectangle">
1289
+ <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">
1290
+ </path>
1291
+ </g>
1292
+ <g class="recharts-layer recharts-bar-rectangle">
1293
+ <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">
1294
+ </path>
1295
+ </g>
1296
+ <g class="recharts-layer recharts-bar-rectangle">
1297
+ <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">
1298
+ </path>
1299
+ </g>
1300
+ <g class="recharts-layer recharts-bar-rectangle">
1301
+ <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">
1302
+ </path>
1303
+ </g>
1304
+ <g class="recharts-layer recharts-bar-rectangle">
1305
+ <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">
1306
+ </path>
1307
+ </g>
1308
+ <g class="recharts-layer recharts-bar-rectangle">
1309
+ <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">
1310
+ </path>
1311
+ </g>
1312
+ </g>
1313
+ </g>
1314
+ </g>
1315
+ </g>
1316
+ <g tabindex="-1" id="recharts-zindex-400-:r1g:">
1317
+ </g>
1318
+ <g tabindex="-1" id="recharts-zindex-500-:r1h:">
1319
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
1320
+ <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">
1321
+ </line>
1322
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
1323
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
1324
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1325
+ <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">
1326
+ </line>
1327
+ </g>
1328
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1329
+ <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">
1330
+ </line>
1331
+ </g>
1332
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1333
+ <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">
1334
+ </line>
1335
+ </g>
1336
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1337
+ <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">
1338
+ </line>
1339
+ </g>
1340
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1341
+ <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">
1342
+ </line>
1343
+ </g>
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="373.4285714285714" y1="219" x2="373.4285714285714" 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="433.1428571428571" y1="219" x2="433.1428571428571" y2="213">
1350
+ </line>
1351
+ </g>
1352
+ </g>
1353
+ </g>
1354
+ </g>
1355
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
1356
+ <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">
1357
+ </line>
1358
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
1359
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
1360
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1361
+ <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">
1362
+ </line>
1363
+ </g>
1364
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1365
+ <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">
1366
+ </line>
1367
+ </g>
1368
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1369
+ <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">
1370
+ </line>
1371
+ </g>
1372
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1373
+ <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">
1374
+ </line>
1375
+ </g>
1376
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1377
+ <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">
1378
+ </line>
1379
+ </g>
1380
+ </g>
1381
+ </g>
1382
+ </g>
1383
+ </g>
1384
+ <g tabindex="-1" id="recharts-zindex-600-:r1i:">
1385
+ </g>
1386
+ <g tabindex="-1" id="recharts-zindex-1000-:r1j:">
1387
+ </g>
1388
+ <g tabindex="-1" id="recharts-zindex-1100-:r1k:">
1389
+ </g>
1390
+ <g tabindex="-1" id="recharts-zindex-1200-:r1l:">
1391
+ </g>
1392
+ <g tabindex="-1" id="recharts-zindex-2000-:r1m:">
1393
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
1394
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1395
+ <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">
1396
+ <tspan x="74.85714285714286" dy="0.71em">Page A</tspan>
1397
+ </text>
1398
+ </g>
1399
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1400
+ <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">
1401
+ <tspan x="134.57142857142858" dy="0.71em">Page B</tspan>
1402
+ </text>
1403
+ </g>
1404
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1405
+ <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">
1406
+ <tspan x="194.2857142857143" dy="0.71em">Page C</tspan>
1407
+ </text>
1408
+ </g>
1409
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1410
+ <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">
1411
+ <tspan x="254" dy="0.71em">Page D</tspan>
1412
+ </text>
1413
+ </g>
1414
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1415
+ <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">
1416
+ <tspan x="313.7142857142857" dy="0.71em">Page E</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="373.4285714285714" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1421
+ <tspan x="373.4285714285714" dy="0.71em">Page F</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="433.1428571428571" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1426
+ <tspan x="433.1428571428571" dy="0.71em">Page G</tspan>
1427
+ </text>
1428
+ </g>
1429
+ </g>
1430
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
1431
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1432
+ <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">
1433
+ <tspan x="37" dy="0.355em">0</tspan>
1434
+ </text>
1435
+ </g>
1436
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1437
+ <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">
1438
+ <tspan x="37" dy="0.355em">3000</tspan>
1439
+ </text>
1440
+ </g>
1441
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1442
+ <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">
1443
+ <tspan x="37" dy="0.355em">6000</tspan>
1444
+ </text>
1445
+ </g>
1446
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1447
+ <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">
1448
+ <tspan x="37" dy="0.355em">9000</tspan>
1449
+ </text>
1450
+ </g>
1451
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1452
+ <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">
1453
+ <tspan x="37" dy="0.355em">12000</tspan>
1454
+ </text>
1455
+ </g>
1456
+ </g>
1457
+ </g>
1458
+ </svg>
1459
+ </div>
1460
+ </div>
1461
+ </div>
1462
+ </div>
1463
+ ```
1464
+
1465
+ #### Props: BarChart
1466
+
1467
+ ### BarChart
1468
+
1469
+ | Name | Type | Default | Description |
1470
+ | --- | --- | --- | --- |
1471
+ | width | Number | — | The width of chart container. |
1472
+ | height | Number | — | The height of chart container. |
1473
+ | 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" }] |
1474
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
1475
+ | dataUnit | string | — | The unit of data displayed in the chart. |
1476
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
1477
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
1478
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
1479
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
1480
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
1481
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
1482
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
1483
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
1484
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
1485
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
1486
+ | 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 |
1487
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
1488
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
1489
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
1490
+
1491
+ #### Props: Bar
1492
+
1493
+ ### Bar
1494
+
1495
+ | Name | Type | Default | Description |
1496
+ | --- | --- | --- | --- |
1497
+ | 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. |
1498
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
1499
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
1500
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
1501
+
1502
+ #### Props: Legend
1503
+
1504
+ ### Legend
1505
+
1506
+ | Name | Type | Default | Description |
1507
+ | --- | --- | --- | --- |
1508
+ | iconType | String | square | Defines the type of the leading icon. |
1509
+ | iconSize | String | 12 | Defines the size of the leading icon. |
1510
+ | layout | String | vertical | Defines the layout of the legend. |
1511
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
1512
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
1513
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
1514
+
1515
+ ### Example: Basistarif
1516
+
1517
+ Vertical BarChart
1518
+
1519
+ Basistarif
1520
+ Diesel
1521
+ Maut
1522
+ Zuschläge
1523
+
1524
+ BasistarifDieselMautZuschläge01530456046.8€22€12.4€3.88€
1525
+
1526
+ #### Summary
1527
+
1528
+ Vertical BarChart
1529
+
1530
+ Basistarif
1531
+ Diesel
1532
+ Maut
1533
+ Zuschläge
1534
+
1535
+ BasistarifDieselMautZuschläge01530456046.8€22€12.4€3.88€
1536
+
1537
+ #### React (tsx)
1538
+
1539
+ ```tsx
1540
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
1541
+ import Bar from '@rio-cloud/rio-uikit/Bar';
1542
+ import Legend from '@rio-cloud/rio-uikit/Legend';
1543
+
1544
+ type CustomData = {
1545
+ label: string;
1546
+ color: string;
1547
+ costs: number;
1548
+ };
1549
+
1550
+ export default () => {
1551
+ return (
1552
+ <>
1553
+ <label>Vertical BarChart</label>
1554
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 max-width-500'>
1555
+ <BarChart
1556
+ data={data}
1557
+ layout='vertical'
1558
+ useDataColors
1559
+ legend={
1560
+ <Legend
1561
+ iconSize={12}
1562
+ items={data}
1563
+ content={({ items, iconSize, resolveColor }) => (
1564
+ <div className=''>
1565
+ {items?.map((entry, i) => (
1566
+ <div key={i}>
1567
+ <span
1568
+ className='display-inline-block margin-right-5 rounded-small'
1569
+ style={{
1570
+ width: iconSize,
1571
+ height: iconSize,
1572
+ background: resolveColor(entry, i),
1573
+ }}
1574
+ />
1575
+ <span className='text-color-dark'>{entry.label}</span>
1576
+ </div>
1577
+ ))}
1578
+ </div>
1579
+ )}
1580
+ />
1581
+ }
1582
+ xAxisOptions={{
1583
+ dataKey: 'costs',
1584
+ type: 'number',
1585
+ height: 14,
1586
+ }}
1587
+ yAxisOptions={{
1588
+ dataKey: 'label',
1589
+ type: 'category',
1590
+ width: 10,
1591
+ tickLine: false,
1592
+ axisLine: false,
1593
+ tickMargin: 200,
1594
+ }}
1595
+ bars={[
1596
+ <Bar
1597
+ key='costs'
1598
+ dataKey='costs'
1599
+ label={{
1600
+ position: 'right',
1601
+ formatter: (value: unknown) => `${value}€`,
1602
+ }}
1603
+ />,
1604
+ ]}
1605
+ />
1606
+ </div>
1607
+ </>
1608
+ );
1609
+ };
1610
+
1611
+ const data: CustomData[] = [
1612
+ {
1613
+ label: 'Basistarif',
1614
+ color: 'color-warmup-charm',
1615
+ costs: 46.8,
1616
+ },
1617
+ {
1618
+ label: 'Diesel',
1619
+ color: 'color-warmup-salmon',
1620
+ costs: 22.0,
1621
+ },
1622
+ {
1623
+ label: 'Maut',
1624
+ color: 'color-warmup-cherokee',
1625
+ costs: 12.4,
1626
+ },
1627
+ {
1628
+ label: 'Zuschläge',
1629
+ color: 'brand-warning',
1630
+ costs: 3.88,
1631
+ },
1632
+ ];
1633
+ ```
1634
+
1635
+ #### HTML (html)
1636
+
1637
+ ```html
1638
+ <label>Vertical BarChart</label>
1639
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 max-width-500">
1640
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
1641
+ <div style="width: 0px; height: 0px; overflow: visible;">
1642
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
1643
+ <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;">
1644
+ <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;">
1645
+ <p class="recharts-tooltip-label" style="margin: 0px;">
1646
+ </p>
1647
+ </div>
1648
+ </div>
1649
+ <div class="recharts-legend-wrapper" style="position: absolute; width: auto; height: auto; right: 5px; top: 5px;">
1650
+ <div class="">
1651
+ <div>
1652
+ <span class="display-inline-block margin-right-5 rounded-small" style="width: 12px; height: 12px; background: rgb(201, 119, 141);">
1653
+ </span>
1654
+ <span class="text-color-dark">Basistarif</span>
1655
+ </div>
1656
+ <div>
1657
+ <span class="display-inline-block margin-right-5 rounded-small" style="width: 12px; height: 12px; background: rgb(241, 149, 136);">
1658
+ </span>
1659
+ <span class="text-color-dark">Diesel</span>
1660
+ </div>
1661
+ <div>
1662
+ <span class="display-inline-block margin-right-5 rounded-small" style="width: 12px; height: 12px; background: rgb(245, 187, 137);">
1663
+ </span>
1664
+ <span class="text-color-dark">Maut</span>
1665
+ </div>
1666
+ <div>
1667
+ <span class="display-inline-block margin-right-5 rounded-small" style="width: 12px; height: 12px; background: rgb(255, 142, 60);">
1668
+ </span>
1669
+ <span class="text-color-dark">Zuschläge</span>
1670
+ </div>
1671
+ </div>
1672
+ </div>
1673
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
1674
+ <title>
1675
+ </title>
1676
+ <desc>
1677
+ </desc>
1678
+ <g tabindex="-1" id="recharts-zindex--100-:r1n:">
1679
+ </g>
1680
+ <g tabindex="-1" id="recharts-zindex--50-:r1o:">
1681
+ </g>
1682
+ <defs>
1683
+ <clipPath id="recharts5-clip">
1684
+ <rect x="15" y="5" height="244" width="366.40625">
1685
+ </rect>
1686
+ </clipPath>
1687
+ </defs>
1688
+ <g tabindex="-1" id="recharts-zindex-100-:r1q:">
1689
+ </g>
1690
+ <g tabindex="-1" id="recharts-zindex-200-:r1r:">
1691
+ </g>
1692
+ <g tabindex="-1" id="recharts-zindex-300-:r1s:">
1693
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r1p:">
1694
+ <g class="recharts-layer recharts-bar-rectangles">
1695
+ <g class="recharts-layer">
1696
+ <g class="recharts-layer recharts-bar-rectangle">
1697
+ <path fill="#c9778d " name="undefined" color="color-warmup-charm" x="15" y="11.1" width="285.796875" height="48" radius="0" class="recharts-rectangle" d="M 15,11.1 h 285.796875 v 48 h -285.796875 Z">
1698
+ </path>
1699
+ </g>
1700
+ <g class="recharts-layer recharts-bar-rectangle">
1701
+ <path fill="#f19588 " name="undefined" color="color-warmup-salmon" x="15" y="72.1" width="134.34895833333331" height="48" radius="0" class="recharts-rectangle" d="M 15,72.1 h 134.34895833333331 v 48 h -134.34895833333331 Z">
1702
+ </path>
1703
+ </g>
1704
+ <g class="recharts-layer recharts-bar-rectangle">
1705
+ <path fill="#f5bb89 " name="undefined" color="color-warmup-cherokee" x="15" y="133.1" width="75.72395833333334" height="48" radius="0" class="recharts-rectangle" d="M 15,133.1 h 75.72395833333334 v 48 h -75.72395833333334 Z">
1706
+ </path>
1707
+ </g>
1708
+ <g class="recharts-layer recharts-bar-rectangle">
1709
+ <path fill="#ff8e3c " name="undefined" color="brand-warning" x="15" y="194.1" width="23.694270833333334" height="48" radius="0" class="recharts-rectangle" d="M 15,194.1 h 23.694270833333334 v 48 h -23.694270833333334 Z">
1710
+ </path>
1711
+ </g>
1712
+ </g>
1713
+ </g>
1714
+ </g>
1715
+ </g>
1716
+ <g tabindex="-1" id="recharts-zindex-400-:r1t:">
1717
+ </g>
1718
+ <g tabindex="-1" id="recharts-zindex-500-:r1u:">
1719
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
1720
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
1721
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
1722
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1723
+ </g>
1724
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1725
+ </g>
1726
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1727
+ </g>
1728
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1729
+ </g>
1730
+ </g>
1731
+ </g>
1732
+ </g>
1733
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
1734
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="366.40625" class="recharts-cartesian-axis-line" stroke="#666" fill="none" x1="15" y1="249" x2="381.40625" y2="249">
1735
+ </line>
1736
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
1737
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
1738
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1739
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="366.40625" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="15" y1="255" x2="15" y2="249">
1740
+ </line>
1741
+ </g>
1742
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1743
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="366.40625" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="106.6015625" y1="255" x2="106.6015625" y2="249">
1744
+ </line>
1745
+ </g>
1746
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1747
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="366.40625" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="198.203125" y1="255" x2="198.203125" y2="249">
1748
+ </line>
1749
+ </g>
1750
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1751
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="366.40625" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="289.8046875" y1="255" x2="289.8046875" y2="249">
1752
+ </line>
1753
+ </g>
1754
+ <g class="recharts-layer recharts-cartesian-axis-tick">
1755
+ <line height="14" angle="0" orientation="bottom" x="15" y="249" width="366.40625" class="recharts-cartesian-axis-tick-line" stroke="#666" fill="none" x1="381.40625" y1="255" x2="381.40625" y2="249">
1756
+ </line>
1757
+ </g>
1758
+ </g>
1759
+ </g>
1760
+ </g>
1761
+ </g>
1762
+ <g tabindex="-1" id="recharts-zindex-600-:r1v:">
1763
+ </g>
1764
+ <g tabindex="-1" id="recharts-zindex-1000-:r20:">
1765
+ </g>
1766
+ <g tabindex="-1" id="recharts-zindex-1100-:r21:">
1767
+ </g>
1768
+ <g tabindex="-1" id="recharts-zindex-1200-:r22:">
1769
+ </g>
1770
+ <g tabindex="-1" id="recharts-zindex-2000-:r23:">
1771
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
1772
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1773
+ <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">
1774
+ <tspan x="-191" dy="0.355em">Basistarif</tspan>
1775
+ </text>
1776
+ </g>
1777
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1778
+ <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">
1779
+ <tspan x="-191" dy="0.355em">Diesel</tspan>
1780
+ </text>
1781
+ </g>
1782
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1783
+ <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">
1784
+ <tspan x="-191" dy="0.355em">Maut</tspan>
1785
+ </text>
1786
+ </g>
1787
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1788
+ <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">
1789
+ <tspan x="-191" dy="0.355em">Zuschläge</tspan>
1790
+ </text>
1791
+ </g>
1792
+ </g>
1793
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
1794
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1795
+ <text height="14" orientation="bottom" width="366.40625" stroke="none" x="15" y="257" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1796
+ <tspan x="15" dy="0.71em">0</tspan>
1797
+ </text>
1798
+ </g>
1799
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1800
+ <text height="14" orientation="bottom" width="366.40625" stroke="none" x="106.6015625" y="257" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1801
+ <tspan x="106.6015625" dy="0.71em">15</tspan>
1802
+ </text>
1803
+ </g>
1804
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1805
+ <text height="14" orientation="bottom" width="366.40625" stroke="none" x="198.203125" y="257" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1806
+ <tspan x="198.203125" dy="0.71em">30</tspan>
1807
+ </text>
1808
+ </g>
1809
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1810
+ <text height="14" orientation="bottom" width="366.40625" stroke="none" x="289.8046875" y="257" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1811
+ <tspan x="289.8046875" dy="0.71em">45</tspan>
1812
+ </text>
1813
+ </g>
1814
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
1815
+ <text height="14" orientation="bottom" width="366.40625" stroke="none" x="381.40625" y="257" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
1816
+ <tspan x="381.40625" dy="0.71em">60</tspan>
1817
+ </text>
1818
+ </g>
1819
+ </g>
1820
+ <g class="recharts-layer recharts-label-list">
1821
+ <text width="162.203125" height="48" offset="5" x="305.796875" y="35.1" class="recharts-text recharts-label" text-anchor="start" fill="#c9778d ">
1822
+ <tspan x="305.796875" dy="0.355em">46.8€</tspan>
1823
+ </text>
1824
+ <text width="313.6510416666667" height="48" offset="5" x="154.34895833333331" y="96.1" class="recharts-text recharts-label" text-anchor="start" fill="#f19588 ">
1825
+ <tspan x="154.34895833333331" dy="0.355em">22€</tspan>
1826
+ </text>
1827
+ <text width="372.27604166666663" height="48" offset="5" x="95.72395833333334" y="157.1" class="recharts-text recharts-label" text-anchor="start" fill="#f5bb89 ">
1828
+ <tspan x="95.72395833333334" dy="0.355em">12.4€</tspan>
1829
+ </text>
1830
+ <text width="424.30572916666665" height="48" offset="5" x="43.694270833333334" y="218.1" class="recharts-text recharts-label" text-anchor="start" fill="#ff8e3c ">
1831
+ <tspan x="43.694270833333334" dy="0.355em">3.88€</tspan>
1832
+ </text>
1833
+ </g>
1834
+ </g>
1835
+ </svg>
1836
+ </div>
1837
+ </div>
1838
+ </div>
1839
+ </div>
1840
+ ```
1841
+
1842
+ #### Props: BarChart
1843
+
1844
+ ### BarChart
1845
+
1846
+ | Name | Type | Default | Description |
1847
+ | --- | --- | --- | --- |
1848
+ | width | Number | — | The width of chart container. |
1849
+ | height | Number | — | The height of chart container. |
1850
+ | 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" }] |
1851
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
1852
+ | dataUnit | string | — | The unit of data displayed in the chart. |
1853
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
1854
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
1855
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
1856
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
1857
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
1858
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
1859
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
1860
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
1861
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
1862
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
1863
+ | 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 |
1864
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
1865
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
1866
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
1867
+
1868
+ #### Props: Bar
1869
+
1870
+ ### Bar
1871
+
1872
+ | Name | Type | Default | Description |
1873
+ | --- | --- | --- | --- |
1874
+ | 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. |
1875
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
1876
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
1877
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
1878
+
1879
+ #### Props: Legend
1880
+
1881
+ ### Legend
1882
+
1883
+ | Name | Type | Default | Description |
1884
+ | --- | --- | --- | --- |
1885
+ | iconType | String | square | Defines the type of the leading icon. |
1886
+ | iconSize | String | 12 | Defines the size of the leading icon. |
1887
+ | layout | String | vertical | Defines the layout of the legend. |
1888
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
1889
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
1890
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
1891
+
1892
+ ### Example: Example 6
1893
+
1894
+ BarChart with custom Tooltips
1895
+ pv
1896
+ uv
1897
+
1898
+ Truck ATruck BTruck CTruck DTruck ETruck FTruck G030006000900012000
1899
+
1900
+ #### Summary
1901
+
1902
+ BarChart with custom Tooltips
1903
+ pv
1904
+ uv
1905
+
1906
+ Truck ATruck BTruck CTruck DTruck ETruck FTruck G030006000900012000
1907
+
1908
+ #### React (tsx)
1909
+
1910
+ ```tsx
1911
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
1912
+ import Bar from '@rio-cloud/rio-uikit/Bar';
1913
+ import Legend from '@rio-cloud/rio-uikit/Legend';
1914
+ import ChartTooltip from '@rio-cloud/rio-uikit/ChartTooltip';
1915
+
1916
+ // biome-ignore lint/suspicious/noExplicitAny: <explanation>
1917
+ const CustomTooltip = ({ active, payload }: { active?: boolean; payload?: any }) => {
1918
+ if (!active) {
1919
+ return null;
1920
+ }
1921
+
1922
+ const firstValue = payload[0].value;
1923
+ const secondValue = payload[1].value;
1924
+ const totalValue = firstValue + secondValue;
1925
+
1926
+ return (
1927
+ <div className='custom-tooltip bg-white border padding-10 min-width-100 rounded shadow-smooth'>
1928
+ <div className='display-flex justify-content-between gap-20'>
1929
+ <span className='text-color-dark'>20.06.2022</span>
1930
+ <span className='display-flex align-items-center text-color-darker line-height-12'>
1931
+ <span className='rioglyph rioglyph-truck' />
1932
+ <span className='margin-left-2'>{payload.length}</span>
1933
+ </span>
1934
+ </div>
1935
+ <hr className='margin-y-5' />
1936
+ <div>
1937
+ <div className='display-flex'>
1938
+ <span className='width-10' />
1939
+ <span className='text-color-highlight-dark'>{`${firstValue} km`}</span>
1940
+ </div>
1941
+ <div className='display-flex'>
1942
+ <span className='width-10 text-center text-color-highlight'>+</span>
1943
+ <span className='text-color-highlight'>{`${secondValue} km`}</span>
1944
+ </div>
1945
+ <div className='display-flex border border-top-only border-color-lightest'>
1946
+ <span className='width-10 text-center text-color-highlight-darkest'>=</span>
1947
+ <span className='text-color-highlight-darkest'>{`${totalValue} km`}</span>
1948
+ </div>
1949
+ </div>
1950
+ </div>
1951
+ );
1952
+ };
1953
+
1954
+ export default () => (
1955
+ <>
1956
+ <label>BarChart with custom Tooltips</label>
1957
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 max-width-500'>
1958
+ <BarChart
1959
+ data={data}
1960
+ dataKey='name'
1961
+ legend={<Legend layout='horizontal' verticalAlign='bottom' align='center' />}
1962
+ showGrid
1963
+ gridOptions={{ vertical: false }}
1964
+ xAxisOptions={{ dataKey: 'name' }}
1965
+ yAxisOptions={{ width: 40 }}
1966
+ bars={[
1967
+ <Bar key='pv' dataKey='pv' stackId='a' barSize={26} color='color-highlight-dark' />,
1968
+ <Bar key='uv' dataKey='uv' stackId='a' barSize={26} color='color-highlight' />,
1969
+ ]}
1970
+ tooltip={<ChartTooltip content={<CustomTooltip />} cursor={{ fill: '#ebf9fa80' }} />}
1971
+ />
1972
+ </div>
1973
+ </>
1974
+ );
1975
+
1976
+ const data = [
1977
+ {
1978
+ name: 'Truck A',
1979
+ uv: 4000,
1980
+ pv: 2400,
1981
+ },
1982
+ {
1983
+ name: 'Truck B',
1984
+ uv: 3000,
1985
+ pv: 1398,
1986
+ },
1987
+ {
1988
+ name: 'Truck C',
1989
+ uv: 2000,
1990
+ pv: 9800,
1991
+ },
1992
+ {
1993
+ name: 'Truck D',
1994
+ uv: 2780,
1995
+ pv: 3908,
1996
+ },
1997
+ {
1998
+ name: 'Truck E',
1999
+ uv: 1890,
2000
+ pv: 4800,
2001
+ },
2002
+ {
2003
+ name: 'Truck F',
2004
+ uv: 2390,
2005
+ pv: 3800,
2006
+ },
2007
+ {
2008
+ name: 'Truck G',
2009
+ uv: 3490,
2010
+ pv: 4300,
2011
+ },
2012
+ ];
2013
+ ```
2014
+
2015
+ #### HTML (html)
2016
+
2017
+ ```html
2018
+ <label>BarChart with custom Tooltips</label>
2019
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 max-width-500">
2020
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
2021
+ <div style="width: 0px; height: 0px; overflow: visible;">
2022
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
2023
+ <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;">
2024
+ </div>
2025
+ <div class="recharts-legend-wrapper" style="position: absolute; width: 458px; height: auto; left: 5px; bottom: 5px;">
2026
+ <ul class="recharts-default-legend" style="padding: 0px; margin: 0px; text-align: center;">
2027
+ <li class="recharts-legend-item legend-item-0" style="display: inline-block; margin-right: 10px;">
2028
+ <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;">
2029
+ <title>
2030
+ </title>
2031
+ <desc>
2032
+ </desc>
2033
+ <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">
2034
+ </path>
2035
+ </svg>
2036
+ <span class="recharts-legend-item-text" style="color: rgb(38, 136, 151);">pv</span>
2037
+ </li>
2038
+ <li class="recharts-legend-item legend-item-1" style="display: inline-block; margin-right: 10px;">
2039
+ <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;">
2040
+ <title>
2041
+ </title>
2042
+ <desc>
2043
+ </desc>
2044
+ <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">
2045
+ </path>
2046
+ </svg>
2047
+ <span class="recharts-legend-item-text" style="color: rgb(48, 180, 192);">uv</span>
2048
+ </li>
2049
+ </ul>
2050
+ </div>
2051
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
2052
+ <title>
2053
+ </title>
2054
+ <desc>
2055
+ </desc>
2056
+ <g tabindex="-1" id="recharts-zindex--100-:r24:">
2057
+ <g class="recharts-cartesian-grid">
2058
+ <g class="recharts-cartesian-grid-horizontal">
2059
+ <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">
2060
+ </line>
2061
+ <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">
2062
+ </line>
2063
+ <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">
2064
+ </line>
2065
+ <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">
2066
+ </line>
2067
+ <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">
2068
+ </line>
2069
+ </g>
2070
+ </g>
2071
+ </g>
2072
+ <g tabindex="-1" id="recharts-zindex--50-:r25:">
2073
+ </g>
2074
+ <defs>
2075
+ <clipPath id="recharts6-clip">
2076
+ <rect x="45" y="5" height="208" width="418">
2077
+ </rect>
2078
+ </clipPath>
2079
+ </defs>
2080
+ <g tabindex="-1" id="recharts-zindex-100-:r28:">
2081
+ </g>
2082
+ <g tabindex="-1" id="recharts-zindex-200-:r29:">
2083
+ </g>
2084
+ <g tabindex="-1" id="recharts-zindex-300-:r2a:">
2085
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r26:">
2086
+ <g class="recharts-layer recharts-bar-rectangles">
2087
+ <g class="recharts-layer">
2088
+ <g class="recharts-layer recharts-bar-rectangle">
2089
+ <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">
2090
+ </path>
2091
+ </g>
2092
+ <g class="recharts-layer recharts-bar-rectangle">
2093
+ <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">
2094
+ </path>
2095
+ </g>
2096
+ <g class="recharts-layer recharts-bar-rectangle">
2097
+ <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">
2098
+ </path>
2099
+ </g>
2100
+ <g class="recharts-layer recharts-bar-rectangle">
2101
+ <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">
2102
+ </path>
2103
+ </g>
2104
+ <g class="recharts-layer recharts-bar-rectangle">
2105
+ <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">
2106
+ </path>
2107
+ </g>
2108
+ <g class="recharts-layer recharts-bar-rectangle">
2109
+ <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">
2110
+ </path>
2111
+ </g>
2112
+ <g class="recharts-layer recharts-bar-rectangle">
2113
+ <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">
2114
+ </path>
2115
+ </g>
2116
+ </g>
2117
+ </g>
2118
+ </g>
2119
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r27:">
2120
+ <g class="recharts-layer recharts-bar-rectangles">
2121
+ <g class="recharts-layer">
2122
+ <g class="recharts-layer recharts-bar-rectangle">
2123
+ <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">
2124
+ </path>
2125
+ </g>
2126
+ <g class="recharts-layer recharts-bar-rectangle">
2127
+ <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">
2128
+ </path>
2129
+ </g>
2130
+ <g class="recharts-layer recharts-bar-rectangle">
2131
+ <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">
2132
+ </path>
2133
+ </g>
2134
+ <g class="recharts-layer recharts-bar-rectangle">
2135
+ <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">
2136
+ </path>
2137
+ </g>
2138
+ <g class="recharts-layer recharts-bar-rectangle">
2139
+ <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">
2140
+ </path>
2141
+ </g>
2142
+ <g class="recharts-layer recharts-bar-rectangle">
2143
+ <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">
2144
+ </path>
2145
+ </g>
2146
+ <g class="recharts-layer recharts-bar-rectangle">
2147
+ <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">
2148
+ </path>
2149
+ </g>
2150
+ </g>
2151
+ </g>
2152
+ </g>
2153
+ </g>
2154
+ <g tabindex="-1" id="recharts-zindex-400-:r2b:">
2155
+ </g>
2156
+ <g tabindex="-1" id="recharts-zindex-500-:r2c:">
2157
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
2158
+ <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">
2159
+ </line>
2160
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
2161
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
2162
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2163
+ <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">
2164
+ </line>
2165
+ </g>
2166
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2167
+ <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">
2168
+ </line>
2169
+ </g>
2170
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2171
+ <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">
2172
+ </line>
2173
+ </g>
2174
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2175
+ <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">
2176
+ </line>
2177
+ </g>
2178
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2179
+ <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">
2180
+ </line>
2181
+ </g>
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="373.4285714285714" y1="219" x2="373.4285714285714" 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="433.1428571428571" y1="219" x2="433.1428571428571" y2="213">
2188
+ </line>
2189
+ </g>
2190
+ </g>
2191
+ </g>
2192
+ </g>
2193
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
2194
+ <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">
2195
+ </line>
2196
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
2197
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
2198
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2199
+ <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">
2200
+ </line>
2201
+ </g>
2202
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2203
+ <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">
2204
+ </line>
2205
+ </g>
2206
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2207
+ <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">
2208
+ </line>
2209
+ </g>
2210
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2211
+ <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">
2212
+ </line>
2213
+ </g>
2214
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2215
+ <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">
2216
+ </line>
2217
+ </g>
2218
+ </g>
2219
+ </g>
2220
+ </g>
2221
+ </g>
2222
+ <g tabindex="-1" id="recharts-zindex-600-:r2d:">
2223
+ </g>
2224
+ <g tabindex="-1" id="recharts-zindex-1000-:r2e:">
2225
+ </g>
2226
+ <g tabindex="-1" id="recharts-zindex-1100-:r2f:">
2227
+ </g>
2228
+ <g tabindex="-1" id="recharts-zindex-1200-:r2g:">
2229
+ </g>
2230
+ <g tabindex="-1" id="recharts-zindex-2000-:r2h:">
2231
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
2232
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2233
+ <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">
2234
+ <tspan x="74.85714285714286" dy="0.71em">Truck A</tspan>
2235
+ </text>
2236
+ </g>
2237
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2238
+ <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">
2239
+ <tspan x="134.57142857142858" dy="0.71em">Truck B</tspan>
2240
+ </text>
2241
+ </g>
2242
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2243
+ <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">
2244
+ <tspan x="194.2857142857143" dy="0.71em">Truck C</tspan>
2245
+ </text>
2246
+ </g>
2247
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2248
+ <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">
2249
+ <tspan x="254" dy="0.71em">Truck D</tspan>
2250
+ </text>
2251
+ </g>
2252
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2253
+ <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">
2254
+ <tspan x="313.7142857142857" dy="0.71em">Truck E</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="373.4285714285714" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2259
+ <tspan x="373.4285714285714" dy="0.71em">Truck F</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="433.1428571428571" y="221" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2264
+ <tspan x="433.1428571428571" dy="0.71em">Truck G</tspan>
2265
+ </text>
2266
+ </g>
2267
+ </g>
2268
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
2269
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2270
+ <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">
2271
+ <tspan x="37" dy="0.355em">0</tspan>
2272
+ </text>
2273
+ </g>
2274
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2275
+ <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">
2276
+ <tspan x="37" dy="0.355em">3000</tspan>
2277
+ </text>
2278
+ </g>
2279
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2280
+ <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">
2281
+ <tspan x="37" dy="0.355em">6000</tspan>
2282
+ </text>
2283
+ </g>
2284
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2285
+ <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">
2286
+ <tspan x="37" dy="0.355em">9000</tspan>
2287
+ </text>
2288
+ </g>
2289
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2290
+ <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">
2291
+ <tspan x="37" dy="0.355em">12000</tspan>
2292
+ </text>
2293
+ </g>
2294
+ </g>
2295
+ </g>
2296
+ </svg>
2297
+ </div>
2298
+ </div>
2299
+ </div>
2300
+ </div>
2301
+ ```
2302
+
2303
+ #### Props: BarChart
2304
+
2305
+ ### BarChart
2306
+
2307
+ | Name | Type | Default | Description |
2308
+ | --- | --- | --- | --- |
2309
+ | width | Number | — | The width of chart container. |
2310
+ | height | Number | — | The height of chart container. |
2311
+ | 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" }] |
2312
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
2313
+ | dataUnit | string | — | The unit of data displayed in the chart. |
2314
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
2315
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
2316
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
2317
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
2318
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
2319
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
2320
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
2321
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
2322
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
2323
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
2324
+ | 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 |
2325
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
2326
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
2327
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
2328
+
2329
+ #### Props: Bar
2330
+
2331
+ ### Bar
2332
+
2333
+ | Name | Type | Default | Description |
2334
+ | --- | --- | --- | --- |
2335
+ | 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. |
2336
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
2337
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
2338
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
2339
+
2340
+ #### Props: Legend
2341
+
2342
+ ### Legend
2343
+
2344
+ | Name | Type | Default | Description |
2345
+ | --- | --- | --- | --- |
2346
+ | iconType | String | square | Defines the type of the leading icon. |
2347
+ | iconSize | String | 12 | Defines the size of the leading icon. |
2348
+ | layout | String | vertical | Defines the layout of the legend. |
2349
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
2350
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
2351
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |
2352
+
2353
+ ### Example: Example 7
2354
+
2355
+ Multiple axis BarChart
2356
+
2357
+ JanuaryFebruaryMarchAprilMayJuneTimerange0 €15 €30 €45 €60 €CostsQ1Q1Q1Q2Q2Q2
2358
+
2359
+ #### Summary
2360
+
2361
+ Multiple axis BarChart
2362
+
2363
+ JanuaryFebruaryMarchAprilMayJuneTimerange0 €15 €30 €45 €60 €CostsQ1Q1Q1Q2Q2Q2
2364
+
2365
+ #### React (tsx)
2366
+
2367
+ ```tsx
2368
+ import BarChart from '@rio-cloud/rio-uikit/BarChart';
2369
+ import Bar from '@rio-cloud/rio-uikit/Bar';
2370
+ import XAxis from '@rio-cloud/rio-uikit/XAxis';
2371
+
2372
+ export default () => {
2373
+ return (
2374
+ <>
2375
+ <label>Multiple axis BarChart</label>
2376
+ <div className='panel panel-default panel-body margin-bottom-0 height-300 max-width-500'>
2377
+ <BarChart
2378
+ data={data}
2379
+ dataKey='label'
2380
+ showGrid
2381
+ xAxisOptions={{
2382
+ dataKey: 'label',
2383
+ label: { value: 'Timerange', offset: 30, position: 'bottom' },
2384
+ }}
2385
+ yAxisOptions={{
2386
+ unit: ' €',
2387
+ label: { value: 'Costs', angle: -90, position: 'insideLeft' },
2388
+ }}
2389
+ margin={{ bottom: 15 }}
2390
+ bars={[<Bar key='myBar' dataKey='costs' unit='€' />]}
2391
+ additionalAxes={[
2392
+ <XAxis key='quarterAxis' xAxisId='quarterAxis' dataKey='quarter' orientation='bottom' />,
2393
+ ]}
2394
+ />
2395
+ </div>
2396
+ </>
2397
+ );
2398
+ };
2399
+
2400
+ const data = [
2401
+ { label: 'January', costs: 46.8, quarter: 'Q1' },
2402
+ { label: 'February', costs: 22.0, quarter: 'Q1' },
2403
+ { label: 'March', costs: 12.4, quarter: 'Q1' },
2404
+ { label: 'April', costs: 3.88, quarter: 'Q2' },
2405
+ { label: 'May', costs: 3.23, quarter: 'Q2' },
2406
+ { label: 'June', costs: 4.67, quarter: 'Q2' },
2407
+ ];
2408
+ ```
2409
+
2410
+ #### HTML (html)
2411
+
2412
+ ```html
2413
+ <label>Multiple axis BarChart</label>
2414
+ <div class="panel panel-default panel-body margin-bottom-0 height-300 max-width-500">
2415
+ <div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
2416
+ <div style="width: 0px; height: 0px; overflow: visible;">
2417
+ <div width="468" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 468px; height: 268px;">
2418
+ <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;">
2419
+ <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;">
2420
+ <p class="recharts-tooltip-label" style="margin: 0px;">
2421
+ </p>
2422
+ </div>
2423
+ </div>
2424
+ <svg role="application" tabindex="0" class="recharts-surface" width="468" height="268" viewBox="0 0 468 268" style="width: 100%; height: 100%; display: block;">
2425
+ <title>
2426
+ </title>
2427
+ <desc>
2428
+ </desc>
2429
+ <g tabindex="-1" id="recharts-zindex--100-:r2i:">
2430
+ <g class="recharts-cartesian-grid">
2431
+ <g class="recharts-cartesian-grid-horizontal">
2432
+ <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">
2433
+ </line>
2434
+ <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">
2435
+ </line>
2436
+ <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">
2437
+ </line>
2438
+ <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">
2439
+ </line>
2440
+ <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">
2441
+ </line>
2442
+ </g>
2443
+ <g class="recharts-cartesian-grid-vertical">
2444
+ <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">
2445
+ </line>
2446
+ <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">
2447
+ </line>
2448
+ <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">
2449
+ </line>
2450
+ <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">
2451
+ </line>
2452
+ <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">
2453
+ </line>
2454
+ <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">
2455
+ </line>
2456
+ <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">
2457
+ </line>
2458
+ <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">
2459
+ </line>
2460
+ </g>
2461
+ </g>
2462
+ </g>
2463
+ <g tabindex="-1" id="recharts-zindex--50-:r2j:">
2464
+ </g>
2465
+ <defs>
2466
+ <clipPath id="recharts7-clip">
2467
+ <rect x="60" y="0" height="193" width="408">
2468
+ </rect>
2469
+ </clipPath>
2470
+ </defs>
2471
+ <g tabindex="-1" id="recharts-zindex-100-:r2l:">
2472
+ </g>
2473
+ <g tabindex="-1" id="recharts-zindex-200-:r2m:">
2474
+ </g>
2475
+ <g tabindex="-1" id="recharts-zindex-300-:r2n:">
2476
+ <g class="recharts-layer recharts-bar" id="recharts-bar-:r2k:">
2477
+ <g class="recharts-layer recharts-bar-rectangles">
2478
+ <g class="recharts-layer">
2479
+ <g class="recharts-layer recharts-bar-rectangle">
2480
+ <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">
2481
+ </path>
2482
+ </g>
2483
+ <g class="recharts-layer recharts-bar-rectangle">
2484
+ <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">
2485
+ </path>
2486
+ </g>
2487
+ <g class="recharts-layer recharts-bar-rectangle">
2488
+ <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">
2489
+ </path>
2490
+ </g>
2491
+ <g class="recharts-layer recharts-bar-rectangle">
2492
+ <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">
2493
+ </path>
2494
+ </g>
2495
+ <g class="recharts-layer recharts-bar-rectangle">
2496
+ <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">
2497
+ </path>
2498
+ </g>
2499
+ <g class="recharts-layer recharts-bar-rectangle">
2500
+ <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">
2501
+ </path>
2502
+ </g>
2503
+ </g>
2504
+ </g>
2505
+ </g>
2506
+ </g>
2507
+ <g tabindex="-1" id="recharts-zindex-400-:r2o:">
2508
+ </g>
2509
+ <g tabindex="-1" id="recharts-zindex-500-:r2p:">
2510
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
2511
+ <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">
2512
+ </line>
2513
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
2514
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
2515
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2516
+ <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">
2517
+ </line>
2518
+ </g>
2519
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2520
+ <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">
2521
+ </line>
2522
+ </g>
2523
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2524
+ <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">
2525
+ </line>
2526
+ </g>
2527
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2528
+ <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">
2529
+ </line>
2530
+ </g>
2531
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2532
+ <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">
2533
+ </line>
2534
+ </g>
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="434" y1="199" x2="434" y2="193">
2537
+ </line>
2538
+ </g>
2539
+ </g>
2540
+ </g>
2541
+ </g>
2542
+ <g class="recharts-layer recharts-cartesian-axis recharts-yAxis yAxis">
2543
+ <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">
2544
+ </line>
2545
+ <g class="recharts-cartesian-axis-ticks recharts-yAxis-ticks">
2546
+ <g class="recharts-cartesian-axis-tick-lines recharts-yAxis-tick-lines">
2547
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2548
+ <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">
2549
+ </line>
2550
+ </g>
2551
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2552
+ <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">
2553
+ </line>
2554
+ </g>
2555
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2556
+ <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">
2557
+ </line>
2558
+ </g>
2559
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2560
+ <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">
2561
+ </line>
2562
+ </g>
2563
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2564
+ <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">
2565
+ </line>
2566
+ </g>
2567
+ </g>
2568
+ </g>
2569
+ </g>
2570
+ <g class="recharts-layer recharts-cartesian-axis recharts-xAxis xAxis">
2571
+ <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">
2572
+ </line>
2573
+ <g class="recharts-cartesian-axis-ticks recharts-xAxis-ticks">
2574
+ <g class="recharts-cartesian-axis-tick-lines recharts-xAxis-tick-lines">
2575
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2576
+ <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">
2577
+ </line>
2578
+ </g>
2579
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2580
+ <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">
2581
+ </line>
2582
+ </g>
2583
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2584
+ <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">
2585
+ </line>
2586
+ </g>
2587
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2588
+ <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">
2589
+ </line>
2590
+ </g>
2591
+ <g class="recharts-layer recharts-cartesian-axis-tick">
2592
+ <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">
2593
+ </line>
2594
+ </g>
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="434" y1="229" x2="434" y2="223">
2597
+ </line>
2598
+ </g>
2599
+ </g>
2600
+ </g>
2601
+ </g>
2602
+ </g>
2603
+ <g tabindex="-1" id="recharts-zindex-600-:r2q:">
2604
+ </g>
2605
+ <g tabindex="-1" id="recharts-zindex-1000-:r2r:">
2606
+ </g>
2607
+ <g tabindex="-1" id="recharts-zindex-1100-:r2s:">
2608
+ </g>
2609
+ <g tabindex="-1" id="recharts-zindex-1200-:r2t:">
2610
+ </g>
2611
+ <g tabindex="-1" id="recharts-zindex-2000-:r2u:">
2612
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
2613
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2614
+ <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">
2615
+ <tspan x="94" dy="0.71em">January</tspan>
2616
+ </text>
2617
+ </g>
2618
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2619
+ <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">
2620
+ <tspan x="162" dy="0.71em">February</tspan>
2621
+ </text>
2622
+ </g>
2623
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2624
+ <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">
2625
+ <tspan x="230" dy="0.71em">March</tspan>
2626
+ </text>
2627
+ </g>
2628
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2629
+ <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">
2630
+ <tspan x="298" dy="0.71em">April</tspan>
2631
+ </text>
2632
+ </g>
2633
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2634
+ <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">
2635
+ <tspan x="366" dy="0.71em">May</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="434" y="201" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2640
+ <tspan x="434" dy="0.71em">June</tspan>
2641
+ </text>
2642
+ </g>
2643
+ </g>
2644
+ <text offset="30" x="264" y="253" class="recharts-text recharts-label" text-anchor="middle" fill="#808080">
2645
+ <tspan x="264" dy="0.71em">Timerange</tspan>
2646
+ </text>
2647
+ <g class="recharts-cartesian-axis-tick-labels recharts-yAxis-tick-labels">
2648
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2649
+ <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">
2650
+ <tspan x="52" dy="0.355em">0 €</tspan>
2651
+ </text>
2652
+ </g>
2653
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2654
+ <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">
2655
+ <tspan x="52" dy="0.355em">15 €</tspan>
2656
+ </text>
2657
+ </g>
2658
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2659
+ <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">
2660
+ <tspan x="52" dy="0.355em">30 €</tspan>
2661
+ </text>
2662
+ </g>
2663
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2664
+ <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">
2665
+ <tspan x="52" dy="0.355em">45 €</tspan>
2666
+ </text>
2667
+ </g>
2668
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2669
+ <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">
2670
+ <tspan x="52" dy="0.355em">60 €</tspan>
2671
+ </text>
2672
+ </g>
2673
+ </g>
2674
+ <text offset="5" transform="rotate(-90, 5, 96.5)" x="5" y="96.5" class="recharts-text recharts-label" text-anchor="start" fill="#808080">
2675
+ <tspan x="5" dy="0.355em">Costs</tspan>
2676
+ </text>
2677
+ <g class="recharts-cartesian-axis-tick-labels recharts-xAxis-tick-labels">
2678
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2679
+ <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">
2680
+ <tspan x="94" dy="0.71em">Q1</tspan>
2681
+ </text>
2682
+ </g>
2683
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2684
+ <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">
2685
+ <tspan x="162" dy="0.71em">Q1</tspan>
2686
+ </text>
2687
+ </g>
2688
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2689
+ <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">
2690
+ <tspan x="230" dy="0.71em">Q1</tspan>
2691
+ </text>
2692
+ </g>
2693
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2694
+ <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">
2695
+ <tspan x="298" dy="0.71em">Q2</tspan>
2696
+ </text>
2697
+ </g>
2698
+ <g class="recharts-layer recharts-cartesian-axis-tick-label">
2699
+ <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">
2700
+ <tspan x="366" dy="0.71em">Q2</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="434" y="231" class="recharts-text recharts-cartesian-axis-tick-value" text-anchor="middle" fill="#666">
2705
+ <tspan x="434" dy="0.71em">Q2</tspan>
2706
+ </text>
2707
+ </g>
2708
+ </g>
2709
+ </g>
2710
+ </svg>
2711
+ </div>
2712
+ </div>
2713
+ </div>
2714
+ </div>
2715
+ ```
2716
+
2717
+ #### Props: BarChart
2718
+
2719
+ ### BarChart
2720
+
2721
+ | Name | Type | Default | Description |
2722
+ | --- | --- | --- | --- |
2723
+ | width | Number | — | The width of chart container. |
2724
+ | height | Number | — | The height of chart container. |
2725
+ | 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" }] |
2726
+ | dataKey | String \| Number \| Function | value | The key of data displayed in the axis. Also, used as label for the x-axis. |
2727
+ | dataUnit | string | — | The unit of data displayed in the chart. |
2728
+ | layout | String | horizontal | The layout of the chart. Possible values are: horizontal, vertical |
2729
+ | showGrid | Boolean | false | Defines whether or not the grid shall be rendered. |
2730
+ | showXAxis | Boolean | true | Defines whether or not the x-axis shall be rendered. |
2731
+ | showYAxis | Boolean | true | Defines whether or not the y-axis shall be rendered. |
2732
+ | xAxisOptions | Object | — | Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis |
2733
+ | yAxisOptions | Object | — | Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis |
2734
+ | additionalAxes | React.ReactElement<XAxisProps \| YAxisProps>[] | — | Render a list of additional axes. This includes YAxis and XAxis. |
2735
+ | gridOptions | Object | — | Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid |
2736
+ | useDataColors | Boolean | false | Defines whether or not the color information shall be taken from the data input to use different colors for different entries. |
2737
+ | brush | Boolean | false | Defines whether or not the brush component shall be used. |
2738
+ | 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 |
2739
+ | legend | Legend \| Boolean | false | Shows the provided Legend component otherwise shows nothing. |
2740
+ | bars | Array of Bar | [] | Renders the provided Bar components. |
2741
+ | ... | | — | Additional props are passed to the underlying BarChart component. Details can be found here: https://recharts.org/en-US/api/BarChart |
2742
+
2743
+ #### Props: Bar
2744
+
2745
+ ### Bar
2746
+
2747
+ | Name | Type | Default | Description |
2748
+ | --- | --- | --- | --- |
2749
+ | 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. |
2750
+ | dataKey | string \| number \| ((obj: T) => any) | value | The key of data used for the bar. |
2751
+ | dataUnit | String \| Number | — | The unit of data displayed for the bar. |
2752
+ | ... | | — | Additional props are passed to the underlying Bar component. Details can be found here: https://recharts.org/en-US/api/Bar |
2753
+
2754
+ #### Props: Legend
2755
+
2756
+ ### Legend
2757
+
2758
+ | Name | Type | Default | Description |
2759
+ | --- | --- | --- | --- |
2760
+ | iconType | String | square | Defines the type of the leading icon. |
2761
+ | iconSize | String | 12 | Defines the size of the leading icon. |
2762
+ | layout | String | vertical | Defines the layout of the legend. |
2763
+ | align | String | right | Defines the alignment of the legend relative to the chart. |
2764
+ | verticalAlign | String | top | Defines the vertical alignment of the legend relative to the chart. |
2765
+ | ... | | — | Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend |