FillStyle

Modified in version 4.0

FillStyle ( seriesIndex ;​ color ;​ colorVariant )

Argument Type Range Default Note
seriesIndex int 0..10000 all
color rgba 0..255 (see desc.)
colorVariant int -1..128 solid
Examples
Description

By using the FillStyle() function, each data series can be assigned a separate fill color. Series, which are not explicitly assigned a fill style, are represented in one of the default fill colors, i.e. FillColorScheme(classic).

FILL_STYLE_01
1

OpenDrawing(250;​150)

2

ChartData(3.8;​ 2.8;​ 2.2;​ 1.6;​ 0.9)

3

BarChart()

4

/* Set up styles. */

5

FillStyle(1;​red;​gray)

6

FillStyle(2;​black;​48)

7

FillStyle(3;​darkRed)

8

FillStyle(4;​gray;​shaded)

9

FillStyle(5;​#cbdb29;​solid)

10

BorderStyle(all;​none)

11

BorderStyle(1;​;​1;​red)

12

BorderStyle(2;​;​1;​gray)

13

/* Set up axes. */

14

AxisLine(all;​0)

15

AxisMajorTicks(all;​0)

16

/* Set up grid. */

17

MajorGridLineWidths(x;​y;​0.25)

18

MajorGridLineWidths(y;​x;​0)

19

CloseDrawing()

FILL_STYLE_01
FILL_STYLE_02
1

OpenDrawing(200;​200)

2

ChartData(35 23 13 9 5 3)

3

PieChart(label;​0;​50;​90)

4

/* Set up styles. */

5

FillStyle(1;​darkRed;​darkGray)

6

FillStyle(2;​black;​gray)

7

FillStyle(3;​black;​lightGray)

8

FillStyle(4;​black;​13)

9

FillStyle(5;​black;​48)

10

FillStyle(6;​black;​53)

11

BorderStyle(all;​;​1;​#888)

12

LabelStyle(1;​Verdana;​10;​plain;​#333)

13

CloseDrawing()

FILL_STYLE_02

If no series index is defined or if seriesIndex = all is set, all series are assigned the same fill style.

FILL_STYLE_03
1

OpenDrawing(200;​200)

2

ChartData(35 23 13 9 5 3)

3

PieChart(label;​0;​50;​90)

4

/* Set up styles. */

5

FillStyle(all;​none)

6

BorderStyle(all;​;​1;​#888)

7

LabelStyle(1;​Verdana;​10;​plain;​#333)

8

CloseDrawing()

FILL_STYLE_03
Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×