How do I write a new series type that uses a custom data element?
An example of a chart type that uses a custom data element that already exists in the system is a Stock series chart. Each data element (held in a stock data set) holds four numerical values: • High • Low • Open • Close These four values are encapsulated in a StockEntry class available in package org.eclipse.birt.chart.datafeed A collection or array of StockEntry instances are wrapped in a StockDataSet instance and associated with a Stock series. At runtime, a StockDataSetProcessor (associated with a Stock series via an extension point definition) is capable of performing the following functions with a StockDataSet: • Build a stock data set by parsing a comma separated list of StockEntry values • Compute the smallest value of (high, low, open, close) of all StockEntry values • Compute the largest value of (high, low, open, close) of all StockEntry values • Capable of extracting values from resultset columns and creating StockEntry instances that are fed to a StockDataSet As can be seen
An example of a chart type that uses a custom data element that already exists in the system is a Stock series chart. Each data element (held in a stock data set) holds four numerical values: a. High b. Low c. Open d. Close These four values are encapsulated in a StockEntry class available in package org.eclipse.birt.chart.datafeed A collection or array of StockEntry instances are wrapped in a StockDataSet instance and associated with a Stock series. At runtime, a StockDataSetProcessor (associated with a Stock series via an extension point definition) is capable of performing the following functions with a StockDataSet: A] Build a stock data set by parsing a comma separated list of StockEntry values B] Compute the smallest value of (high, low, open, close) of all StockEntry values C] Compute the largest value of (high, low, open, close) of all StockEntry values D] Capable of extracting values from resultset columns and creating StockEntry instances that are fed to a StockDataSet As can