ZoomCharts Documentation

NetChart.settings.data

This section is defined by the type NetChartSettingsData.

Properties

cacheSize: number
Default value: 10000
Inherited from: ItemsChartSettingsData

Count of caching items including only links and nodes.

dataFunction: (nodes: Array<string>, success: (data: NetChartDataObject) => void, fail: (result: BaseDataErrorResponse) => void) => void
Default value: null

Load more chart data.

Parameters
nodes: Array<string>

node IDs

success: (data: NetChartDataObject) => void

callback function to execute when data arrived correctly

Parameters
fail: (result: BaseDataErrorResponse) => void

callback function to execute when error occure while loading data

Parameters
format: "JSON" | "GeoJSON"
Default value: "JSON"
Inherited from: BaseSettingsData

Data loading format. Currently most charts only support JSON.

id: string
Default value: "default"
Inherited from: BaseSettingsData

Data id used for series to reference specific data source.

numberOfParallelRequests: number
Default value: 3
Inherited from: BaseSettingsData

Max number of parallel data requests to issue. More requests will result in faster loading, but might put heavy load on server.

postprocessorFunction: (data: string) => string
Default value: null
Inherited from: BaseSettingsData

Delegate that can be used to process data returned by the server for the HTTP request issued by the chart.

Parameters
data: string

The raw data received from the server.

Return value
Data type: string

The data object that will be further processed by the chart.

Inherited from: BaseSettingsData
Version 1.12.0: the value has to be an object, JSON strings are no longer accepted.

Provides the ability to embed chart data directly into the chart configuration.

This data can be complete or act as the initial data where the rest will be requested dynamically using url or dataFunction.

random: "grid" | "tree" | "uniform"
Default value: null
Inherited from: ItemsChartSettingsData

Specifies the random layout method: grid, tree, uniform. The default is uniform.

Valid values:
  • grid
  • tree
  • uniform
randomGridLinkProbability: number
Default value: 0.6
Inherited from: ItemsChartSettingsData
randomNodes: number
Default value: 0
Inherited from: ItemsChartSettingsData

Generates random data. Specify a value larger than 0 to enable generating random data.

randomTreeDensity: number
Default value: 3
Inherited from: ItemsChartSettingsData
requestMaxUnits: number
Default value: 2
Inherited from: ItemsChartSettingsData

Max number of nodes to submit in a single request.

requestTimeout: number
Default value: 40000
Inherited from: BaseSettingsData

Timeout in milliseconds for data requests. This timeout only applies to HTTP requests issued by the chart directly.

url: string
Default value: null
Inherited from: BaseSettingsData

URL that is used to load data

urlParameters: Array<{ name?: string; value?: string; }>
Inherited from: BaseSettingsData

List of extra parameters to pass with data URL.

Properties
name: string

Parameter name.

value: string

Parameter value.

X