1-
21# Steerable Parallel Coordinates in D3 (SPCD3)
32
43SPCD3 is an open-source JavaScript library which implements a
@@ -17,6 +16,7 @@ deployment can be found at
1716## Dependencies
1817
1918The SPCD3 library uses the following D3v7 modules:
19+
2020- d3-dsv
2121- d3-selection
2222- d3-drag
@@ -26,25 +26,23 @@ The SPCD3 library uses the following D3v7 modules:
2626- d3-transition
2727
2828In addition to D3, the following JavaScript libraries are used:
29- - [ Mini SVG data: URI] ( https://github.com/tigt/mini-svg-data-uri#readme ) :
30- To convert SVGs into data URIs.
31- - [ xml-formatter] ( https://github.com/chrisbottin/xml-formatter#readme ) :
32- To prettify the SVG file of the parallel coordinate plot for download.
29+
30+ - [ Mini SVG data: URI] ( https://github.com/tigt/mini-svg-data-uri#readme ) :
31+ To convert SVGs into data URIs.
32+ - [ xml-formatter] ( https://github.com/chrisbottin/xml-formatter#readme ) :
33+ To prettify the SVG file of the parallel coordinate plot for download.
3334
3435The task runner [ Gulp] ( https://gulpjs.com/ ) is used to automate
3536repeatable tasks and [ Rollup] ( https://rollupjs.org/ )
3637is used to bundle and build the library.
3738
38-
39-
4039## Getting Started
4140
4241### Prerequisites
4342
4443Open terminal and execute the following command to install all the dependencies:
4544
46-
47- ```
45+ ```
4846yarn
4947```
5048
@@ -57,6 +55,7 @@ defines four public tasks:
5755
5856` clean ` removes the existing ` dist/ ` directory in
5957order to enable a clean rebuild of the project:
58+
6059```
6160npx gulp clean
6261```
@@ -66,6 +65,7 @@ npx gulp clean
6665` cleanAll ` restores the project folder to its virgin state,
6766by deleting the existing ` dist/ ` , ` package/ ` and ` node_modules/ ` directories
6867and the ` yarn.lock ` file:
68+
6969```
7070npx gulp cleanAll
7171```
@@ -75,16 +75,19 @@ npx gulp cleanAll
7575` build ` creates a new build of the library in three formats (CJS, ESM, IIFE)
7676and stores the generated library packages into the ` dist/library/ ` folder.
7777Additionally, the example folder is copied to ` dist/example/ ` :
78+
7879```
7980npx gulp build
8081```
82+
8183To run the example, a live web server must be started in the
8284folder ` dist/example/ ` .
8385
8486<br />
8587
8688` dev ` executes the build task, and then additionally executes a private task
8789called watcher, which starts a live web server in the ` dist/example/ ` folder:
90+
8891```
8992npx gulp dev
9093```
@@ -94,18 +97,16 @@ npx gulp dev
9497Each of the public Gulp tasks can also be invoked by running the
9598equivalent yarn script defined in ` package.json ` .
9699
97-
98-
99100### Build a native desktop app
100101
101102Prerequisites: To build a native desktop app, Rust, Cargo and Tauri 2.0 needs to be installed.
102103
103104` tauri ` builds a native desktop app with Tauri 2.0 and copies the executable to ` package/ ` :
105+
104106```
105107npx gulp tauri
106108```
107109
108-
109110## Usage
110111
111112As mentioned in the beginning, an example was implemented to show how
@@ -119,8 +120,10 @@ An example application was built to illustrate the use of the SPCD3
119120library. It is described in the [ Example Application
120121Guide] ( ./README-EXAMPLE.md ) .
121122
122-
123-
123+ Note: SPCD3 includes its own [ ` reset.css ` ] ( ./src/lib/reset.css ) , which is
124+ imported by the library together with [ ` stylesheet.css ` ] ( ./src/lib/stylesheet.css ) .
125+ This means the library also applies baseline reset styles to standard HTML
126+ elements.
124127
125128## Data-Handling
126129
@@ -131,16 +134,11 @@ numerical. Three example datasets can be found in folder
131134[ data] ( ./src/example/data/ ) . Other datasets should have the same
132135structure.
133136
134-
135-
136137## License
137138
138139SPCD3 is distributed under the MIT License. See [ LICENSE] ( LICENSE ) for
139140more information.
140141
141-
142-
143-
144142## Contributors
145143
146144- Keith Andrews [ kandrews@iicm.edu ] ( mailto:kandrews@iicm.edu?subject=Rslidy )
@@ -151,5 +149,3 @@ more information.
151149
152150- Philipp Drescher, Jeremias Kleinschuster, Sebastian Schreiner, Burim Vrella
153151 InfoVis SS 2023 G1
154-
155-
0 commit comments