Tags:
create new tag
view all tags

.CHART INITIALIZE

This subroutine is called to initialize or reinitialize a chart spec.

Usage:

      PASS         <chart_type>               FIELD            SHARE? N
      PASS         <chart_spec_name>          FIELD            SHARE? N
      GOSUB    0CD .CHART INITIALIZE
      *        Check for chart initiailization error
      IF       0CD .CHART INITIALIZE          NE

Description:

This subroutine must be the first subroutine called when defining a chart.

<chart_type> identifies the type of chart that is to be initialized. Passing this parameter is required. The valid values for <chart_type> are:

Angular Meter
Finance Chart
Linear Meter
Multi Chart
Pie Chart
Polar Chart
Pyramid Chart
Surface chart
XY Chart

<chart_spec_name> es el nombre the name which uniquely identifies the chart spec which is to be initialized. The <chart_spec_name> may be up to 30 characters in length and may contain the letters A-Z, the digits 0-9, and spaces. Passing this parameter is optional.

If the <chart_spec_name> parameter is not passed, then a chart with no name is initialized. If a chart with no name has been previously initialized, then the previously initialized chart is reinitialized clearing all previously set values.

If the <chart_spec_name> parameter is passed, then a chart with the specified name is initialized. If a chart with the specified name has been previously initialized, then the previously initialized chart is reinitialized clearing all previously set values.

The newly initialized chart become the "current" chart.

If <chart_type> is "Pie Chart", then this subroutine will associate a dataset with the newly initialized Pie Chart as follows:

  • If a "current" dataset exists,
    • then that dataset is associated with the Pie Chart;
    • otherwise, if the "default" dataset exists
      • then that dataset is associated with the Pie Chart;
      • otherwise, the "default" dataset is initialized and is associated with the Pie Chart.
When a dataset is associated with the newly initialized chart, that dataset becomes the "current" dataset.

This subroutine sets a result value in the corresponding results Token field.

Comments:

Read what other users have said about this page or add your own comments.

-- SteveFrizzell - 2010-02-15

Edit | Attach | Watch | Print version | History: r15 < r14 < r13 < r12 < r11 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r15 - 2013-02-20 - RayPelegrino
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback