Graphic Walker
Client Side
Default Configuration State of Graphic Walker

Default Configuration State of Graphic Walker

You can set the "defaultConfig" property of the GraphicWalker component to set the default configuration of the GraphicWalker.

export default function App() {
    return (
        <GraphicWalker data={data} fields={fields} defaultConfig={{
            config: {
                // Set the default configuration of the GraphicWalker
            },
            layout: {
                // Set the default layout configuration of the GraphicWalker
            }
        }} />
    );
}

Available configurations

config

PropertyTypeDefaultDescription
defaultAggregatedbooleantrueWhether to aggregate the data by default.
geomsstring[]["auto"]The geom of the chart. Only first value of this config is meaningful now, We will use it to support multi layer in the future. Available values: 'auto', 'bar', 'line', 'area', 'trail', 'point', 'circle', 'tick', 'rect', 'arc', 'text', 'boxplot', 'table'.
coordSystem'generic' | 'geographic'"generic"The coordinate system of the chart. you can set it to geographic, and you should set the geoms to ['poi'] or ['choropleth'].
limitnumber-1The limit of the data. -1 means unlimited.
foldsstring[]undefinedThe folded fields of the data. it will be used when Mesuare Values and Measure Names are in the chart.
timezoneDisplayOffsetnumberundefinedThe timezone offset of the chart.

layout

PropertyTypeDefaultDescription
showTableSummarybooleantrueWhether to show the table summary.
format{ numberFormat?: string, timeFormat?: string, normalizedNumberFormat?: string }{}The formatting of the data. We use d3-format to format the data.
primaryColorstringundefinedThe primary color of the chart.
colorPalettestringundefinedThe color palette to be used of the chart. You can view available values in here (opens in a new tab)
scale{ opacity: { rangeMax?: number; rangeMin?: number; domainMin?: number; domainMax?: number }, size: { rangeMax?: number; rangeMin?: number; domainMin?: number; domainMax?: number } }undefinedThe scale of opacity and size channel the chart.
resolve{ x?: boolean, y?: boolean, color?: boolean, opacity?: boolean, shape?: boolean, size?: boolean }{}Independence of channels in chart facets.
size{ mode: 'auto' | 'fixed' | 'full', width: number, height: number }{ mode: 'auto', width: 320, height: 200 }The size config of the chart.
useSvgbooleanfalseWhether to use SVG to render the chart.
geojsonGeojsonObjectundefinedThe geojson data of the chart.
geoKeystringundefinedThe key of the geojson data.
geoUrl{ type: 'GeoJSON' | 'TopoJSON'; url: string }undefinedThe url of the geojson data, so you don't need to pass the full data to geojson.
geoMapTileUrlstringundefinedThe custom url of the map tile. if you passed a empty string, the map tiles won't be shown.
interactiveScalebooleanfalseWhether the scale is interactive or not.
stack'none' | 'stack' | 'normalize' | 'zero' | 'center'"none"The stack mode of the chart.
showActionsbooleanfalseWhether to show the debugging actions of the chart.
zeroScalebooleantrueWhether to show the zero scale of the chart.
backgroundstringundefinedThe background color of the chart.
scaleIncludeUnmatchedChoroplethbooleanfalseWhether to include unmatched choropleth in the scale.
showAllGeoshapeInChoroplethbooleanfalseWhether to show all geoshape in the choropleth.