source: code/Website/data-files/scatter-line-area.txt@ 7878

Last change on this file since 7878 was 7849, checked in by dennisw, 15 years ago
File size: 3.5 KB
Line 
1{
2
3 "title":{
4 "text":"Scatter Line with Area Fill",
5 "style":"{font-size: 24px; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }"
6 },
7 "num_decimals":3,
8
9 "elements":[
10 {
11 "type": "scatter_line",
12 "colour": "#d01f3c",
13 "alpha": 0.6,
14 "border": 2,
15 "animate": 0,
16 "width": 3,
17 "line-style": { "style":"dash", "off":2 },
18 "text": "Area base is line Y=0",
19 "tip": "[#x#,#y#] #size#\nArea base is line Y=0",
20 "line-style": { "style":"solid", "off":2 },
21 "area-style": { "colour":"#b0101c", "y":0},
22 "values" : [
23 {"x": -50, "y": 80 },
24 {"x": -20, "y": 20 },
25 {"x": 0, "y": -40 },
26 {"x": 20, "y": 20 },
27 {"x": 50, "y": 80 }
28 ]
29 },
30 {
31 "type": "scatter_line",
32 "colour": "#356aa0",
33 "animate": 0,
34 "dot-size": 3,
35 "text": "Area base is line X=-80",
36 "tip": "[#x#,#y#] #size#\nArea base is line X=-80",
37 "line-style": { "style":"solid", "off":2 },
38 "area-style": { "colour":"#104a80", "alpha":0.5, "x":-80},
39 "values" : [
40 {"x": -90, "y": -80 },
41 {"x": -85, "y": -20 },
42 {"x": -80, "y": 0 },
43 {"x": -75, "y": 20 },
44 {"x": -70, "y": 80 }
45 ]
46 },
47 {
48 "type": "scatter_line",
49 "colour": "#C79810",
50 "animate": 0,
51 "dot-size": 3,
52 "text": "Area base is point (80,-60)",
53 "tip": "[#x#,#y#] #size#\nArea base is point (80,-60)",
54 "line-style": { "style":"solid", "off":2 },
55 "area-style": { "colour":"#A7780c", "x":80, "y":-60},
56 "values" : [
57 {"x": 70, "y": -50 },
58 {"x": 75, "y": -45 },
59 {"x": 85, "y": -45 },
60 {"x": 90, "y": -50 },
61 {"x": 90, "y": -70 },
62 {"x": 85, "y": -65 },
63 {"x": 75, "y": -65 },
64 {"x": 70, "y": -70 },
65 {"x": 70, "y": -50 }
66 ]
67 },
68 {
69 "type": "scatter_line",
70 "colour": "#1fd03c",
71 "animate": 0,
72 "dot-size": 3,
73 "halo-size": 1,
74 "text": "Area base is line Y=-90 with gaps",
75 "tip": "[#x#,#y#] #size#\nArea base is line Y=-90 with gaps",
76 "line-style": { "style":"solid", "off":2 },
77 "area-style": { "colour":"#10b01c", "y":-90},
78 "values" : [
79 {"x": -60, "y": -80 },
80 {"x": -40, "y": -85 },
81 {"x": null, "y": null }, // Create a gap in the chart
82 {"x": -30, "y": -85 },
83 {"x": -10, "y": -80 }
84 ]
85 },
86 {
87 "type": "scatter_line",
88 "colour": "#d03c1f",
89 "animate": 0,
90 "dot-size": 3,
91 "halo-size": 1,
92 "text": "Area base is point (80,50) with gaps",
93 "tip": "[#x#,#y#] #size#\nArea base is point (80,50) with gaps",
94 "line-style": { "style":"solid", "off":2 },
95 "area-style": { "colour":"#10b01c", "x":80, "y":50},
96 "values" : [
97 {"x": 70, "y": 80 },
98 {"x": 90, "y": 80 },
99 {"x": null, "y": null }, // Create a gap in the chart
100 {"x": 100, "y": 60 },
101 {"x": 100, "y": 40 },
102 {"x": null, "y": null }, // Create a gap in the chart
103 {"x": 90, "y": 20 },
104 {"x": 70, "y": 20 },
105 {"x": null, "y": null }, // Create a gap in the chart
106 {"x": 60, "y": 40 },
107 {"x": 60, "y": 60 }
108 ]
109 }
110 ],
111
112 "x_axis": {
113 "min": -100,
114 "max": 100,
115 "offset": 0,
116 "steps" : 10,
117 "3d" : 0,
118 "labels": { "rotate" : -30, "size": 10 }
119 },
120
121 "y_axis": {
122 "min": -100,
123 "max": 100,
124 "stroke": 2,
125 "steps" : 10,
126 "offset": 0
127 }
128}
Note: See TracBrowser for help on using the repository browser.