FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Plotly.NET/src/Plotly.NET/Defaults.fs at dev · plotly/Plotly.NET · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
plotly
/
Plotly.NET
Public
Notifications
You must be signed in to change notification settings
Fork
99
Star
859
Code
Issues
42
Pull requests
3
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Plotly.NET
/
src
/
Plotly.NET
/
Defaults.fs
Copy path
More file actions
More file actions
Latest commit
History
History
History
51 lines (41 loc) · 1.73 KB
Breadcrumbs
Plotly.NET
/
src
/
Plotly.NET
/
Defaults.fs
Copy path
File metadata and controls
51 lines (41 loc) · 1.73 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
namespac
e
Plotly.NE
T
open
Plotly.
NET
open
Plotly.
NET
.
LayoutObjects
open
DynamicObj
open
System.
Runtime
.
InteropServices
open
Giraffe.
ViewEngine
/// Contains mutable global default values.
///
/// Changing these values will apply the default values to all consecutive Chart generations.
module
Defaults
=
/// The default width of the chart container in generated html files. Default: 600 (px)
let mutable
DefaultWidth
=
600
/// The default height of the chart container in generated html files. Default: 600 (px)
let mutable
DefaultHeight
=
600
/// The default chart config. Default: Config.init (Responsive = true)
let mutable
DefaultConfig
=
Config.init
(
Responsive
=
true
)
let mutable
DefaultDisplayOptions
=
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 mutable
DefaultTemplate
=
ChartTemplates.plotly
/// reset global defaults to the initial values
let
reset
()
=
DefaultWidth
<-
600
DefaultHeight
<-
600
DefaultConfig
<-
Config.init
(
Responsive
=
true
)
DefaultDisplayOptions
<-
DisplayOptions.initCDNOnly
()
DefaultTemplate
<-
ChartTemplates.plotly
Back
|
FazBrowse Home
|
New Git URL