item explorer - data source - example 2
This example demonstrates how to embed data directly within an HTML file for use with the item explorer visualization, eliminating the need for a web server. The embedded dataset, formatted as comma-separated values, describes customer counts for combinations of four binary items. The visualization is rendered using the D3.js library (version 3.5.6) and the custom `itemExplorerChart()` function, which is initialized and then appended to the body via a chained `.call()` method. This approach is suitable for offline or static-file scenarios where external data files are unavailable.
AI-generated descriptionAn example how to use item explorer with data embedded in the html file. The data is assumed to be in the required format. Note that data within html must not contain empty lines, leading spaces or tabs.
This approach can be used when no web server is available.
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