PictureStyle

Modified in version 4.0

PictureStyle ( seriesIndex ;​ sourceType ;​ sourceData ;​ stackAndScaleAt )

Argument Type Range Default Note
seriesIndex int 0..10000 all
sourceType int 1..4 clipboard
sourceData str ""
stackAndScaleAt num 0..inf 0
Examples

PictureStyle(1;​file;​"images/gradient_01.png")

PictureStyle(2;​file;​"~/fills/gradient_02.png")

PictureStyle(all;​file;​"C:/Programs/Fills/Gradient003.png")

PictureStyle(1;​stream;​"iVBORw0KGgoAAAANSUhEUgAA​AEAAAABABAMA...")

Description

Instead of fill colors, images can also be used as fills. For more details, refer to Import Images. For bar charts there is also the possibility to scale and stack images by defining a scaling value via the argument stackAndScaleAt.

PICTURE_STYLE_01
1

OpenDrawing(250;​150)

2

SetThousandsSep(",")

3

ChartData(3700 3000 2300 1700 1300)

4

BarChart()

5

/* Set up styles. */

6

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

7

PictureStyle(all;​stream;​"iVBORw0KGgoAAAANSUhEUgAA​AAEAAAAKCAYAAAB10jRKAAAEJ​GlDQ1BJQ0MgUHJvZmlsZQAAOB​GFVd9v21QUPolvUqQWPyBYR4e​Kxa9VU1u5GxqtxgZJk6XtShal​6dgqJOQ6N4mpGwfb6baqT3uBN​wb8AUDZAw9IPCENBmJ72fbAtE​lThyqqSUh76MQPISbtBVXhu3Z​iJ1PEXPX6yznfOec7517bRD1f​abWaGVWIlquunc8klZOnFpSeT​YrSs9RLA9Sr6U4tkcvNEi7BFf​fO6+EdigjL7ZHu/k72I796i9z​RiSJPwG4VHX0Z+AxRzNRrtksU​vwf7+Gm3BtzzHPDTNgQCqwKXf​ZwSeNHHJz1OIT8JjtAq6xWtCL​wGPLzYZi+3YV8DGMiT4VVuG7o​iZpGzrZJhcs/hL49xtzH/Dy6b​dfTsXYNY+5yluWO4D4neK/ZUv​ok/17X0HPBLsF+vuUlhfwX4j/​rSfAJ4H1H0qZJ9dN7nR19frRT​eBt4Fe9FwpwtN+2p1MXscGLHR​9SXrmMgjONd1ZxKzpBeA71b4t​Nhj6JGoyFNp4GHgwUp9qplfmn​FW5oTdy7NamcwCI49kv6fN5IA​HgD+0rbyoBc3SOjczohbyS1dr​bq6pQdqumllRC/0ymTtej8gpb​buVwpQfyw66dqEZyxZKxtHpJn​+tZnpnEdrYBbueF9qQn93S7HQ​GGHnYP7w6L+YGHNtd1FJitqPA​R+hERCNOFi1i1alKO6RQnjKUx​L1GNjwlMsiEhcPLYTEiT9ISbN​15OY/jx4SMshe9LaJRpTvHr3C​/ybFYP1PZAfwfYrPsMBtnE6Sw​N9ib7AhLwTrBDgUKcm06FSrTf​Sj187xPdVQWOk5Q8vxAfSiIUc​7Z7xr6zY/+hpqwSyv0I0/QMTR​b7RMgBxNodTfSPqdraz/sDjzK​Brv4zu2+a2t0/HHzjd2Lbcc2s​G7GtsL42K+xLfxtUgI7YHqKlq​HK8HbCCXgjHT1cAdMlDetv4Fn​Q2lLasaOl6vmB0CMmwT/IPszS​ueHQqv6i/qluqF+oF9TfO2qEG​TumJH0qfSv9KH0nfS/9TIp0Wb​oi/SRdlb6RLgU5u++9nyXYe69​fYRPdil1o1WufNSdTTsp75Bfl​lPy8/LI8G7AUuV8ek6fkvfDsC​fbNDP0dvRh0CrNqTbV7LfEEGD​QPJQadBtfGVMWEq3QWWdufk6Z​SNsjG2PQjp3ZcnOWWing6noon​SInvi0/Ex+IzAreevPhe+Cawp​gP1/pMTMDo64G0sTCXIM+KdOn​FWRfQKdJvQzV1+Bt8OokmrdtY​2yhVX2a+qrykJfMq4Ml3VR4cV​zTQVz+UoNne4vcKLoyS+gyKO6​EHe+75Fdt0Mbe5bRIf/wjvrVm​hbqBN97RD1vxrahvBOfOYzoos​H9bq94uejSOQGkVM6sN/7HelL​4t10t9F4gPdVzydEOx83Gv+uN​xo7XyL/FtFl8z9ZAHF4bBsrEw​AAAC1JREFUCNc1xzESABAMAMF​zUfn/L5EZpSoq2y33jrIykNmw​lsgS2fGbHUmREzyxuA54W8GDm​wAAAABJRU5ErkJggg==";​1000)

8

/* Set up axes. */

9

AxisLine(all;​0)

10

AxisMajorTicks(all;​0)

11

/* Set up grid. */

12

MajorGridLineWidths(x;​y;​0.25)

13

MajorGridLineWidths(y;​x;​0)

14

CloseDrawing()

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

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

×