styleOtherRangeXTextRotation

Set text rotation of the x axis.

Specification

Default implementation: { styleOtherRangeXTextRotation : -45 }

Key

Name Alias Category 
styleOtherRangeXTextRotation style__other__range_x_text_rotation Style 

Value

Allow negative integers from -90 to -1 including 0 as value.

Default Validation Type 
-45 ^0|-[1-9]d* Integer 

Example A.

Set x range text label rotation to: -90

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 { "styleOtherRangeXTextRotation" : -90 } Object

Source Code

  • Invoke Function
d3.statosio( 
    file, 
    "name", 
    [ "mobile" ], 
    { "styleOtherRangeXTextRotation" : -90 }
)
  • HTML Implementation
<!DOCTYPE html>
<head>
    <title>d3.statosio - styleOtherRangeXTextRotation</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" ], 
                    { "styleOtherRangeXTextRotation" : -90 }
                )
            } )
    </script>
</body>

Example B.

Set x range text label rotation to: -20

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 { "styleOtherRangeXTextRotation" : -20 } Object

Source Code

  • Invoke Function
d3.statosio( 
    file, 
    "name", 
    [ "mobile" ], 
    { "styleOtherRangeXTextRotation" : -20 }
)
  • HTML Implementation
<!DOCTYPE html>
<head>
    <title>d3.statosio - styleOtherRangeXTextRotation</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" ], 
                    { "styleOtherRangeXTextRotation" : -20 }
                )
            } )
    </script>
</body>