Pattern Fills
Chart objects such as bars and symbols can be pattern filled. The use
of pattern fills allows people viewing charts printed on black and white
printers to better distinguish between data sets. The new CDL parameters
that implement pattern fills all have the same general format. This parameter
is a vector of tuples. Each tuple defines the pattern fill for a particular
data set and contains 4 attributes, (except the dialchart fill which has
5 tuples). The legal values for these attributes are defined in the following
table. Pattern fills were introduced in NetCharts 4.0.
Chart Specific Pattern Fill CDL Parameters
Background CDL Parameter for Pattern Fill
BackgroundFillPattern = (type, color1, color2, imageURL), ...; example: BackgroundFillPattern = (GRADIENTHORIZONTAL, white, blue);
|
BarChart CDL Parameter for Pattern Fill
BarFillPattern = (type, color1, color2, imageURL), ...; example: BarFillPattern = (GRADIENTHORIZONTAL, white, blue);
STACKEDGROUPED: BarFillPattern[1-50]P[1-50] =(type, color1, color2, imageURL), ...; example: BarFillPattern1P2 = (GRADIENTHORIZONTAL, white, blue);
BarRightFillPattern = (type, color1, color2, imageURL), ...; example: BarRightFillPattern = (GRADIENTHORIZONTAL, white, blue);
STACKEDGROUPED: BarRightFillPattern[1-50]P[1-50] =(type, color1, color2, imageURL), ...; example: BarRightFillPattern1P2 = (GRADIENTHORIZONTAL, white, blue);
BarTopFillPattern = (type, color1, color2, imageURL), ...; example: BarTopFillPattern = (GRADIENTHORIZONTAL, white, blue);
STACKEDGROUPED: BarTopFillPattern[1-50]P[1-50] =(type, color1, color2, imageURL), ...; example: BarTopFillPattern1P2 = (GRADIENTHORIZONTAL, white, blue);
|
BoxChart CDL Parameter for Pattern Fill
BoxFillPattern = (type, color1, color2, imageURL), ...; example: BoxFillPattern = (GRADIENTHORIZONTAL, white, blue);
|
BubbleChart CDL Parameter for Pattern Fill
BubbleFillPattern = (type, color1, color2, imageURL), ...; example: BubbleFillPattern = (GRADIENTHORIZONTAL, white, blue);
|
ComboChart CDL Parameters for Pattern Fill
BarFillPattern = (type, color1, color2, imageURL), ...; example: BarFillPattern = (GRADIENTHORIZONTAL, white, blue);
LineFillPattern = (type, color1, color2, imageURL), ...; example: LineFillPattern = (GRADIENTHORIZONTAL, white, blue);
BarRightFillPattern = (type, color1, color2, imageURL), ...; example: BarRightFillPattern = (GRADIENTHORIZONTAL, white, blue);
BarTopFillPattern = (type, color1, color2, imageURL), ...; example: BarTopFillPattern = (GRADIENTHORIZONTAL, white, blue);
|
DialChart CDL Parameters for Pattern Fill
DialFillPatterns = (name,type, color1, color2, imageURL), ...; example: DialFillPatterns = ("DialName",GRADIENTHORIZONTAL, white, blue);
DialOuterFillPattern = (type, color1, color2, imageURL); example: DialOuterFillPattern = (GRADIENTVERTICAL, teal, xfcfce9 );
Specifies the background color behind the Dial chart and inside a beveled border specified by
DialOuterBorder. If DialOuterBorder is specified and DialOuterFillPattern is NOT specified,
DialOuterFillPattern defaults to a GRADIENTVERTICAL using color1 and color2 from DialOuterBorder.
SectorFillPatterns = (name,type, color1, color2, imageURL), ...; example: SectorFillPatterns = ("SectorName",GRADIENTHORIZONTAL, white, blue);
|
LineChart CDL Parameter for Pattern Fill
LineFillPattern = (type, color1, color2, imageURL), ...; example: LineFillPattern = (GRADIENTHORIZONTAL, white, blue);
|
PieChart CDL Parameter for Pattern Fill
SliceFillPattern = (type, color1, color2, imageURL), ...; example: SliceFillPattern = (GRADIENTHORIZONTAL, white, blue);
|
StockChart CDL Parameters for Pattern Fill
BarFillPattern = (type, color1, color2, imageURL), ...; example: BarFillPattern = (GRADIENTHORIZONTAL, white, blue);
LineFillPattern = (type, color1, color2, imageURL), ...; example: LineFillPattern = (GRADIENTHORIZONTAL, white, blue);
StockFillPattern = (type, color1, color2, imageURL), ...; example: StockFillPattern = (GRADIENTHORIZONTAL, white, blue);
BarRightFillPattern = (type, color1, color2, imageURL), ...; example: BarRightFillPattern = (GRADIENTHORIZONTAL, white, blue);
BarTopFillPattern = (type, color1, color2, imageURL), ...; example: BarTopFillPattern = (GRADIENTHORIZONTAL, white, blue);
|
StripChart CDL Parameters for Pattern Fill
LineFillPattern = (type, color1, color2, imageURL), ...; example: LineFillPattern = (GRADIENTHORIZONTAL, white, blue);
|
XY Chart CDL Parameters for Patterm Fill
LineFillPattern = (type, color1, color2, imageURL), ...; example: LineFillPattern = (GRADIENTHORIZONTAL, white, blue);
|
Type |
NONE |
no pattern, do default fill, if any |
|
Built-In Patterns |
|
FSLASH |
front slash type |
|
BSLASH |
back slash type |
|
DGRID |
diagonal grid lines, (front and back slash lines) |
|
HORIZONTAL |
horizontal lines |
|
VERTICAL |
vertical lines |
|
GRID |
grid lines, (horizontal and vertical lines) |
|
Gradients |
|
GRADIENTVERTICAL |
bottom to top style gradient |
|
GRADIENTHORIZONTAL |
left to right style gradient |
|
GRADIENTFDIAG |
top right to bottom left style gradient |
|
GRADIENTBDIAG |
top left to bottom right style gradient |
|
GRADIENTRADIAL |
radial style gradient |
|
GRADIENTCENTERHORIZONTAL |
center out horizontal gradient |
|
GRADIENTCENTERVERTICAL |
center out vertical gradient |
|
Images |
|
IMAGE |
use an image specified in the optional imageURL element |
color1 |
This color is used in the following ways:
- Foreground color for patterns
- Starting color for gradients
- Ignored in images |
|
color 2 |
This color is used in the following ways:
- Background color for patterns
- Stopping color for gradients
- Ignored in images
|
|
imageURL |
The URL to an image to use as the fill |
|
|