-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabs-js.template
85 lines (85 loc) · 1.64 KB
/
abs-js.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
var chart;
$(document).ready(function() \{
chart = new Highcharts.Chart(\{
chart: \{
renderTo: 'absPlot',
zoomType: 'xy',
defaultSeriesType: 'line',
backgroundColor : null
\},
title: \{
text: "{$abs_unicode_name}"
\},
credits: \{
enabled: true,
href: "http://omlc.org/spectra/PhotochemCAD/html/{$abs_name}.html",
text: "omlc.org",
position: \{
align:'right',
x : -15,
verticalAlign: 'bottom',
y : -60,
\}
\},
xAxis: \{
title: \{
enabled: true,
text: 'Wavelength (nm)'
\},
startOnTick: true,
endOnTick: true,
showFirstLabel: false,
showLastLabel: false,
maxPadding: 0.05,
gridLineWidth: 1,
\},
yAxis: \{
title: \{
enabled: true,
text: 'Absorption for unity concentration (m\u207B\u00B9)'
\},
startOnTick: true,
endOnTick: true,
showFirstLabel: false,
showLastLabel: false,
maxPadding: 0.05,
gridLineWidth: 1,
labels: \{ formatter: function() \{return this.value;\} \}
\},
tooltip: \{
formatter: function() \{
return this.x.toFixed(2) + 'nm, ' + this.y +'m\u207B\u00B9';
\}
\},
legend: \{
enabled:false
\},
plotOptions: \{
line: \{
lineWidth: 1,
marker: \{
enabled: false,
states: \{
hover: \{
enabled: true,
radius: 5
\}
\}
\},
shadow: false,
states: \{
hover: \{
lineWidth: 1
\}
\}
\},
\},
series: [
\{
color: 'rgba(223, 83, 83, 1.0)',
pointInterval: {$x_abs_interval},
pointStart: {$x_abs_start},
data: {$abs_js_data},
\}]
\});
\});