| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (11 out of 14)

Configuring the Trend Chart Format

The trend chart format compound attribute lets you define options for the entire trend chart that you are creating. The next diagram labels the various trend chart components that you can change with the trend chart format subtable.


Access the trend chart format subtable from:

Displaying an Outer Border

The Outer-border-visible? attribute specifies whether the border is displayed. If it is, you can set its color in the Outer-border-color attribute.

The Outer-background-color determines the color of the border surrounding the data window.

Displaying a Data Window Border

The Data-window-border-visible? attribute determines whether G2 draws a border around the data window. If a border is displayed, the Data-window-border-color attribute sets its color.

The Data-window-background-color attribute specifies the background color within which all plots are displayed.

Adding a Trend Chart Legend

The Legend-visible? attribute defines whether a legend is displayed. If it is, you can set its color with the Legend-color attribute, and its position with the Legend-position attribute.

Providing a Trend Chart Title

The Title-visible? attribute specifies whether the trend chart displays a title. The text of the title is the value of the trend chart's Names attribute. If a title is displayed, you can set its color with the Title-color attribute and its position, above or below the trend chart, with the Title-position attribute.

Summarizing Trend Chart Format Attributes

The trend chart format attributes are:

Attribute Description
Outer-border-visible?
Determines whether the outer border of the trend chart is visible. The outer border is the outline drawn on the outer-most edges of a trend chart.
Allowable values:
{yes | no}
Default value:
yes


Outer-border-color
Specifies the color of the trend chart outer border. Setting this attribute has no effect if the outer border is not visible.
Allowable values:
color-name
Default value:
black


Outer-background-color
Specifies the outer background color of a trend chart, which is the area surrounding the data window.
Allowable values:
color-name
Default value:
smoke


Data-window-border-visible?
Determines whether the data window border is visible. The data window border is the line surrounding the outer-most edge of the data window.
Allowable values:
{yes | no}
Default value:
no


Data-window-border-color
Specifies the color of the data window border. Changing this value has no effect if the Data-window-border-visible? attribute is set to no.
Allowable values:
color-name
Default value:
black


Data-window-background-color
Specifies the background color of the trend chart data window.
Allowable values:
color-name
Default value:
smoke


Legend-visible?
Determines whether to display a legend for the trend chart.
Allowable values:
{yes | no}
Default value:
yes


Legend-color
Determines the color of the legend. You can display the entire legend in one color, or have the legend for each plot match the plot color (determined in the plot's Connector-format).
Allowable values:
{color-name | match plot colors}
Default value:
match plot colors


Legend-position
Determines the position of the legend, if it is visible.
Allowable values:
{below | above}
Default value:
below


Title-visible?
Determines whether to display the title of the trend chart (entered as a symbol on the trend chart's attribute table).
Allowable values:
{yes | no}
Default value:
yes


Title-color
Specifies the color of the trend chart title, if it is visible.
Allowable values:
color-name
Default value:
black


Title-position
Determines the position of the trend chart title if it is visible.
Allowable values:
{below | above}
Default value:
above

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (11 out of 14)

Copyright © 1997 Gensym Corporation, Inc.