Skip to main content
100%

item explorer - visualization option 1

✓ Published0🌍 Public
EEE2dev
Last edited Nov 6, 2015
Created on Oct 14, 2015

This example demonstrates how to customize the item explorer chart’s number formatting by setting a period as the thousands separator and using SI-prefix notation for tick labels. The chart, rendered via the `itemExplorerChart` function from the itemExplorer library, loads CSV data from a remote gist source and displays it in a D3.js-based visualization. The code explicitly calls `.thousandsSeparator(".")` and `.tickFormat("s")` to alter the axis and percentage displays, while the `showChart` function appends the chart to the body. The underlying data remains unchanged, showing only formatting variations.

AI-generated description

An example of the visualization options for item explorer. Each visualization option is a function which returns the itemExplorerChart object, thus it allows method chaining.

In this example, the thousands separator is set to ".", and the tick format is set to "s". The thousands separator "." causes the decimal separator (of the percentages in the info and exploration panels) to be ",". The tick format "s" refers to the SI-prefix format type.

More examples

The main example is here.

Complete list of examples:

  1. Data formatting
  1. Including data
  1. Visualization options

Similar vizzes