showDataAsCircle

Show data as circles instead of rectangles. Only for not stacked diagram available.

Specification

Default implementation: { showDataAsCircle : false }

Key

Name Alias Category 
showDataAsCircle show__data_as_circle Show 

Value

Allow true or false as value.

Default Validation Type 
false ^(?:true|false) Boolean 

Example A.

Draw data with circles

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 { "showDataAsCircle" : true } Object

Source Code

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

Example B.

Draw data with bars

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 { "showDataAsCircle" : false } Object

Source Code

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

Example C.

Hide average Line as show data with as points

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 { "showDataAsCircle" : true, "showAverage" : false } Object

Source Code

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