styleFontFormatSelectors

Set format of content use "Html" Syntax ("bold", "underline", "normal" etc.).

Specification

Default implementation: { styleFontFormatSelectors : ["bold", "normal"] }

Key

Name Alias Category 
styleFontFormatSelectors style__font__format__selectors Style 

Value

Allow "bold", "normal" and "underline" as value.

Default Validation Type 
["bold", "normal"] ^(?:bold|normal|underline) Array 

Example A.

Set font format of selection x range text labels to: ["normal", "bold"]

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 { "styleFontFormatSelectors" : ["normal", "bold"], "dataXSelectors" : ["Spock"] } Object

Source Code

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

Example B.

Set font format of selection x range text labels to: ["bold", "normal"]

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 { "styleFontFormatSelectors" : ["bold", "normal"], "dataXSelectors" : ["Spock"] } Object

Source Code

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