item explorer - visualization option 1
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 descriptionAn 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
Complete list of examples:
- Data formatting
- basic data structure
- basic data structure with added colors
- basic data structure with long names
- basic data structure with dimensions
- basic data structure with all column features
- Including data
- standard reference to csv file
- reference to data embedded in html file
- preprocessing csv file before passing it on
- preprocessing embedded data before passing it on
- Visualization options