styleColorGridline
Set the gridline color. Use "hex" value or "html" color-names.
Specification
Default implementation: { styleColorGridline : #E5E5E5 }
Key
Name | Alias | Category |
styleColorGridline | style__color__gridline | Style |
Value
Allow hex values including short writing needs to with starting with #.
Default | Validation | Type |
"#E5E5E5" | ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$ | String |
Example A.
Set gridline value to: yellow
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 | { "styleColorGridline" : "yellow" } | Object |
Source Code
- Invoke Function
d3.statosio(
file,
"name",
[ "mobile" ],
{ "styleColorGridline" : "yellow" }
)
- HTML Implementation
<!DOCTYPE html>
<head>
<title>d3.statosio - styleColorGridline</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" ],
{ "styleColorGridline" : "yellow" }
)
} )
</script>
</body>
Example B.
Set gridline value to: #f59351
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 | { "styleColorGridline" : "#f59351" } | Object |
Source Code
- Invoke Function
d3.statosio(
file,
"name",
[ "mobile" ],
{ "styleColorGridline" : "#f59351" }
)
- HTML Implementation
<!DOCTYPE html>
<head>
<title>d3.statosio - styleColorGridline</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" ],
{ "styleColorGridline" : "#f59351" }
)
} )
</script>
</body>