Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathDefaults.fs
More file actions
Latest commit
51 lines (41 loc) · 1.73 KB
/
Copy pathDefaults.fs
File metadata and controls
51 lines (41 loc) · 1.73 KB
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
namespace Plotly.NET
openPlotly.NET
openPlotly.NET.LayoutObjects
openDynamicObj
openSystem.Runtime.InteropServices
openGiraffe.ViewEngine
/// Contains mutable global default values.
///
/// Changing these values will apply the default values to all consecutive Chart generations.
moduleDefaults =
/// The default width of the chart container in generated html files. Default: 600 (px)
let mutableDefaultWidth=600
/// The default height of the chart container in generated html files. Default: 600 (px)
let mutableDefaultHeight=600
/// The default chart config. Default: Config.init (Responsive = true)
let mutableDefaultConfig=
Config.init (Responsive =true)
let mutableDefaultDisplayOptions=
DisplayOptions.init (
DocumentTitle ="Plotly.NET Datavisualization",
DocumentDescription ="A plotly.js graph generated with Plotly.NET",
DocumentCharset ="UTF-8",
DocumentFavicon =
(link [
_id "favicon"
_rel "shortcut icon"
_type "image/png"
_href $"data:image/png;base64,{Globals.LOGO_BASE64}"
]),
PlotlyJSReference = CDN $"https://cdn.plot.ly/plotly-{Globals.PLOTLYJS_VERSION}.min.js"
)
/// The default chart template. Default: ChartTemplates.plotly
let mutableDefaultTemplate=
ChartTemplates.plotly
/// reset global defaults to the initial values
letreset()=
DefaultWidth <-600
DefaultHeight <-600
DefaultConfig <- Config.init (Responsive =true)
DefaultDisplayOptions <- DisplayOptions.initCDNOnly ()
DefaultTemplate <- ChartTemplates.plotly