"use strict";(self.webpackChunk_d3plus_docs=self.webpackChunk_d3plus_docs||[]).push([[1299],{"./helpers/configify.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function __WEBPACK_DEFAULT_EXPORT__(args,argTypes){return Object.keys(args).reduce(((acc,key)=>{const _acc=acc;return void 0!==args[key]&&void 0!==argTypes[key]&&(void 0===argTypes[key].defaultValue||"function"==typeof argTypes[key].defaultValue?argTypes[key].defaultValue!==args[key]:JSON.stringify(argTypes[key].defaultValue)!==JSON.stringify(args[key]))&&(_acc[key]=args[key]),_acc}),{})}__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__})},"./helpers/funcify.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function __WEBPACK_DEFAULT_EXPORT__(fn,str){return fn.toString=()=>str,fn.toJSON=()=>str,fn}__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__})},"./packages/core/charts/StackedArea.stories.jsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BasicExample:()=>BasicExample,HorizontalChart:()=>HorizontalChart,SharePercentages:()=>SharePercentages,SortingAreas:()=>SortingAreas,__namedExportsOrder:()=>__namedExportsOrder,default:()=>StackedArea_stories});var jsx_runtime=__webpack_require__("../../node_modules/next/dist/compiled/react/jsx-runtime.js"),Area_args=(__webpack_require__("../../node_modules/next/dist/compiled/react/index.js"),__webpack_require__("./args/core/shapes/Area.args.jsx")),d3plus_dom_full=__webpack_require__("../dom/umd/d3plus-dom.full.js"),react_0=__webpack_require__("../react/index.jsx");const StackedArea=({config})=>(0,jsx_runtime.jsx)(react_0.b4,{config}),argTypes=(0,d3plus_dom_full.assign)(Object.keys(Area_args.U).filter((k=>!k.match(/^(shape|zoom.*)$/))).reduce(((obj,k)=>(obj[k]=Area_args.U[k],obj)),{}),{});StackedArea.__docgenInfo={description:"",methods:[],displayName:"StackedArea"};var configify=__webpack_require__("./helpers/configify.js"),funcify=__webpack_require__("./helpers/funcify.js");const StackedArea_stories={title:"Core/Charts/StackedArea",component:StackedArea,argTypes,parameters:{docs:{description:{component:"Creates a stacked area plot based on an array of data."}}}},Template=args=>(0,jsx_runtime.jsx)(StackedArea,{config:(0,configify.A)(args,argTypes)}),BasicExample=Template.bind({});BasicExample.args={data:[{id:"alpha",x:4,y:7},{id:"alpha",x:5,y:25},{id:"alpha",x:6,y:13},{id:"beta",x:4,y:17},{id:"beta",x:5,y:8},{id:"beta",x:6,y:13}],groupBy:"id",x:"x",y:"y"},BasicExample.parameters={controls:{include:["x","y"]}};const HorizontalChart=Template.bind({});HorizontalChart.args={data:[{id:"alpha",x:7,y:4},{id:"alpha",x:25,y:5},{id:"alpha",x:13,y:6},{id:"beta",x:17,y:4},{id:"beta",x:8,y:5},{id:"beta",x:13,y:6}],discrete:"y",groupBy:"id",x:"x",y:"y"},HorizontalChart.parameters={controls:{include:["discrete"]}};const SharePercentages=Template.bind({});SharePercentages.args={data:[{id:"alpha",x:4,y:7},{id:"alpha",x:5,y:25},{id:"alpha",x:6,y:13},{id:"beta",x:4,y:17},{id:"beta",x:5,y:8},{id:"beta",x:6,y:13},{id:"gamma",x:4,y:10},{id:"gamma",x:5,y:18},{id:"gamma",x:6,y:5}],groupBy:"id",stackOffset:"expand",x:"x",y:"y",yConfig:{tickFormat:(0,funcify.A)((d=>`${formatAbbreviate(100*d)}%`),"d => `${formatAbbreviate(d * 100)}%`")}},SharePercentages.parameters={controls:{include:["stackOffset","yConfig"]}};const SortingAreas=Template.bind({});SortingAreas.args={data:[{id:"alpha",x:4,y:7},{id:"alpha",x:5,y:25},{id:"alpha",x:6,y:13},{id:"beta",x:4,y:17},{id:"beta",x:5,y:8},{id:"beta",x:6,y:13},{id:"gamma",x:4,y:10},{id:"gamma",x:5,y:18},{id:"gamma",x:6,y:5},{id:"delta",x:4,y:8},{id:"delta",x:5,y:12},{id:"delta",x:6,y:7}],groupBy:"id",stackOrder:["alpha","gamma","delta","beta"],x:"x",y:"y"},SortingAreas.parameters={controls:{include:["stackOrder"]}};const __namedExportsOrder=["BasicExample","HorizontalChart","SharePercentages","SortingAreas"];BasicExample.parameters={...BasicExample.parameters,docs:{...BasicExample.parameters?.docs,source:{originalSource:"args => <StackedArea config={configify(args, argTypes)} />",...BasicExample.parameters?.docs?.source}}},HorizontalChart.parameters={...HorizontalChart.parameters,docs:{...HorizontalChart.parameters?.docs,source:{originalSource:"args => <StackedArea config={configify(args, argTypes)} />",...HorizontalChart.parameters?.docs?.source}}},SharePercentages.parameters={...SharePercentages.parameters,docs:{...SharePercentages.parameters?.docs,source:{originalSource:"args => <StackedArea config={configify(args, argTypes)} />",...SharePercentages.parameters?.docs?.source}}},SortingAreas.parameters={...SortingAreas.parameters,docs:{...SortingAreas.parameters?.docs,source:{originalSource:"args => <StackedArea config={configify(args, argTypes)} />",...SortingAreas.parameters?.docs?.source}}}}}]);