src/charts/stacked-area.js
function createFakeData() {
            const numDays = diffDays(emptyDataConfig.minDate, emptyDataConfig.maxDate)
            const emptyArray = Array.apply(null, Array(numDays));

            isUsingFakeData = true;

            return [
                ...emptyArray.map((el, i) => ({
                    [dateLabel]: addDays(emptyDataConfig.minDate, i),
                    [valueLabel]: 0,
                    [keyLabel]: '1',
                })),
                ...emptyArray.map((el, i) => ({
                    [dateLabel]: addDays(emptyDataConfig.minDate, i),
                    [valueLabel]: 0,
                    [keyLabel]: '2',
                }))
            ];

        }
function createFakeData() {
            const numDays = diffDays(emptyDataConfig.minDate, emptyDataConfig.maxDate)
            const emptyArray = Array.apply(null, Array(numDays));

            isUsingFakeData = true;

            return [
                ...emptyArray.map((el, i) => ({
                    [dateLabel]: addDays(emptyDataConfig.minDate, i),
                    [valueLabel]: 0,
                    [keyLabel]: '1',
                })),
                ...emptyArray.map((el, i) => ({
                    [dateLabel]: addDays(emptyDataConfig.minDate, i),
                    [valueLabel]: 0,
                    [keyLabel]: '2',
                }))
            ];

        }
function createFakeData ( ) { const numDays = diffDays ( emptyDataConfig . minDate , emptyDataConfig . maxDate ) const emptyArray = Array . apply ( null , Array ( numDays ) ) ; isUsingFakeData = true ; return [ ... emptyArray . map ( ( el , i ) => ( { [ dateLabel ] : addDays ( emptyDataConfig . minDate , i ) , [ valueLabel ] : 0 , [ keyLabel ] : '1' , } ) ) , ... emptyArray . map ( ( el , i ) => ( { [ dateLabel ] : addDays ( emptyDataConfig . minDate , i ) , [ valueLabel ] : 0 , [ keyLabel ] : '2' , } ) ) ] ; }
Creates fake data for when data is an empty array
@return {array}      Fake data built from emptyDataConfig settings
Creates fake data for when data is an empty array