|
Building Chart Dataset |
Top Previous Next |
|
Charts provide several generic ways of fetching tabular data from AggreGate Server context tree and using this data to build chart's dataset. This section covers chart properties that are related to fetching source data and building chart's dataset. Data-related Chart Properties This basic parameter defines what kind of data should be used to build a chart. There can be four options:
Custom Data is used in all charts. Event and Variable data types are available in XY Line Chart, XY Area Chart and XY Bar Chart. And Trending is available for the same three charts if they are a part of Mixed XY Chart. Property name: source Property type: Integer This property defines what is used to build an event-based chart. It has a tabular format. Every line in the table defines one data series to be shown on the chart. Thus, a single chart may show changes of different values, and even values calculated from the data of different events. Each data series has the following properties:
Property name: eventSeries Property type: Data Table This property defines what data is used to build a variable-based chart. It is formatted as a table. Every line in the table defines one data series to be shown on the chart. Thus, a single chart may show changes of different values, and even values calculated from data of different variables. Each data series has the following properties:
Property name: variableSeries Property type: Data Table Time unit defines resolution for event-based and variable-based charts. Only one data value per time unit is shown on the chart. For example, if time unit for Event chart is Day and several events occurred during a certain day, data for only one event for this day (the latest one) is shown on the chart. Available Time Units: Year, Quarter, Month, Week, Day, Hour, Minute and Second. Property name: timeUnit Property type: Integer INCLUDE Historical DATA This property specifies whether an event-based or variable-based chart will include historical data, i.e. events and variable value changes that occurred before the chart was built. Property name: includeHistory Property type: Boolean INCLUDE REAL-TIME DATA This property specifies whether event-based and variable-based charts include real-time data, i.e. data for changes that occur after the chart is built. If this option is enabled, the chart is updated every time a new event is registered or a variable's value is changed. Property name: includeRealtime Property type: Boolean LIMIT TIME RANGE This property is relevant for event-based and variable-based charts. If it is enabled, chart data will include only events and variable value changes that have occurred only within a certain time before the chart is built, as specified by the Time Range property. Property name: enableTimeRange Property type: Boolean TIME RANGE (IN TIME UNITS) This option is available only if Limit Time Range setting is enabled. It specifies a number of Time Units defining time range for a chart. Property name: timeRange Property type: Integer The source data table used for building custom-data-based charts. Property name: sourceData Property type: Data Table A set of expressions used to retrieve data from Source Data table records and build the resulting chart dataset. This property is also valid only for charts based on custom data. Property name: chartBindings Property type: Data Table | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||