Skip to main content
100%

item explorer - data source - example 4

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

This example demonstrates how to display an item explorer visualization using data embedded directly within the HTML file. It shows a matrix of customer counts across combinations of four binary items, with the chart rendered using the itemExplorerChart function from the itemExplorer library. The embedded data is parsed with d3.csv.parse, then converted to numeric values via a custom convertToNumber function before being passed to the chart. This approach avoids the need for a web server, making it suitable for local file usage. The code relies on D3.js version 3.5.6 for data parsing and DOM manipulation.

AI-generated description

An example how to use item explorer with data embedded in the html file which needs to be processed before it passed on to item explorer. The resulting 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

The main example is here.

Complete list of examples:

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

Similar vizzes