Difference: CDOverviewChartDesign (1 vs. 6)

Revision 62013-05-28 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="CDChartDirectorDesignerAPI"

Chart Design Overview

Line: 14 to 14
 
    • Render chart SET --- TEMP 256 = /tmp/piechart.png PASS --- TEMP 256 FIELD SHARE? Y
Changed:
<
<
GOSUB 0CD .CHART RENDER
>
>
SUBR 0CD .CHART RENDER SUBPROCESS END? N FAIL 0

 
DefaultPieChart.png
Line: 60 to 62
 
    • ============================================================ SET --- TEMP 256 = /tmp/piechart.png PASS --- TEMP 256 FIELD SHARE? Y
Changed:
<
<
GOSUB 0CD .CHART RENDER
>
>
SUBR 0CD .CHART RENDER SUBPROCESS END? N FAIL 0
 


piechart.png

Added:
>
>
Also notice the use of SUBR instead of GOSUB to call the chart rendering subroutine. This is a large process and compile times/sizes will be reduced if you call it as a separate process instead of including it in your process with a GOSUB.
 

Comments

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

Revision 52011-11-25 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="CDChartDirectorDesignerAPI"

Chart Design Overview

This page describes the basic steps and related subroutine calls for creating a simple chart.

Deleted:
<
<
 

Description:

Designing a chart can be as simple as calling two subroutines - one to initialize a new chart specification (.CHART INITIALIZE) and one to render the chart (.CHART RENDER). The following example illustrates the ILF statements needed to initialize and render a default pie chart (/tmp/piechart.png) using a previously defined dataset consisting of seven data values.

Revision 42011-09-15 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="CDChartDirectorDesignerAPI"

Chart Design Overview

Line: 11 to 11
 
      *        Initialize Pie Chart
      PASS         PIE CHART                  FIELD            SHARE? N
      GOSUB    0CD .CHART INITIALIZE
Added:
>
>
    • Note: We aren't showing the steps to supply the data,
    • see the next example
 
    • Render chart SET --- TEMP 256 = /tmp/piechart.png PASS --- TEMP 256 FIELD SHARE? Y

Revision 32011-09-14 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="CDChartDirectorDesignerAPI"

Chart Design Overview

Line: 7 to 7
 

Description:

Changed:
<
<
Designing a chart can be as simple as calling two subroutines - one to initialize a new chart specification (.CHART INITIALIZE) and one to render the chart (.CHART RENDER). The following example illustrates the ILF statements needed to initialize and render a default pie chart (/tmp/piechart.png) using a previously defined dataset consisting of seven data values.
      *        Initialize Pie Chart
>
>
Designing a chart can be as simple as calling two subroutines - one to initialize a new chart specification (.CHART INITIALIZE) and one to render the chart (.CHART RENDER). The following example illustrates the ILF statements needed to initialize and render a default pie chart (/tmp/piechart.png) using a previously defined dataset consisting of seven data values.
      *        Initialize Pie Chart
  PASS PIE CHART FIELD SHARE? N
Changed:
<
<
GOSUB CHT .CHART INITIALIZE
>
>
GOSUB 0CD .CHART INITIALIZE
 
    • Render chart SET --- TEMP 256 = /tmp/piechart.png PASS --- TEMP 256 FIELD SHARE? Y
Changed:
<
<
GOSUB CHT .CHART RENDER
>
>
GOSUB 0CD .CHART RENDER
 
DefaultPieChart.png
Changed:
<
<
By adding a few additional subroutine calls to set a title, seven data values with sector labels, and a 3D view, a more useful chart can be rendered.
>
>
By adding a few additional subroutine calls to set a title, seven data values with sector labels, and a 3D view, a more useful chart can be rendered.
 
    • ============================================================
    • Create Pie Chart
    • ============================================================
    • Initialize a Pie Chart PASS PIE CHART FIELD SHARE? N
Changed:
<
<
GOSUB CHT .CHART INITIALIZE
>
>
GOSUB 0CD .CHART INITIALIZE
 
    • Set a title PASS Sales % By Day of Week FIELD SHARE? N
Changed:
<
<
GOSUB CHT .CHART SET TITLE
>
>
GOSUB 0CD .CHART SET TITLE
 
    • Set 3D view PASS 3D FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SET VIEW
>
>
GOSUB 0CD .PIE SET VIEW
 
    • Add pie sectors with day of week labels and data values PASS 25 FIELD SHARE? N PASS Monday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEXT
>
>
GOSUB 0CD .PIE SECT ADD NEXT
  PASS 14 FIELD SHARE? N PASS Tuesday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEXT
>
>
GOSUB 0CD .PIE SECT ADD NEXT
  PASS 36 FIELD SHARE? N PASS Wednesday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEXT
>
>
GOSUB 0CD .PIE SECT ADD NEXT
  PASS 2 FIELD SHARE? N PASS Thursday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEXT
>
>
GOSUB 0CD .PIE SECT ADD NEXT
  PASS 12 FIELD SHARE? N PASS Friday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEXT
>
>
GOSUB 0CD .PIE SECT ADD NEXT
  PASS 33 FIELD SHARE? N PASS Saturday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEXT
>
>
GOSUB 0CD .PIE SECT ADD NEXT
  PASS 5 FIELD SHARE? N PASS Sunday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEXT
>
>
GOSUB 0CD .PIE SECT ADD NEXT
 
    • ============================================================
    • Render chart
    • ============================================================ SET --- TEMP 256 = /tmp/piechart.png PASS --- TEMP 256 FIELD SHARE? Y
Changed:
<
<
GOSUB CHT .CHART RENDER
>
>
GOSUB 0CD .CHART RENDER
 


