No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:

  1. Missing Context/Providers: You can use decorators to supply specific contexts or providers, which are sometimes necessary for components to render correctly. For detailed instructions on using decorators, please visit the Decorators documentation.
  2. Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary settings for loaders, plugins, and other relevant parameters. You can find step-by-step guides for configuring Webpack or Vite with Storybook.
  3. Missing Environment Variables: Your Storybook may require specific environment variables to function as intended. You can set up custom environment variables as outlined in the Environment Variables documentation.

WebChartQuery

Chart query object inspired by JSAPI Query class.

Properties

PropertyDetails
outFields

Attribute fields to include in the FeatureSet. Will have an effect on chart with no aggregation.


The type of this property is: array.

where

Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values.


The type of this property is: string.

groupByFieldsForStatistics

An array of fields which determine how the base data is grouped. Only one groupBy Field is supported, but ArcGIS JSAPI

supports multiple groupBy fields

. While splitting by multiple group-by fields is possible, it is not being done because of the number of series it will give rise to (equal to the length of the Cartesian product set) possibly making the visualization hard to interpret.


The type of this property is: array. Maximum length: 1.

outStatistics

Represents an array of statistics definitions which dictate how a particular field should be aggregated. Refer to

JSAPI Statistics Definition class

for more info.


The type of this property is: array.

orderByFields

Represents the sorting order of the output result. More info present in JSAPI docs.
The format of any entry in this array is field_name sorting_order. When sorting_order is not defined, it is assumed to be ascending.


The type of this property is: array.

gdbVersion

Specifies the geodatabase version to display for feature service queries.


The type of this property is: string.

geometry

The geometry to apply to the spatial filter. A buffer can be applied to it by setting the properties distance and units.


Can be any of: IPoint, IPolyline, IPolygon, IPolygonWithCurves, IEnvelope, IExtent

distance

Specifies a search distance for the geometry. To be associated with the units property. For compatible layers only.


The type of this property is: number.

units

The unit for calculating the buffer distance when distance and geometry are provided.


If not specified, the unit is derived from the geometry spatial reference.


The type of this property is: string.


Must be one of the following values: feet, kilometers, meters, miles, nautical-miles, us-nautical-miles.

timeExtent

A time extent ([timestamp, timestamp]) for a temporal query against time-aware layers.


The type of this property is: array. Minimum length: 2. Maximum length: 2.

start

The zero-based index indicating where to begin retrieving features.


The type of this property is: number.

num

The number of features to retrieve.


The type of this property is: number.

returnDistinctValues

If true then the query returns distinct values based on the field(s) specified in outFields. Available for count-based aggregations only.


The type of this property is: boolean.

fetchNullValues

Indicates whether to fetch null values for them to be counted or displayed as categories on the chart.


The type of this property is: boolean.