@rio-cloud/uikit-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +91 -0
- package/bin/uikit-mcp.mjs +23 -0
- package/data/pages/Components/components/accentbar.json +207 -0
- package/data/pages/Components/components/activity.json +87 -0
- package/data/pages/Components/components/animatednumber.json +99 -0
- package/data/pages/Components/components/animations.json +87 -0
- package/data/pages/Components/components/appheader.json +291 -0
- package/data/pages/Components/components/applayout.json +1198 -0
- package/data/pages/Components/components/appnavigationbar.json +327 -0
- package/data/pages/Components/components/areacharts.json +563 -0
- package/data/pages/Components/components/aspectratioplaceholder.json +75 -0
- package/data/pages/Components/components/assettree.json +3080 -0
- package/data/pages/Components/components/autosuggests.json +710 -0
- package/data/pages/Components/components/avatar.json +157 -0
- package/data/pages/Components/components/banner.json +599 -0
- package/data/pages/Components/components/barcharts.json +1507 -0
- package/data/pages/Components/components/barlist.json +223 -0
- package/data/pages/Components/components/basicmap.json +68 -0
- package/data/pages/Components/components/bottomsheet.json +601 -0
- package/data/pages/Components/components/button.json +583 -0
- package/data/pages/Components/components/buttontoolbar.json +63 -0
- package/data/pages/Components/components/calendarstripe.json +235 -0
- package/data/pages/Components/components/card.json +69 -0
- package/data/pages/Components/components/carousel.json +39 -0
- package/data/pages/Components/components/chartcolors.json +34 -0
- package/data/pages/Components/components/chartsgettingstarted.json +32 -0
- package/data/pages/Components/components/chat.json +39 -0
- package/data/pages/Components/components/checkbox.json +847 -0
- package/data/pages/Components/components/clearableinput.json +789 -0
- package/data/pages/Components/components/collapse.json +175 -0
- package/data/pages/Components/components/composedcharts.json +159 -0
- package/data/pages/Components/components/contentloader.json +233 -0
- package/data/pages/Components/components/datatabs.json +680 -0
- package/data/pages/Components/components/datepickers.json +287 -0
- package/data/pages/Components/components/dialogs.json +1492 -0
- package/data/pages/Components/components/divider.json +93 -0
- package/data/pages/Components/components/dropdowns.json +936 -0
- package/data/pages/Components/components/editablecontent.json +1117 -0
- package/data/pages/Components/components/expander.json +377 -0
- package/data/pages/Components/components/fade.json +403 -0
- package/data/pages/Components/components/fadeexpander.json +75 -0
- package/data/pages/Components/components/fadeup.json +127 -0
- package/data/pages/Components/components/feedback.json +269 -0
- package/data/pages/Components/components/filepickers.json +269 -0
- package/data/pages/Components/components/formlabel.json +115 -0
- package/data/pages/Components/components/fullscreenmap.json +22 -0
- package/data/pages/Components/components/groupeditemlist.json +323 -0
- package/data/pages/Components/components/iconlist.json +45 -0
- package/data/pages/Components/components/imagepreloader.json +81 -0
- package/data/pages/Components/components/labeledelement.json +75 -0
- package/data/pages/Components/components/licenseplate.json +69 -0
- package/data/pages/Components/components/linecharts.json +987 -0
- package/data/pages/Components/components/listmenu.json +313 -0
- package/data/pages/Components/components/loadmore.json +175 -0
- package/data/pages/Components/components/mainnavigation.json +39 -0
- package/data/pages/Components/components/mapcircle.json +34 -0
- package/data/pages/Components/components/mapcluster.json +51 -0
- package/data/pages/Components/components/mapcontext.json +105 -0
- package/data/pages/Components/components/mapdraggablemarker.json +34 -0
- package/data/pages/Components/components/mapgettingstarted.json +27 -0
- package/data/pages/Components/components/mapgroup.json +1198 -0
- package/data/pages/Components/components/mapinfobubble.json +34 -0
- package/data/pages/Components/components/maplayergroup.json +34 -0
- package/data/pages/Components/components/mapmarker.json +700 -0
- package/data/pages/Components/components/mappolygon.json +45 -0
- package/data/pages/Components/components/maproute.json +623 -0
- package/data/pages/Components/components/maproutegenerator.json +16 -0
- package/data/pages/Components/components/mapsettings.json +51 -0
- package/data/pages/Components/components/maputils.json +34 -0
- package/data/pages/Components/components/multiselects.json +1451 -0
- package/data/pages/Components/components/nodata.json +139 -0
- package/data/pages/Components/components/notifications.json +65 -0
- package/data/pages/Components/components/numbercontrol.json +301 -0
- package/data/pages/Components/components/onboarding.json +302 -0
- package/data/pages/Components/components/page.json +197 -0
- package/data/pages/Components/components/pager.json +93 -0
- package/data/pages/Components/components/piecharts.json +731 -0
- package/data/pages/Components/components/popover.json +251 -0
- package/data/pages/Components/components/position.json +69 -0
- package/data/pages/Components/components/radialbarcharts.json +1304 -0
- package/data/pages/Components/components/radiobutton.json +1105 -0
- package/data/pages/Components/components/releasenotes.json +44 -0
- package/data/pages/Components/components/resizer.json +93 -0
- package/data/pages/Components/components/responsivecolumnstripe.json +123 -0
- package/data/pages/Components/components/responsivevideo.json +75 -0
- package/data/pages/Components/components/rioglyph.json +93 -0
- package/data/pages/Components/components/rules.json +410 -0
- package/data/pages/Components/components/saveableinput.json +703 -0
- package/data/pages/Components/components/selects.json +701 -0
- package/data/pages/Components/components/sidebar.json +243 -0
- package/data/pages/Components/components/sliders.json +235 -0
- package/data/pages/Components/components/smoothscrollbars.json +335 -0
- package/data/pages/Components/components/spinners.json +343 -0
- package/data/pages/Components/components/states.json +1705 -0
- package/data/pages/Components/components/statswidgets.json +314 -0
- package/data/pages/Components/components/statusbar.json +177 -0
- package/data/pages/Components/components/stepbutton.json +57 -0
- package/data/pages/Components/components/steppedprogressbars.json +417 -0
- package/data/pages/Components/components/subnavigation.json +107 -0
- package/data/pages/Components/components/supportmarker.json +45 -0
- package/data/pages/Components/components/svgimage.json +81 -0
- package/data/pages/Components/components/switch.json +111 -0
- package/data/pages/Components/components/tables.json +144 -0
- package/data/pages/Components/components/tagmanager.json +86 -0
- package/data/pages/Components/components/tags.json +146 -0
- package/data/pages/Components/components/teaser.json +188 -0
- package/data/pages/Components/components/timeline.json +45 -0
- package/data/pages/Components/components/timepicker.json +163 -0
- package/data/pages/Components/components/togglebutton.json +247 -0
- package/data/pages/Components/components/tooltip.json +270 -0
- package/data/pages/Components/components/virtuallist.json +175 -0
- package/data/pages/Foundations/foundations.json +2475 -0
- package/data/pages/Getting-started/start/changelog.json +22 -0
- package/data/pages/Getting-started/start/goodtoknow.json +32 -0
- package/data/pages/Getting-started/start/guidelines/color-combinations.json +58 -0
- package/data/pages/Getting-started/start/guidelines/custom-css.json +27 -0
- package/data/pages/Getting-started/start/guidelines/custom-rioglyph.json +22 -0
- package/data/pages/Getting-started/start/guidelines/formatting.json +97 -0
- package/data/pages/Getting-started/start/guidelines/iframe.json +93 -0
- package/data/pages/Getting-started/start/guidelines/obfuscate-data.json +22 -0
- package/data/pages/Getting-started/start/guidelines/print-css.json +37 -0
- package/data/pages/Getting-started/start/guidelines/spinner.json +144 -0
- package/data/pages/Getting-started/start/guidelines/supported-browsers.json +22 -0
- package/data/pages/Getting-started/start/guidelines/writing.json +242 -0
- package/data/pages/Getting-started/start/howto.json +72 -0
- package/data/pages/Getting-started/start/intro.json +37 -0
- package/data/pages/Getting-started/start/responsiveness.json +52 -0
- package/data/pages/Templates/templates/common-table.json +39 -0
- package/data/pages/Templates/templates/detail-views.json +71 -0
- package/data/pages/Templates/templates/expandable-details.json +39 -0
- package/data/pages/Templates/templates/feature-cards.json +103 -0
- package/data/pages/Templates/templates/form-summary.json +39 -0
- package/data/pages/Templates/templates/form-toggle.json +39 -0
- package/data/pages/Templates/templates/list-blocks.json +119 -0
- package/data/pages/Templates/templates/loading-progress.json +39 -0
- package/data/pages/Templates/templates/options-panel.json +39 -0
- package/data/pages/Templates/templates/panel-variants.json +39 -0
- package/data/pages/Templates/templates/progress-cards.json +71 -0
- package/data/pages/Templates/templates/progress-success.json +39 -0
- package/data/pages/Templates/templates/settings-form.json +39 -0
- package/data/pages/Templates/templates/stats-blocks.json +135 -0
- package/data/pages/Templates/templates/table-panel.json +39 -0
- package/data/pages/Templates/templates/table-row-animation.json +39 -0
- package/data/pages/Templates/templates/usage-cards.json +39 -0
- package/data/pages/Utilities/utilities/deviceutils.json +39 -0
- package/data/pages/Utilities/utilities/featuretoggles.json +42 -0
- package/data/pages/Utilities/utilities/fueltypeutils.json +118 -0
- package/data/pages/Utilities/utilities/routeutils.json +34 -0
- package/data/pages/Utilities/utilities/useaftermount.json +63 -0
- package/data/pages/Utilities/utilities/useaverage.json +86 -0
- package/data/pages/Utilities/utilities/useclickoutside.json +69 -0
- package/data/pages/Utilities/utilities/useclipboard.json +57 -0
- package/data/pages/Utilities/utilities/usecount.json +92 -0
- package/data/pages/Utilities/utilities/usedarkmode.json +50 -0
- package/data/pages/Utilities/utilities/usedebuginfo.json +63 -0
- package/data/pages/Utilities/utilities/useeffectonce.json +57 -0
- package/data/pages/Utilities/utilities/useelapsedtime.json +57 -0
- package/data/pages/Utilities/utilities/useelementsize.json +63 -0
- package/data/pages/Utilities/utilities/useesc.json +57 -0
- package/data/pages/Utilities/utilities/useevent.json +75 -0
- package/data/pages/Utilities/utilities/usefocustrap.json +57 -0
- package/data/pages/Utilities/utilities/usefullscreen.json +197 -0
- package/data/pages/Utilities/utilities/usehover.json +57 -0
- package/data/pages/Utilities/utilities/useinterval.json +63 -0
- package/data/pages/Utilities/utilities/useisfocuswithin.json +75 -0
- package/data/pages/Utilities/utilities/usekey.json +75 -0
- package/data/pages/Utilities/utilities/uselocalstorage.json +69 -0
- package/data/pages/Utilities/utilities/uselocationsuggestions.json +110 -0
- package/data/pages/Utilities/utilities/usemax.json +86 -0
- package/data/pages/Utilities/utilities/usemin.json +86 -0
- package/data/pages/Utilities/utilities/usemutationobserver.json +69 -0
- package/data/pages/Utilities/utilities/useonlinestatus.json +39 -0
- package/data/pages/Utilities/utilities/useonscreen.json +63 -0
- package/data/pages/Utilities/utilities/usepostmessage.json +80 -0
- package/data/pages/Utilities/utilities/useprevious.json +63 -0
- package/data/pages/Utilities/utilities/useresizeobserver.json +65 -0
- package/data/pages/Utilities/utilities/usescrollposition.json +103 -0
- package/data/pages/Utilities/utilities/usesearch.json +197 -0
- package/data/pages/Utilities/utilities/usesorting.json +139 -0
- package/data/pages/Utilities/utilities/usestatewithvalidation.json +69 -0
- package/data/pages/Utilities/utilities/usesum.json +86 -0
- package/data/pages/Utilities/utilities/usetableexport.json +87 -0
- package/data/pages/Utilities/utilities/usetableselection.json +311 -0
- package/data/pages/Utilities/utilities/usetimeout.json +63 -0
- package/data/pages/Utilities/utilities/usetoggle.json +75 -0
- package/data/pages/Utilities/utilities/usewindowresize.json +63 -0
- package/data/version.json +4 -0
- package/docs/content-schema.md +147 -0
- package/docs/navigation-inventory.json +1310 -0
- package/docs/search-synonyms.json +43 -0
- package/package.json +38 -0
- package/server/index.mjs +268 -0
- package/server/lib/load-docs.mjs +48 -0
- package/server/lib/normalise-doc.mjs +220 -0
- package/server/lib/render-markdown.mjs +82 -0
- package/server/lib/search-index.mjs +49 -0
- package/server/lib/types.js +99 -0
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"captured_at": "2025-11-21T12:08:18.748Z",
|
|
4
|
+
"source": "https://uikit.developers.rio.cloud/#components/areaCharts",
|
|
5
|
+
"category": "Components",
|
|
6
|
+
"section": "Charts",
|
|
7
|
+
"slug": "components/areacharts",
|
|
8
|
+
"version": "v1.13.2",
|
|
9
|
+
"hash_algorithm": "sha256",
|
|
10
|
+
"hash": "499a45166d41ea3ea2e724403f1f035c640503c562c24d3de6dd9e2876a84e49"
|
|
11
|
+
},
|
|
12
|
+
"title": "AreaChart",
|
|
13
|
+
"lead": null,
|
|
14
|
+
"content": [
|
|
15
|
+
{
|
|
16
|
+
"heading": "AreaChart",
|
|
17
|
+
"body": "> 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.",
|
|
18
|
+
"examples": [
|
|
19
|
+
{
|
|
20
|
+
"caption": "Example 1",
|
|
21
|
+
"rendered_html": "<div class=\"playground-content bg-white padding-20 padding-bottom-25\" style=\"width: 100%;\"><label>Simple AreaChart</label><div class=\"panel panel-default panel-body margin-bottom-0 height-200 max-width-500\"><div class=\"recharts-responsive-container\" style=\"width: 100%; height: 100%; min-width: 0px;\"><div class=\"recharts-wrapper\" style=\"position: relative; cursor: default; width: 100%; height: 100%; max-height: 168px; max-width: 468px;\"><svg class=\"recharts-surface\" width=\"468\" height=\"168\" viewBox=\"0 0 468 168\" style=\"width: 100%; height: 100%;\"><title></title><desc></desc><defs><clipPath id=\"recharts1-clip\"><rect x=\"15\" y=\"15\" height=\"108\" width=\"438\"></rect></clipPath></defs><defs><linearGradient id=\"area\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"5%\" stop-color=\"#67abc5 \" stop-opacity=\"0.8\"></stop><stop offset=\"95%\" stop-color=\"#67abc5 \" stop-opacity=\"0\"></stop></linearGradient></defs><g class=\"recharts-layer recharts-cartesian-axis recharts-xAxis xAxis\"><line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-line\" stroke=\"#666\" fill=\"none\" x1=\"15\" y1=\"123\" x2=\"453\" y2=\"123\"></line><g class=\"recharts-cartesian-axis-ticks\"><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"45\" y1=\"129\" x2=\"45\" y2=\"123\"></line><text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"45\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"45\" dy=\"0.71em\">Page A</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"108\" y1=\"129\" x2=\"108\" y2=\"123\"></line><text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"108\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"108\" dy=\"0.71em\">Page B</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"171\" y1=\"129\" x2=\"171\" y2=\"123\"></line><text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"171\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"171\" dy=\"0.71em\">Page C</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"234\" y1=\"129\" x2=\"234\" y2=\"123\"></line><text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"234\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"234\" dy=\"0.71em\">Page D</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"297\" y1=\"129\" x2=\"297\" y2=\"123\"></line><text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"297\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"297\" dy=\"0.71em\">Page E</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"360\" y1=\"129\" x2=\"360\" y2=\"123\"></line><text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"360\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"360\" dy=\"0.71em\">Page F</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"423\" y1=\"129\" x2=\"423\" y2=\"123\"></line><text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"423\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"423\" dy=\"0.71em\">Page G</tspan></text></g></g></g><g class=\"recharts-layer recharts-area\"><g class=\"recharts-layer\"><defs><clipPath id=\"animationClipPath-recharts-area-3\"><rect x=\"45\" y=\"0\" width=\"0\" height=\"124\"></rect></clipPath></defs><g class=\"recharts-layer\" clip-path=\"url(#animationClipPath-recharts-area-3)\"><g class=\"recharts-layer\"><path fill=\"url(#area)\" fill-opacity=\"0.6\" width=\"438\" height=\"108\" stroke=\"none\" class=\"recharts-curve recharts-area-area\" d=\"M45,27C66,28,87,29,108,33C129,37,150,63,171,63C192,63,213,39.6,234,39.6C255,39.6,276,66.3,297,66.3C318,66.3,339,59.3,360,51.3C381,43.3,402,30.8,423,18.3L423,123C402,123,381,123,360,123C339,123,318,123,297,123C276,123,255,123,234,123C213,123,192,123,171,123C150,123,129,123,108,123C87,123,66,123,45,123Z\"></path><path stroke=\"#67abc5 \" fill=\"none\" fill-opacity=\"0.6\" width=\"438\" height=\"108\" class=\"recharts-curve recharts-area-curve\" d=\"M45,27C66,28,87,29,108,33C129,37,150,63,171,63C192,63,213,39.6,234,39.6C255,39.6,276,66.3,297,66.3C318,66.3,339,59.3,360,51.3C381,43.3,402,30.8,423,18.3\"></path></g></g></g></g></svg><div tabindex=\"-1\" class=\"recharts-tooltip-wrapper recharts-tooltip-wrapper-right recharts-tooltip-wrapper-bottom\" style=\"visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px; transform: translate(15px, 15px);\"><div class=\"recharts-default-tooltip\" style=\"margin: 0px; padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); white-space: nowrap;\"><p class=\"recharts-tooltip-label\" style=\"margin: 0px;\"></p></div></div></div></div></div></div>",
|
|
22
|
+
"tabs": [
|
|
23
|
+
{
|
|
24
|
+
"label": "React",
|
|
25
|
+
"language": "tsx",
|
|
26
|
+
"code": "import AreaChart from '@rio-cloud/rio-uikit/AreaChart';\nimport Area from '@rio-cloud/rio-uikit/Area';\n\ntype CustomData = {\n name: string;\n value: number;\n};\n\nexport default () => {\n return (\n <>\n <label>Simple AreaChart</label>\n <div className='panel panel-default panel-body margin-bottom-0 height-200 max-width-500'>\n <AreaChart\n data={data}\n dataKey={(entry: CustomData) => entry.name}\n xAxisOptions={{ padding: { left: 30, right: 30 } }}\n areas={[<Area key='area' dataKey={entry => entry.value} />]}\n />\n </div>\n </>\n );\n};\n\nconst data: CustomData[] = [\n {\n name: 'Page A',\n value: 3200,\n },\n {\n name: 'Page B',\n value: 3000,\n },\n {\n name: 'Page C',\n value: 2000,\n },\n {\n name: 'Page D',\n value: 2780,\n },\n {\n name: 'Page E',\n value: 1890,\n },\n {\n name: 'Page F',\n value: 2390,\n },\n {\n name: 'Page G',\n value: 3490,\n },\n];"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"label": "HTML",
|
|
30
|
+
"language": "html",
|
|
31
|
+
"code": "<label>Simple AreaChart</label>\n<div class=\"panel panel-default panel-body margin-bottom-0 height-200 max-width-500\">\n <div class=\"recharts-responsive-container\" style=\"width: 100%; height: 100%; min-width: 0px;\">\n <div class=\"recharts-wrapper\" style=\"position: relative; cursor: default; width: 100%; height: 100%; max-height: 168px; max-width: 468px;\">\n <svg class=\"recharts-surface\" width=\"468\" height=\"168\" viewBox=\"0 0 468 168\" style=\"width: 100%; height: 100%;\">\n <title>\n </title>\n <desc>\n </desc>\n <defs>\n <clipPath id=\"recharts1-clip\">\n <rect x=\"15\" y=\"15\" height=\"108\" width=\"438\">\n </rect>\n </clipPath>\n </defs>\n <defs>\n <linearGradient id=\"area\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"5%\" stop-color=\"#67abc5 \" stop-opacity=\"0.8\">\n </stop>\n <stop offset=\"95%\" stop-color=\"#67abc5 \" stop-opacity=\"0\">\n </stop>\n </linearGradient>\n </defs>\n <g class=\"recharts-layer recharts-cartesian-axis recharts-xAxis xAxis\">\n <line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-line\" stroke=\"#666\" fill=\"none\" x1=\"15\" y1=\"123\" x2=\"453\" y2=\"123\">\n </line>\n <g class=\"recharts-cartesian-axis-ticks\">\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"45\" y1=\"129\" x2=\"45\" y2=\"123\">\n </line>\n <text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"45\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"45\" dy=\"0.71em\">Page A</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"108\" y1=\"129\" x2=\"108\" y2=\"123\">\n </line>\n <text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"108\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"108\" dy=\"0.71em\">Page B</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"171\" y1=\"129\" x2=\"171\" y2=\"123\">\n </line>\n <text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"171\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"171\" dy=\"0.71em\">Page C</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"234\" y1=\"129\" x2=\"234\" y2=\"123\">\n </line>\n <text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"234\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"234\" dy=\"0.71em\">Page D</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"297\" y1=\"129\" x2=\"297\" y2=\"123\">\n </line>\n <text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"297\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"297\" dy=\"0.71em\">Page E</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"360\" y1=\"129\" x2=\"360\" y2=\"123\">\n </line>\n <text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"360\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"360\" dy=\"0.71em\">Page F</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"438\" height=\"30\" x=\"15\" y=\"123\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"423\" y1=\"129\" x2=\"423\" y2=\"123\">\n </line>\n <text orientation=\"bottom\" width=\"438\" height=\"30\" stroke=\"none\" x=\"423\" y=\"131\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"423\" dy=\"0.71em\">Page G</tspan>\n </text>\n </g>\n </g>\n </g>\n <g class=\"recharts-layer recharts-area\">\n <g class=\"recharts-layer\">\n <defs>\n <clipPath id=\"animationClipPath-recharts-area-3\">\n <rect x=\"45\" y=\"0\" width=\"83.36007275312578\" height=\"124\">\n </rect>\n </clipPath>\n </defs>\n <g class=\"recharts-layer\" clip-path=\"url(#animationClipPath-recharts-area-3)\">\n <g class=\"recharts-layer\">\n <path fill=\"url(#area)\" fill-opacity=\"0.6\" width=\"438\" height=\"108\" stroke=\"none\" class=\"recharts-curve recharts-area-area\" d=\"M45,27C66,28,87,29,108,33C129,37,150,63,171,63C192,63,213,39.6,234,39.6C255,39.6,276,66.3,297,66.3C318,66.3,339,59.3,360,51.3C381,43.3,402,30.8,423,18.3L423,123C402,123,381,123,360,123C339,123,318,123,297,123C276,123,255,123,234,123C213,123,192,123,171,123C150,123,129,123,108,123C87,123,66,123,45,123Z\">\n </path>\n <path stroke=\"#67abc5 \" fill=\"none\" fill-opacity=\"0.6\" width=\"438\" height=\"108\" class=\"recharts-curve recharts-area-curve\" d=\"M45,27C66,28,87,29,108,33C129,37,150,63,171,63C192,63,213,39.6,234,39.6C255,39.6,276,66.3,297,66.3C318,66.3,339,59.3,360,51.3C381,43.3,402,30.8,423,18.3\">\n </path>\n </g>\n </g>\n </g>\n </g>\n </svg>\n <div tabindex=\"-1\" class=\"recharts-tooltip-wrapper recharts-tooltip-wrapper-right recharts-tooltip-wrapper-bottom\" style=\"visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px; transform: translate(15px, 15px);\">\n <div class=\"recharts-default-tooltip\" style=\"margin: 0px; padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); white-space: nowrap;\">\n <p class=\"recharts-tooltip-label\" style=\"margin: 0px;\">\n </p>\n </div>\n </div>\n </div>\n </div>\n</div>"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": "Props",
|
|
35
|
+
"language": "json",
|
|
36
|
+
"code": null,
|
|
37
|
+
"props": [
|
|
38
|
+
{
|
|
39
|
+
"heading": "AreaChart",
|
|
40
|
+
"rows": [
|
|
41
|
+
{
|
|
42
|
+
"name": "width",
|
|
43
|
+
"type": "Number",
|
|
44
|
+
"default": "",
|
|
45
|
+
"description": "The width of chart container."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "height",
|
|
49
|
+
"type": "Number",
|
|
50
|
+
"default": "",
|
|
51
|
+
"description": "The height of chart container."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "data",
|
|
55
|
+
"type": "Array",
|
|
56
|
+
"default": "",
|
|
57
|
+
"description": "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\" }]"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "dataKey",
|
|
61
|
+
"type": "String | Number | Function",
|
|
62
|
+
"default": "value",
|
|
63
|
+
"description": "The key of data displayed in the axis. Also, used as label for the x-axis."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "dataUnit",
|
|
67
|
+
"type": "string",
|
|
68
|
+
"default": "",
|
|
69
|
+
"description": "The unit of data displayed in the chart."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "showGrid",
|
|
73
|
+
"type": "Boolean",
|
|
74
|
+
"default": "false",
|
|
75
|
+
"description": "Defines whether or not the grid shall be rendered."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "showXAxis",
|
|
79
|
+
"type": "Boolean",
|
|
80
|
+
"default": "true",
|
|
81
|
+
"description": "Defines whether or not the x-axis shall be rendered."
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "showYAxis",
|
|
85
|
+
"type": "Boolean",
|
|
86
|
+
"default": "false",
|
|
87
|
+
"description": "Defines whether or not the y-axis shall be rendered."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "xAxisOptions",
|
|
91
|
+
"type": "Object",
|
|
92
|
+
"default": "",
|
|
93
|
+
"description": "Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "yAxisOptions",
|
|
97
|
+
"type": "Object",
|
|
98
|
+
"default": "",
|
|
99
|
+
"description": "Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "additionalAxes",
|
|
103
|
+
"type": "React.ReactElement<XAxisProps | YAxisProps>[]",
|
|
104
|
+
"default": "",
|
|
105
|
+
"description": "Render a list of additional axes. This includes YAxis and XAxis."
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "gridOptions",
|
|
109
|
+
"type": "Object",
|
|
110
|
+
"default": "",
|
|
111
|
+
"description": "Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "containerOptions",
|
|
115
|
+
"type": "Object",
|
|
116
|
+
"default": "",
|
|
117
|
+
"description": "Detailed options passed to the underlying ResponsiveContainer component. Details can be found here: https://recharts.org/en-US/api/ResponsiveContainer"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "brush",
|
|
121
|
+
"type": "Boolean",
|
|
122
|
+
"default": "false",
|
|
123
|
+
"description": "Defines whether or not the brush component shall be used."
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "tooltip",
|
|
127
|
+
"type": "ChartTooltip | Boolean",
|
|
128
|
+
"default": "",
|
|
129
|
+
"description": "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"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "legend",
|
|
133
|
+
"type": "Legend | Boolean",
|
|
134
|
+
"default": "false",
|
|
135
|
+
"description": "Shows the provided Legend component otherwise shows nothing."
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "areas",
|
|
139
|
+
"type": "Array of Area",
|
|
140
|
+
"default": "[]",
|
|
141
|
+
"description": "Renders the provided Area components."
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "gradients",
|
|
145
|
+
"type": "Array of AreaGradient",
|
|
146
|
+
"default": "[]",
|
|
147
|
+
"description": "Renders the provided gradient components."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "...",
|
|
151
|
+
"type": "",
|
|
152
|
+
"default": "",
|
|
153
|
+
"description": "Additional props are passed to the underlying AreaChart component. Details can be found here: https://recharts.org/en-US/api/AreaChart"
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"heading": "Area",
|
|
159
|
+
"rows": [
|
|
160
|
+
{
|
|
161
|
+
"name": "strokeColor",
|
|
162
|
+
"type": "String",
|
|
163
|
+
"default": "color-coldplay-fountain",
|
|
164
|
+
"description": "Defines the color for the area component. Take the color name from the charts colors page."
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "dataKey",
|
|
168
|
+
"type": "string | number | ((obj: T) => any)",
|
|
169
|
+
"default": "value",
|
|
170
|
+
"description": "The key of data used for the area."
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "dataUnit",
|
|
174
|
+
"type": "String / Number",
|
|
175
|
+
"default": "",
|
|
176
|
+
"description": "The unit of data displayed for the area."
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "gradientId",
|
|
180
|
+
"type": "String",
|
|
181
|
+
"default": "areaGradient",
|
|
182
|
+
"description": "The id of the corresponding gradient component used in the chart."
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "legendType",
|
|
186
|
+
"type": "String",
|
|
187
|
+
"default": "square",
|
|
188
|
+
"description": "The type of icon in legend. If set to \"none\", no legend item will be rendered."
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "type",
|
|
192
|
+
"type": "String",
|
|
193
|
+
"default": "monotone",
|
|
194
|
+
"description": "The interpolation type of line. And customized interpolation function can be set to type. It is the same as type in Area."
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "isAnimationActive",
|
|
198
|
+
"type": "Boolean",
|
|
199
|
+
"default": "true",
|
|
200
|
+
"description": "If set false, animation of line will be disabled."
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "...",
|
|
204
|
+
"type": "",
|
|
205
|
+
"default": "",
|
|
206
|
+
"description": "Additional props are passed to the underlying Area component. Details can be found here: https://recharts.org/en-US/api/Area"
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"heading": "AreaGradient",
|
|
212
|
+
"rows": [
|
|
213
|
+
{
|
|
214
|
+
"name": "id",
|
|
215
|
+
"type": "String",
|
|
216
|
+
"default": "areaGradient",
|
|
217
|
+
"description": "The id of the gradient referenced by the area component that it is used for."
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "color",
|
|
221
|
+
"type": "String",
|
|
222
|
+
"default": "color-coldplay-fountain",
|
|
223
|
+
"description": "Defines the color for the gradient component. Take the color name from the charts colors page."
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"heading": "ReferenceLine",
|
|
229
|
+
"rows": [
|
|
230
|
+
{
|
|
231
|
+
"name": "stroke",
|
|
232
|
+
"type": "String",
|
|
233
|
+
"default": "color-coldplay-fountain",
|
|
234
|
+
"description": "Defines the color for the line. Take the color name from the charts colors page."
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "...",
|
|
238
|
+
"type": "",
|
|
239
|
+
"default": "",
|
|
240
|
+
"description": "Additional props are passed to the underlying ReferenceLine component. Details can be found here: https://recharts.org/en-US/api/ReferenceLine"
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"heading": "Legend",
|
|
246
|
+
"rows": [
|
|
247
|
+
{
|
|
248
|
+
"name": "iconType",
|
|
249
|
+
"type": "String",
|
|
250
|
+
"default": "square",
|
|
251
|
+
"description": "Defines the type of the leading icon."
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "iconSize",
|
|
255
|
+
"type": "String",
|
|
256
|
+
"default": "12",
|
|
257
|
+
"description": "Defines the size of the leading icon."
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "layout",
|
|
261
|
+
"type": "String",
|
|
262
|
+
"default": "vertical",
|
|
263
|
+
"description": "Defines the layout of the legend."
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "align",
|
|
267
|
+
"type": "String",
|
|
268
|
+
"default": "right",
|
|
269
|
+
"description": "Defines the alignment of the legend relative to the chart."
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "verticalAlign",
|
|
273
|
+
"type": "String",
|
|
274
|
+
"default": "top",
|
|
275
|
+
"description": "Defines the vertical alignment of the legend relative to the chart."
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "...",
|
|
279
|
+
"type": "",
|
|
280
|
+
"default": "",
|
|
281
|
+
"description": "Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend"
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"caption": "Example 2",
|
|
291
|
+
"rendered_html": "<div class=\"playground-content bg-white padding-20 padding-bottom-25\" style=\"width: 100%;\"><label>Multiple Areas in an AreaChart</label><div class=\"panel panel-default panel-body margin-bottom-0 height-300\"><div class=\"recharts-responsive-container\" style=\"width: 100%; height: 100%; min-width: 0px;\"><div class=\"recharts-wrapper\" style=\"position: relative; cursor: default; width: 100%; height: 100%; max-height: 268px; max-width: 876px;\"><svg class=\"recharts-surface\" width=\"876\" height=\"268\" viewBox=\"0 0 876 268\" style=\"width: 100%; height: 100%;\"><title></title><desc></desc><defs><clipPath id=\"recharts4-clip\"><rect x=\"75\" y=\"15\" height=\"208\" width=\"712\"></rect></clipPath></defs><defs><linearGradient id=\"area1\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"5%\" stop-color=\"#493d6d \" stop-opacity=\"0.8\"></stop><stop offset=\"95%\" stop-color=\"#493d6d \" stop-opacity=\"0\"></stop></linearGradient><linearGradient id=\"area2\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"5%\" stop-color=\"#f19588 \" stop-opacity=\"0.8\"></stop><stop offset=\"95%\" stop-color=\"#f19588 \" stop-opacity=\"0\"></stop></linearGradient></defs><g class=\"recharts-cartesian-grid\"><g class=\"recharts-cartesian-grid-horizontal\"><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"223\" x2=\"787\" y2=\"223\"></line><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"171\" x2=\"787\" y2=\"171\"></line><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"119\" x2=\"787\" y2=\"119\"></line><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"67\" x2=\"787\" y2=\"67\"></line><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"15\" x2=\"787\" y2=\"15\"></line></g><g class=\"recharts-cartesian-grid-vertical\"><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"15\" x2=\"75\" y2=\"223\"></line><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"193.66666666666669\" y1=\"15\" x2=\"193.66666666666669\" y2=\"223\"></line><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"312.33333333333337\" y1=\"15\" x2=\"312.33333333333337\" y2=\"223\"></line><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"431\" y1=\"15\" x2=\"431\" y2=\"223\"></line><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"549.6666666666667\" y1=\"15\" x2=\"549.6666666666667\" y2=\"223\"></line><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"668.3333333333334\" y1=\"15\" x2=\"668.3333333333334\" y2=\"223\"></line><line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"787\" y1=\"15\" x2=\"787\" y2=\"223\"></line></g></g><g class=\"recharts-layer recharts-cartesian-axis recharts-xAxis xAxis\"><line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-line\" stroke=\"#666\" fill=\"none\" x1=\"75\" y1=\"223\" x2=\"787\" y2=\"223\"></line><g class=\"recharts-cartesian-axis-ticks\"><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"75\" y1=\"229\" x2=\"75\" y2=\"223\"></line><text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"75\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"75\" dy=\"0.71em\">Page A</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"193.66666666666669\" y1=\"229\" x2=\"193.66666666666669\" y2=\"223\"></line><text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"193.66666666666669\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"193.66666666666669\" dy=\"0.71em\">Page B</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"312.33333333333337\" y1=\"229\" x2=\"312.33333333333337\" y2=\"223\"></line><text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"312.33333333333337\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"312.33333333333337\" dy=\"0.71em\">Page C</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"431\" y1=\"229\" x2=\"431\" y2=\"223\"></line><text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"431\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"431\" dy=\"0.71em\">Page D</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"549.6666666666667\" y1=\"229\" x2=\"549.6666666666667\" y2=\"223\"></line><text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"549.6666666666667\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"549.6666666666667\" dy=\"0.71em\">Page E</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"668.3333333333334\" y1=\"229\" x2=\"668.3333333333334\" y2=\"223\"></line><text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"668.3333333333334\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"668.3333333333334\" dy=\"0.71em\">Page F</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"787\" y1=\"229\" x2=\"787\" y2=\"223\"></line><text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"787\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\"><tspan x=\"787\" dy=\"0.71em\">Page G</tspan></text></g></g></g><g class=\"recharts-layer recharts-cartesian-axis recharts-yAxis yAxis\"><line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-line\" stroke=\"#666\" fill=\"none\" x1=\"75\" y1=\"15\" x2=\"75\" y2=\"223\"></line><g class=\"recharts-cartesian-axis-ticks\"><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"69\" y1=\"223\" x2=\"75\" y2=\"223\"></line><text orientation=\"left\" width=\"60\" height=\"208\" stroke=\"none\" x=\"67\" y=\"223\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"end\" fill=\"#666\"><tspan x=\"67\" dy=\"0.355em\">0</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"69\" y1=\"171\" x2=\"75\" y2=\"171\"></line><text orientation=\"left\" width=\"60\" height=\"208\" stroke=\"none\" x=\"67\" y=\"171\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"end\" fill=\"#666\"><tspan x=\"67\" dy=\"0.355em\">900</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"69\" y1=\"119\" x2=\"75\" y2=\"119\"></line><text orientation=\"left\" width=\"60\" height=\"208\" stroke=\"none\" x=\"67\" y=\"119\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"end\" fill=\"#666\"><tspan x=\"67\" dy=\"0.355em\">1800</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"69\" y1=\"67\" x2=\"75\" y2=\"67\"></line><text orientation=\"left\" width=\"60\" height=\"208\" stroke=\"none\" x=\"67\" y=\"67\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"end\" fill=\"#666\"><tspan x=\"67\" dy=\"0.355em\">2700</tspan></text></g><g class=\"recharts-layer recharts-cartesian-axis-tick\"><line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"69\" y1=\"15\" x2=\"75\" y2=\"15\"></line><text orientation=\"left\" width=\"60\" height=\"208\" stroke=\"none\" x=\"67\" y=\"15\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"end\" fill=\"#666\"><tspan x=\"67\" dy=\"0.355em\">3600</tspan></text></g></g></g><g class=\"recharts-layer recharts-area\"><g class=\"recharts-layer\"><defs><clipPath id=\"animationClipPath-recharts-area-7\"><rect x=\"75\" y=\"0\" width=\"0\" height=\"224\"></rect></clipPath></defs><g class=\"recharts-layer\" clip-path=\"url(#animationClipPath-recharts-area-7)\"><g class=\"recharts-layer\"><path name=\"UV\" fill-opacity=\"0.5\" fill=\"url(#area1)\" width=\"712\" height=\"208\" stroke=\"none\" class=\"recharts-curve recharts-area-area\" d=\"M75,38.111C114.556,40.037,154.111,41.963,193.667,49.667C233.222,57.37,272.778,107.444,312.333,107.444C351.889,107.444,391.444,62.378,431,62.378C470.556,62.378,510.111,113.8,549.667,113.8C589.222,113.8,628.778,100.319,668.333,84.911C707.889,69.504,747.444,45.43,787,21.356L787,223C747.444,223,707.889,223,668.333,223C628.778,223,589.222,223,549.667,223C510.111,223,470.556,223,431,223C391.444,223,351.889,223,312.333,223C272.778,223,233.222,223,193.667,223C154.111,223,114.556,223,75,223Z\"></path><path name=\"UV\" fill-opacity=\"0.5\" stroke=\"#493d6d \" fill=\"none\" width=\"712\" height=\"208\" class=\"recharts-curve recharts-area-curve\" d=\"M75,38.111C114.556,40.037,154.111,41.963,193.667,49.667C233.222,57.37,272.778,107.444,312.333,107.444C351.889,107.444,391.444,62.378,431,62.378C470.556,62.378,510.111,113.8,549.667,113.8C589.222,113.8,628.778,100.319,668.333,84.911C707.889,69.504,747.444,45.43,787,21.356\"></path></g></g></g></g><g class=\"recharts-layer recharts-area\"><g class=\"recharts-layer\"><defs><clipPath id=\"animationClipPath-recharts-area-8\"><rect x=\"75\" y=\"0\" width=\"0\" height=\"224\"></rect></clipPath></defs><g class=\"recharts-layer\" clip-path=\"url(#animationClipPath-recharts-area-8)\"><g class=\"recharts-layer\"><path name=\"AMT\" fill-opacity=\"0.5\" fill=\"url(#area2)\" width=\"712\" height=\"208\" stroke=\"none\" class=\"recharts-curve recharts-area-area\" d=\"M75,84.333C114.556,89.822,154.111,95.311,193.667,95.311C233.222,95.311,272.778,90.689,312.333,90.689C351.889,90.689,391.444,107.444,431,107.444C470.556,107.444,510.111,101.801,549.667,96.987C589.222,92.172,628.778,78.556,668.333,78.556C707.889,78.556,747.444,90.111,787,101.667L787,223C747.444,223,707.889,223,668.333,223C628.778,223,589.222,223,549.667,223C510.111,223,470.556,223,431,223C391.444,223,351.889,223,312.333,223C272.778,223,233.222,223,193.667,223C154.111,223,114.556,223,75,223Z\"></path><path name=\"AMT\" fill-opacity=\"0.5\" stroke=\"#f19588 \" fill=\"none\" width=\"712\" height=\"208\" class=\"recharts-curve recharts-area-curve\" d=\"M75,84.333C114.556,89.822,154.111,95.311,193.667,95.311C233.222,95.311,272.778,90.689,312.333,90.689C351.889,90.689,391.444,107.444,431,107.444C470.556,107.444,510.111,101.801,549.667,96.987C589.222,92.172,628.778,78.556,668.333,78.556C707.889,78.556,747.444,90.111,787,101.667\"></path></g></g></g></g><g class=\"recharts-layer recharts-reference-line\"><line y=\"3500\" stroke-dasharray=\"3 3\" stroke=\"#f19588 \" fill=\"none\" fill-opacity=\"1\" stroke-width=\"1\" x1=\"75\" y1=\"20.777777777777782\" x2=\"787\" y2=\"20.777777777777782\" class=\"recharts-reference-line-line\"></line><text offset=\"5\" x=\"431\" y=\"20.777777777777782\" class=\"recharts-text recharts-label\" text-anchor=\"middle\" fill=\"#808080\"><tspan x=\"431\" dy=\"0.355em\">Max</tspan></text></g></svg><div class=\"recharts-legend-wrapper\" style=\"position: absolute; width: auto; height: auto; right: 15px; top: 15px;\"><ul class=\"list-style-none padding-left-20\"><li class=\"cursor-pointer display-flex gap-5 align-items-center rounded padding-x-5 padding-y-3 \"><span class=\"rioglyph rioglyph-sphere\" style=\"color: rgb(73, 61, 109);\"></span><span class=\"text-color-darker text-capitalize-first-word\">UV</span></li><li class=\"cursor-pointer display-flex gap-5 align-items-center rounded padding-x-5 padding-y-3 \"><span class=\"rioglyph rioglyph-sphere\" style=\"color: rgb(241, 149, 136);\"></span><span class=\"text-color-darker text-capitalize-first-word\">AMT</span></li></ul></div><div tabindex=\"-1\" class=\"recharts-tooltip-wrapper recharts-tooltip-wrapper-right recharts-tooltip-wrapper-bottom\" style=\"visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px; transform: translate(75px, 15px);\"><div class=\"recharts-default-tooltip\" style=\"margin: 0px; padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); white-space: nowrap;\"><p class=\"recharts-tooltip-label\" style=\"margin: 0px;\"></p></div></div></div></div></div></div>",
|
|
292
|
+
"tabs": [
|
|
293
|
+
{
|
|
294
|
+
"label": "React",
|
|
295
|
+
"language": "tsx",
|
|
296
|
+
"code": "import { useState } from 'react';\n\nimport AreaChart from '@rio-cloud/rio-uikit/AreaChart';\nimport Area from '@rio-cloud/rio-uikit/Area';\nimport Legend from '@rio-cloud/rio-uikit/Legend';\nimport ReferenceLine from '@rio-cloud/rio-uikit/ReferenceLine';\n\ntype CustomData = {\n name: string;\n uv: number;\n pv: number;\n amt: number;\n};\n\nexport default () => {\n const [highlightedArea, setHighlightedArea] = useState<string | null>(null);\n\n const handleLegendMouseEnter = (dataKey: string) => setHighlightedArea(dataKey);\n const handleLegendMouseLeave = () => setHighlightedArea(null);\n\n return (\n <>\n <label>Multiple Areas in an AreaChart</label>\n <div className='panel panel-default panel-body margin-bottom-0 height-300'>\n <AreaChart\n data={data}\n dataKey={(entry: CustomData) => entry.name}\n showYAxis\n showGrid\n legend={\n <Legend\n content={\n <CustomLegend\n highlightedArea={highlightedArea}\n onMouseEnter={handleLegendMouseEnter}\n onMouseLeave={handleLegendMouseLeave}\n />\n }\n />\n }\n areas={[\n <Area\n key='area1'\n name='UV'\n dataKey='uv'\n strokeColor='color-warmup-victoria'\n fillOpacity={highlightedArea === 'uv' || !highlightedArea ? 0.5 : 0.1}\n />,\n <Area\n key='area2'\n name='AMT'\n dataKey='amt'\n strokeColor='color-warmup-salmon'\n fillOpacity={highlightedArea === 'amt' || !highlightedArea ? 0.5 : 0.1}\n />,\n ]}\n referenceLines={[\n <ReferenceLine\n key='y'\n y={3500}\n stroke='color-warmup-salmon'\n strokeDasharray='3 3'\n label='Max'\n />,\n ]}\n />\n </div>\n </>\n );\n};\n\ntype CustomLegendProps = {\n payload?: { dataKey: string; value: string; color: string }[];\n highlightedArea: string | null;\n onMouseEnter: (dataKey: string) => void;\n onMouseLeave: () => void;\n};\n\nconst CustomLegend = ({ payload, highlightedArea, onMouseEnter, onMouseLeave }: CustomLegendProps) => {\n return (\n <ul className='list-style-none padding-left-20'>\n {payload?.map((entry: any, index: number) => (\n <li\n key={`item-${index}`}\n onMouseEnter={() => onMouseEnter(entry.dataKey)}\n onMouseLeave={onMouseLeave}\n className={`cursor-pointer display-flex gap-5 align-items-center rounded padding-x-5 padding-y-3 ${highlightedArea === entry.dataKey ? 'bg-lightest' : ''}`}\n >\n <span className='rioglyph rioglyph-sphere' style={{ color: entry.color }} />\n <span className='text-color-darker text-capitalize-first-word'>{entry.value}</span>\n </li>\n ))}\n </ul>\n );\n};\n\nconst data: CustomData[] = [\n {\n name: 'Page A',\n uv: 3200,\n pv: 2400,\n amt: 2400,\n },\n {\n name: 'Page B',\n uv: 3000,\n pv: 1398,\n amt: 2210,\n },\n {\n name: 'Page C',\n uv: 2000,\n pv: 9800,\n amt: 2290,\n },\n {\n name: 'Page D',\n uv: 2780,\n pv: 3908,\n amt: 2000,\n },\n {\n name: 'Page E',\n uv: 1890,\n pv: 4800,\n amt: 2181,\n },\n {\n name: 'Page F',\n uv: 2390,\n pv: 3800,\n amt: 2500,\n },\n {\n name: 'Page G',\n uv: 3490,\n pv: 4300,\n amt: 2100,\n },\n];"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"label": "HTML",
|
|
300
|
+
"language": "html",
|
|
301
|
+
"code": "<label>Multiple Areas in an AreaChart</label>\n<div class=\"panel panel-default panel-body margin-bottom-0 height-300\">\n <div class=\"recharts-responsive-container\" style=\"width: 100%; height: 100%; min-width: 0px;\">\n <div class=\"recharts-wrapper\" style=\"position: relative; cursor: default; width: 100%; height: 100%; max-height: 268px; max-width: 876px;\">\n <svg class=\"recharts-surface\" width=\"876\" height=\"268\" viewBox=\"0 0 876 268\" style=\"width: 100%; height: 100%;\">\n <title>\n </title>\n <desc>\n </desc>\n <defs>\n <clipPath id=\"recharts4-clip\">\n <rect x=\"75\" y=\"15\" height=\"208\" width=\"712\">\n </rect>\n </clipPath>\n </defs>\n <defs>\n <linearGradient id=\"area1\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"5%\" stop-color=\"#493d6d \" stop-opacity=\"0.8\">\n </stop>\n <stop offset=\"95%\" stop-color=\"#493d6d \" stop-opacity=\"0\">\n </stop>\n </linearGradient>\n <linearGradient id=\"area2\" x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"5%\" stop-color=\"#f19588 \" stop-opacity=\"0.8\">\n </stop>\n <stop offset=\"95%\" stop-color=\"#f19588 \" stop-opacity=\"0\">\n </stop>\n </linearGradient>\n </defs>\n <g class=\"recharts-cartesian-grid\">\n <g class=\"recharts-cartesian-grid-horizontal\">\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"223\" x2=\"787\" y2=\"223\">\n </line>\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"171\" x2=\"787\" y2=\"171\">\n </line>\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"119\" x2=\"787\" y2=\"119\">\n </line>\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"67\" x2=\"787\" y2=\"67\">\n </line>\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"15\" x2=\"787\" y2=\"15\">\n </line>\n </g>\n <g class=\"recharts-cartesian-grid-vertical\">\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"75\" y1=\"15\" x2=\"75\" y2=\"223\">\n </line>\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"193.66666666666669\" y1=\"15\" x2=\"193.66666666666669\" y2=\"223\">\n </line>\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"312.33333333333337\" y1=\"15\" x2=\"312.33333333333337\" y2=\"223\">\n </line>\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"431\" y1=\"15\" x2=\"431\" y2=\"223\">\n </line>\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"549.6666666666667\" y1=\"15\" x2=\"549.6666666666667\" y2=\"223\">\n </line>\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"668.3333333333334\" y1=\"15\" x2=\"668.3333333333334\" y2=\"223\">\n </line>\n <line stroke-dasharray=\"3 3\" stroke=\"#ccc\" fill=\"none\" x=\"75\" y=\"15\" width=\"712\" height=\"208\" x1=\"787\" y1=\"15\" x2=\"787\" y2=\"223\">\n </line>\n </g>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis recharts-xAxis xAxis\">\n <line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-line\" stroke=\"#666\" fill=\"none\" x1=\"75\" y1=\"223\" x2=\"787\" y2=\"223\">\n </line>\n <g class=\"recharts-cartesian-axis-ticks\">\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"75\" y1=\"229\" x2=\"75\" y2=\"223\">\n </line>\n <text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"75\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"75\" dy=\"0.71em\">Page A</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"193.66666666666669\" y1=\"229\" x2=\"193.66666666666669\" y2=\"223\">\n </line>\n <text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"193.66666666666669\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"193.66666666666669\" dy=\"0.71em\">Page B</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"312.33333333333337\" y1=\"229\" x2=\"312.33333333333337\" y2=\"223\">\n </line>\n <text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"312.33333333333337\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"312.33333333333337\" dy=\"0.71em\">Page C</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"431\" y1=\"229\" x2=\"431\" y2=\"223\">\n </line>\n <text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"431\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"431\" dy=\"0.71em\">Page D</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"549.6666666666667\" y1=\"229\" x2=\"549.6666666666667\" y2=\"223\">\n </line>\n <text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"549.6666666666667\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"549.6666666666667\" dy=\"0.71em\">Page E</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"668.3333333333334\" y1=\"229\" x2=\"668.3333333333334\" y2=\"223\">\n </line>\n <text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"668.3333333333334\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"668.3333333333334\" dy=\"0.71em\">Page F</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"bottom\" width=\"712\" height=\"30\" x=\"75\" y=\"223\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"787\" y1=\"229\" x2=\"787\" y2=\"223\">\n </line>\n <text orientation=\"bottom\" width=\"712\" height=\"30\" stroke=\"none\" x=\"787\" y=\"231\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"middle\" fill=\"#666\">\n <tspan x=\"787\" dy=\"0.71em\">Page G</tspan>\n </text>\n </g>\n </g>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis recharts-yAxis yAxis\">\n <line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-line\" stroke=\"#666\" fill=\"none\" x1=\"75\" y1=\"15\" x2=\"75\" y2=\"223\">\n </line>\n <g class=\"recharts-cartesian-axis-ticks\">\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"69\" y1=\"223\" x2=\"75\" y2=\"223\">\n </line>\n <text orientation=\"left\" width=\"60\" height=\"208\" stroke=\"none\" x=\"67\" y=\"223\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"end\" fill=\"#666\">\n <tspan x=\"67\" dy=\"0.355em\">0</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"69\" y1=\"171\" x2=\"75\" y2=\"171\">\n </line>\n <text orientation=\"left\" width=\"60\" height=\"208\" stroke=\"none\" x=\"67\" y=\"171\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"end\" fill=\"#666\">\n <tspan x=\"67\" dy=\"0.355em\">900</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"69\" y1=\"119\" x2=\"75\" y2=\"119\">\n </line>\n <text orientation=\"left\" width=\"60\" height=\"208\" stroke=\"none\" x=\"67\" y=\"119\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"end\" fill=\"#666\">\n <tspan x=\"67\" dy=\"0.355em\">1800</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"69\" y1=\"67\" x2=\"75\" y2=\"67\">\n </line>\n <text orientation=\"left\" width=\"60\" height=\"208\" stroke=\"none\" x=\"67\" y=\"67\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"end\" fill=\"#666\">\n <tspan x=\"67\" dy=\"0.355em\">2700</tspan>\n </text>\n </g>\n <g class=\"recharts-layer recharts-cartesian-axis-tick\">\n <line orientation=\"left\" width=\"60\" height=\"208\" x=\"15\" y=\"15\" class=\"recharts-cartesian-axis-tick-line\" stroke=\"#666\" fill=\"none\" x1=\"69\" y1=\"15\" x2=\"75\" y2=\"15\">\n </line>\n <text orientation=\"left\" width=\"60\" height=\"208\" stroke=\"none\" x=\"67\" y=\"15\" class=\"recharts-text recharts-cartesian-axis-tick-value\" text-anchor=\"end\" fill=\"#666\">\n <tspan x=\"67\" dy=\"0.355em\">3600</tspan>\n </text>\n </g>\n </g>\n </g>\n <g class=\"recharts-layer recharts-area\">\n <g class=\"recharts-layer\">\n <defs>\n <clipPath id=\"animationClipPath-recharts-area-7\">\n <rect x=\"75\" y=\"0\" width=\"673.2266855450601\" height=\"224\">\n </rect>\n </clipPath>\n </defs>\n <g class=\"recharts-layer\" clip-path=\"url(#animationClipPath-recharts-area-7)\">\n <g class=\"recharts-layer\">\n <path name=\"UV\" fill-opacity=\"0.5\" fill=\"url(#area1)\" width=\"712\" height=\"208\" stroke=\"none\" class=\"recharts-curve recharts-area-area\" d=\"M75,38.111C114.556,40.037,154.111,41.963,193.667,49.667C233.222,57.37,272.778,107.444,312.333,107.444C351.889,107.444,391.444,62.378,431,62.378C470.556,62.378,510.111,113.8,549.667,113.8C589.222,113.8,628.778,100.319,668.333,84.911C707.889,69.504,747.444,45.43,787,21.356L787,223C747.444,223,707.889,223,668.333,223C628.778,223,589.222,223,549.667,223C510.111,223,470.556,223,431,223C391.444,223,351.889,223,312.333,223C272.778,223,233.222,223,193.667,223C154.111,223,114.556,223,75,223Z\">\n </path>\n <path name=\"UV\" fill-opacity=\"0.5\" stroke=\"#493d6d \" fill=\"none\" width=\"712\" height=\"208\" class=\"recharts-curve recharts-area-curve\" d=\"M75,38.111C114.556,40.037,154.111,41.963,193.667,49.667C233.222,57.37,272.778,107.444,312.333,107.444C351.889,107.444,391.444,62.378,431,62.378C470.556,62.378,510.111,113.8,549.667,113.8C589.222,113.8,628.778,100.319,668.333,84.911C707.889,69.504,747.444,45.43,787,21.356\">\n </path>\n </g>\n </g>\n </g>\n </g>\n <g class=\"recharts-layer recharts-area\">\n <g class=\"recharts-layer\">\n <defs>\n <clipPath id=\"animationClipPath-recharts-area-8\">\n <rect x=\"75\" y=\"0\" width=\"673.2266855450601\" height=\"224\">\n </rect>\n </clipPath>\n </defs>\n <g class=\"recharts-layer\" clip-path=\"url(#animationClipPath-recharts-area-8)\">\n <g class=\"recharts-layer\">\n <path name=\"AMT\" fill-opacity=\"0.5\" fill=\"url(#area2)\" width=\"712\" height=\"208\" stroke=\"none\" class=\"recharts-curve recharts-area-area\" d=\"M75,84.333C114.556,89.822,154.111,95.311,193.667,95.311C233.222,95.311,272.778,90.689,312.333,90.689C351.889,90.689,391.444,107.444,431,107.444C470.556,107.444,510.111,101.801,549.667,96.987C589.222,92.172,628.778,78.556,668.333,78.556C707.889,78.556,747.444,90.111,787,101.667L787,223C747.444,223,707.889,223,668.333,223C628.778,223,589.222,223,549.667,223C510.111,223,470.556,223,431,223C391.444,223,351.889,223,312.333,223C272.778,223,233.222,223,193.667,223C154.111,223,114.556,223,75,223Z\">\n </path>\n <path name=\"AMT\" fill-opacity=\"0.5\" stroke=\"#f19588 \" fill=\"none\" width=\"712\" height=\"208\" class=\"recharts-curve recharts-area-curve\" d=\"M75,84.333C114.556,89.822,154.111,95.311,193.667,95.311C233.222,95.311,272.778,90.689,312.333,90.689C351.889,90.689,391.444,107.444,431,107.444C470.556,107.444,510.111,101.801,549.667,96.987C589.222,92.172,628.778,78.556,668.333,78.556C707.889,78.556,747.444,90.111,787,101.667\">\n </path>\n </g>\n </g>\n </g>\n </g>\n <g class=\"recharts-layer recharts-reference-line\">\n <line y=\"3500\" stroke-dasharray=\"3 3\" stroke=\"#f19588 \" fill=\"none\" fill-opacity=\"1\" stroke-width=\"1\" x1=\"75\" y1=\"20.777777777777782\" x2=\"787\" y2=\"20.777777777777782\" class=\"recharts-reference-line-line\">\n </line>\n <text offset=\"5\" x=\"431\" y=\"20.777777777777782\" class=\"recharts-text recharts-label\" text-anchor=\"middle\" fill=\"#808080\">\n <tspan x=\"431\" dy=\"0.355em\">Max</tspan>\n </text>\n </g>\n </svg>\n <div class=\"recharts-legend-wrapper\" style=\"position: absolute; width: auto; height: auto; right: 15px; top: 15px;\">\n <ul class=\"list-style-none padding-left-20\">\n <li class=\"cursor-pointer display-flex gap-5 align-items-center rounded padding-x-5 padding-y-3 \">\n <span class=\"rioglyph rioglyph-sphere\" style=\"color: rgb(73, 61, 109);\">\n </span>\n <span class=\"text-color-darker text-capitalize-first-word\">UV</span>\n </li>\n <li class=\"cursor-pointer display-flex gap-5 align-items-center rounded padding-x-5 padding-y-3 \">\n <span class=\"rioglyph rioglyph-sphere\" style=\"color: rgb(241, 149, 136);\">\n </span>\n <span class=\"text-color-darker text-capitalize-first-word\">AMT</span>\n </li>\n </ul>\n </div>\n <div tabindex=\"-1\" class=\"recharts-tooltip-wrapper recharts-tooltip-wrapper-right recharts-tooltip-wrapper-bottom\" style=\"visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px; transform: translate(75px, 15px);\">\n <div class=\"recharts-default-tooltip\" style=\"margin: 0px; padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); white-space: nowrap;\">\n <p class=\"recharts-tooltip-label\" style=\"margin: 0px;\">\n </p>\n </div>\n </div>\n </div>\n </div>\n</div>"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"label": "Props",
|
|
305
|
+
"language": "json",
|
|
306
|
+
"code": null,
|
|
307
|
+
"props": [
|
|
308
|
+
{
|
|
309
|
+
"heading": "AreaChart",
|
|
310
|
+
"rows": [
|
|
311
|
+
{
|
|
312
|
+
"name": "width",
|
|
313
|
+
"type": "Number",
|
|
314
|
+
"default": "",
|
|
315
|
+
"description": "The width of chart container."
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "height",
|
|
319
|
+
"type": "Number",
|
|
320
|
+
"default": "",
|
|
321
|
+
"description": "The height of chart container."
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "data",
|
|
325
|
+
"type": "Array",
|
|
326
|
+
"default": "",
|
|
327
|
+
"description": "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\" }]"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "dataKey",
|
|
331
|
+
"type": "String | Number | Function",
|
|
332
|
+
"default": "value",
|
|
333
|
+
"description": "The key of data displayed in the axis. Also, used as label for the x-axis."
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "dataUnit",
|
|
337
|
+
"type": "string",
|
|
338
|
+
"default": "",
|
|
339
|
+
"description": "The unit of data displayed in the chart."
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "showGrid",
|
|
343
|
+
"type": "Boolean",
|
|
344
|
+
"default": "false",
|
|
345
|
+
"description": "Defines whether or not the grid shall be rendered."
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "showXAxis",
|
|
349
|
+
"type": "Boolean",
|
|
350
|
+
"default": "true",
|
|
351
|
+
"description": "Defines whether or not the x-axis shall be rendered."
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "showYAxis",
|
|
355
|
+
"type": "Boolean",
|
|
356
|
+
"default": "false",
|
|
357
|
+
"description": "Defines whether or not the y-axis shall be rendered."
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "xAxisOptions",
|
|
361
|
+
"type": "Object",
|
|
362
|
+
"default": "",
|
|
363
|
+
"description": "Detailed options passed to the underlying XAxis component. Details can be found here: https://recharts.org/en-US/api/XAxis"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"name": "yAxisOptions",
|
|
367
|
+
"type": "Object",
|
|
368
|
+
"default": "",
|
|
369
|
+
"description": "Detailed options passed to the underlying YAxis component. Details can be found here: https://recharts.org/en-US/api/YAxis"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "additionalAxes",
|
|
373
|
+
"type": "React.ReactElement<XAxisProps | YAxisProps>[]",
|
|
374
|
+
"default": "",
|
|
375
|
+
"description": "Render a list of additional axes. This includes YAxis and XAxis."
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "gridOptions",
|
|
379
|
+
"type": "Object",
|
|
380
|
+
"default": "",
|
|
381
|
+
"description": "Detailed options passed to the underlying Grid component. Details can be found here: https://recharts.org/en-US/api/CartesianGrid"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "containerOptions",
|
|
385
|
+
"type": "Object",
|
|
386
|
+
"default": "",
|
|
387
|
+
"description": "Detailed options passed to the underlying ResponsiveContainer component. Details can be found here: https://recharts.org/en-US/api/ResponsiveContainer"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "brush",
|
|
391
|
+
"type": "Boolean",
|
|
392
|
+
"default": "false",
|
|
393
|
+
"description": "Defines whether or not the brush component shall be used."
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "tooltip",
|
|
397
|
+
"type": "ChartTooltip | Boolean",
|
|
398
|
+
"default": "",
|
|
399
|
+
"description": "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"
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "legend",
|
|
403
|
+
"type": "Legend | Boolean",
|
|
404
|
+
"default": "false",
|
|
405
|
+
"description": "Shows the provided Legend component otherwise shows nothing."
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "areas",
|
|
409
|
+
"type": "Array of Area",
|
|
410
|
+
"default": "[]",
|
|
411
|
+
"description": "Renders the provided Area components."
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "gradients",
|
|
415
|
+
"type": "Array of AreaGradient",
|
|
416
|
+
"default": "[]",
|
|
417
|
+
"description": "Renders the provided gradient components."
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "...",
|
|
421
|
+
"type": "",
|
|
422
|
+
"default": "",
|
|
423
|
+
"description": "Additional props are passed to the underlying AreaChart component. Details can be found here: https://recharts.org/en-US/api/AreaChart"
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"heading": "Area",
|
|
429
|
+
"rows": [
|
|
430
|
+
{
|
|
431
|
+
"name": "strokeColor",
|
|
432
|
+
"type": "String",
|
|
433
|
+
"default": "color-coldplay-fountain",
|
|
434
|
+
"description": "Defines the color for the area component. Take the color name from the charts colors page."
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "dataKey",
|
|
438
|
+
"type": "string | number | ((obj: T) => any)",
|
|
439
|
+
"default": "value",
|
|
440
|
+
"description": "The key of data used for the area."
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "dataUnit",
|
|
444
|
+
"type": "String / Number",
|
|
445
|
+
"default": "",
|
|
446
|
+
"description": "The unit of data displayed for the area."
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"name": "gradientId",
|
|
450
|
+
"type": "String",
|
|
451
|
+
"default": "areaGradient",
|
|
452
|
+
"description": "The id of the corresponding gradient component used in the chart."
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"name": "legendType",
|
|
456
|
+
"type": "String",
|
|
457
|
+
"default": "square",
|
|
458
|
+
"description": "The type of icon in legend. If set to \"none\", no legend item will be rendered."
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "type",
|
|
462
|
+
"type": "String",
|
|
463
|
+
"default": "monotone",
|
|
464
|
+
"description": "The interpolation type of line. And customized interpolation function can be set to type. It is the same as type in Area."
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"name": "isAnimationActive",
|
|
468
|
+
"type": "Boolean",
|
|
469
|
+
"default": "true",
|
|
470
|
+
"description": "If set false, animation of line will be disabled."
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "...",
|
|
474
|
+
"type": "",
|
|
475
|
+
"default": "",
|
|
476
|
+
"description": "Additional props are passed to the underlying Area component. Details can be found here: https://recharts.org/en-US/api/Area"
|
|
477
|
+
}
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"heading": "AreaGradient",
|
|
482
|
+
"rows": [
|
|
483
|
+
{
|
|
484
|
+
"name": "id",
|
|
485
|
+
"type": "String",
|
|
486
|
+
"default": "areaGradient",
|
|
487
|
+
"description": "The id of the gradient referenced by the area component that it is used for."
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "color",
|
|
491
|
+
"type": "String",
|
|
492
|
+
"default": "color-coldplay-fountain",
|
|
493
|
+
"description": "Defines the color for the gradient component. Take the color name from the charts colors page."
|
|
494
|
+
}
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"heading": "ReferenceLine",
|
|
499
|
+
"rows": [
|
|
500
|
+
{
|
|
501
|
+
"name": "stroke",
|
|
502
|
+
"type": "String",
|
|
503
|
+
"default": "color-coldplay-fountain",
|
|
504
|
+
"description": "Defines the color for the line. Take the color name from the charts colors page."
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"name": "...",
|
|
508
|
+
"type": "",
|
|
509
|
+
"default": "",
|
|
510
|
+
"description": "Additional props are passed to the underlying ReferenceLine component. Details can be found here: https://recharts.org/en-US/api/ReferenceLine"
|
|
511
|
+
}
|
|
512
|
+
]
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"heading": "Legend",
|
|
516
|
+
"rows": [
|
|
517
|
+
{
|
|
518
|
+
"name": "iconType",
|
|
519
|
+
"type": "String",
|
|
520
|
+
"default": "square",
|
|
521
|
+
"description": "Defines the type of the leading icon."
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "iconSize",
|
|
525
|
+
"type": "String",
|
|
526
|
+
"default": "12",
|
|
527
|
+
"description": "Defines the size of the leading icon."
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"name": "layout",
|
|
531
|
+
"type": "String",
|
|
532
|
+
"default": "vertical",
|
|
533
|
+
"description": "Defines the layout of the legend."
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"name": "align",
|
|
537
|
+
"type": "String",
|
|
538
|
+
"default": "right",
|
|
539
|
+
"description": "Defines the alignment of the legend relative to the chart."
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"name": "verticalAlign",
|
|
543
|
+
"type": "String",
|
|
544
|
+
"default": "top",
|
|
545
|
+
"description": "Defines the vertical alignment of the legend relative to the chart."
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"name": "...",
|
|
549
|
+
"type": "",
|
|
550
|
+
"default": "",
|
|
551
|
+
"description": "Additional props are passed to the underlying legend component. Details can be found here: https://recharts.org/en-US/api/Legend"
|
|
552
|
+
}
|
|
553
|
+
]
|
|
554
|
+
}
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
]
|
|
558
|
+
}
|
|
559
|
+
]
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
"see_also": []
|
|
563
|
+
}
|