piechart.png

Revision 22010-04-07 - SteveFrizzell

Line: 1 to 1
 
META TOPICPARENT name="CDChartDirectorDesignerAPI"

Chart Design Overview

Line: 17 to 17
 
DefaultPieChart.png
Changed:
<
<
By adding a few additional subroutine calls to set a title, seven sector labels, and a 3D view, a more useful chart can be rendered.
      *        Initialize Pie Chart
>
>
By adding a few additional subroutine calls to set a title, seven data values with sector labels, and a 3D view, a more useful chart can be rendered.

      *        ================================================================
      *        Create Pie Chart
      *        ================================================================
      *        Initialize a Pie Chart
  PASS PIE CHART FIELD SHARE? N GOSUB CHT .CHART INITIALIZE
    • Set a title
Line: 26 to 31
 
    • Set 3D view PASS 3D FIELD SHARE? N GOSUB CHT .PIE SET VIEW
Changed:
<
<
    • Set days of week on pie sectors
>
>
    • Add pie sectors with day of week labels and data values PASS 25 FIELD SHARE? N
  PASS Monday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEW
>
>
GOSUB CHT .PIE SECT ADD NEXT PASS 14 FIELD SHARE? N
  PASS Tuesday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEW
>
>
GOSUB CHT .PIE SECT ADD NEXT PASS 36 FIELD SHARE? N
  PASS Wednesday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEW
>
>
GOSUB CHT .PIE SECT ADD NEXT PASS 2 FIELD SHARE? N
  PASS Thursday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEW
>
>
GOSUB CHT .PIE SECT ADD NEXT PASS 12 FIELD SHARE? N
  PASS Friday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEW
>
>
GOSUB CHT .PIE SECT ADD NEXT PASS 33 FIELD SHARE? N
  PASS Saturday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEW
>
>
GOSUB CHT .PIE SECT ADD NEXT PASS 5 FIELD SHARE? N
  PASS Sunday FIELD SHARE? N
Changed:
<
<
GOSUB CHT .PIE SECT ADD NEW
>
>
GOSUB CHT .PIE SECT ADD NEXT
    • ============================================================
 
    • Render chart
Added:
>
>
    • ============================================================
  SET --- TEMP 256 = /tmp/piechart.png PASS --- TEMP 256 FIELD SHARE? Y
Changed:
<
<
GOSUB CHT .CHART RENDER
>
>
GOSUB CHT .CHART RENDER
 
piechart.png

Comments

Revision 12010-04-01 - SteveFrizzell

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CDChartDirectorDesignerAPI"

Chart Design Overview

This page describes the basic steps and related subroutine calls for creating a simple chart.

Description:

Designing a chart can be as simple as calling two subroutines - one to initialize a new chart specification (.CHART INITIALIZE) and one to render the chart (.CHART RENDER). The following example illustrates the ILF statements needed to initialize and render a default pie chart (/tmp/piechart.png) using a previously defined dataset consisting of seven data values.

      *        Initialize Pie Chart
      PASS         PIE CHART                  FIELD            SHARE? N
      GOSUB    CHT .CHART INITIALIZE
      *        Render chart
      SET      --- TEMP 256                   =      /tmp/piechart.png
      PASS     --- TEMP 256                   FIELD            SHARE? Y
      GOSUB    CHT .CHART RENDER


DefaultPieChart.png

By adding a few additional subroutine calls to set a title, seven sector labels, and a 3D view, a more useful chart can be rendered.

      *        Initialize Pie Chart
      PASS         PIE CHART                  FIELD            SHARE? N
      GOSUB    CHT .CHART INITIALIZE
      *        Set a title
      PASS         Sales % By Day of Week     FIELD            SHARE? N
      GOSUB    CHT .CHART SET TITLE
      *        Set 3D view
      PASS         3D                         FIELD            SHARE? N
      GOSUB    CHT .PIE SET VIEW
      *        Set days of week on pie sectors
      PASS         Monday                     FIELD            SHARE? N
      GOSUB    CHT .PIE SECT ADD NEW
      PASS         Tuesday                    FIELD            SHARE? N
      GOSUB    CHT .PIE SECT ADD NEW
      PASS         Wednesday                  FIELD            SHARE? N
      GOSUB    CHT .PIE SECT ADD NEW
      PASS         Thursday                   FIELD            SHARE? N
      GOSUB    CHT .PIE SECT ADD NEW
      PASS         Friday                     FIELD            SHARE? N
      GOSUB    CHT .PIE SECT ADD NEW
      PASS         Saturday                   FIELD            SHARE? N
      GOSUB    CHT .PIE SECT ADD NEW
      PASS         Sunday                     FIELD            SHARE? N
      GOSUB    CHT .PIE SECT ADD NEW
      *        Render chart
      SET      --- TEMP 256                   =      /tmp/piechart.png
      PASS     --- TEMP 256                   FIELD            SHARE? Y
      GOSUB    CHT .CHART RENDER


piechart.png

Comments

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

<--/commentPlugin-->

-- SteveFrizzell - 2010-04-01

META FILEATTACHMENT attachment="DefaultPieChart.png" attr="" comment="Default Pie Chart" date="1270152497" name="DefaultPieChart.png" path="DefaultPieChart.png" size="82703" stream="DefaultPieChart.png" tmpFilename="/tmp/CkpTc1hZg4" user="SteveFrizzell" version="1"
META FILEATTACHMENT attachment="piechart.png" attr="" comment="Pie Chart" date="1270152816" name="piechart.png" path="piechart.png" size="91155" stream="piechart.png" tmpFilename="/tmp/IhLYVJ3osa" user="SteveFrizzell" version="1"
 
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