viewWidthOuter
Set width of the "canvas" including margin, titles etc.
Specification
Default implementation: { viewWidthOuter : 600 }
Key
Name | Alias | Category |
viewWidthOuter | view__width__outer | View |
Value
Allow positive integers beginning from 1 as value.
Default | Validation | Type |
600 | ^[1-9]d*$ | Integer |
Example A.
Set total width to: 200
Output
Open output in a blank window. Download examples as zip.
Parameters
This dataset shows the mobile google pagerank performance score for a certain website.
Value | Type | |
---|---|---|
Source | "../data/performance.json" | String |
X | "name" | String |
Y | [ "mobile" ] | Array |
Options | { "viewWidthOuter" : 200 } | Object |
Source Code
- Invoke Function
d3.statosio(
file,
"name",
[ "mobile" ],
{ "viewWidthOuter" : 200 }
)
- HTML Implementation
<!DOCTYPE html>
<head>
<title>d3.statosio - viewWidthOuter</title>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/6.2.0/d3.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/statosio/0.9/statosio.js"></script>
</head>
<body>
<script>
d3.json( "../data/performance.json" )
.then( ( file ) => {
d3.statosio(
file,
"name",
[ "mobile" ],
{ "viewWidthOuter" : 200 }
)
} )
</script>
</body>
Example B.
Set total width to: 800
Output
Open output in a blank window. Download examples as zip.
Parameters
This dataset shows the mobile google pagerank performance score for a certain website.
Value | Type | |
---|---|---|
Source | "../data/performance.json" | String |
X | "name" | String |
Y | [ "mobile" ] | Array |
Options | { "viewWidthOuter" : 800 } | Object |
Source Code
- Invoke Function
d3.statosio(
file,
"name",
[ "mobile" ],
{ "viewWidthOuter" : 800 }
)
- HTML Implementation
<!DOCTYPE html>
<head>
<title>d3.statosio - viewWidthOuter</title>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/6.2.0/d3.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/statosio/0.9/statosio.js"></script>
</head>
<body>
<script>
d3.json( "../data/performance.json" )
.then( ( file ) => {
d3.statosio(
file,
"name",
[ "mobile" ],
{ "viewWidthOuter" : 800 }
)
} )
</script>
</body>