All Projects → BigFatDog → parcoords-es

BigFatDog / parcoords-es

Licence: MIT License
ES6 module of Syntagmatic's Parallel Coordinates

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to parcoords-es

cubism-es
ES6 module of cubism.js, based on d3v5.
Stars: ✭ 24 (-58.62%)
Mutual labels:  d3v4, d3v5
D3js doc
D3js中文文档 D3中文 📊 📈 🎉
Stars: ✭ 1,599 (+2656.9%)
Mutual labels:  d3v4, d3v5
D3vue
A D3 Plugin for VueJS
Stars: ✭ 87 (+50%)
Mutual labels:  d3v4
vue-d3-examples
vue d3 examples
Stars: ✭ 124 (+113.79%)
Mutual labels:  d3v5
React Simple Maps
Beautiful React SVG maps with d3-geo and topojson using a declarative api.
Stars: ✭ 2,360 (+3968.97%)
Mutual labels:  d3v4
Vue Visualization
Vue 结合 D3.js 进行数据可视化开发的练手案例
Stars: ✭ 125 (+115.52%)
Mutual labels:  d3v4
react-native-d3multiline-chart
Animated Android and iOS multiline/line/scatterPoint chart based on d3.js 🤘😎🤘
Stars: ✭ 43 (-25.86%)
Mutual labels:  d3v4
D3
This is the repository for my course, Learning Data Visualization with D3.js on LinkedIn Learning and Lynda.com.
Stars: ✭ 64 (+10.34%)
Mutual labels:  d3v4
k8s-graph
Visualize your Kubernetes (k8s) cluster
Stars: ✭ 23 (-60.34%)
Mutual labels:  d3v4
V Chart Plugin
Easily bind a chart to the data stored in your Vue.js components.
Stars: ✭ 188 (+224.14%)
Mutual labels:  d3v4
multi-chart
lit-element building blocks for charts and visualization (based on d3.js v5)
Stars: ✭ 24 (-58.62%)
Mutual labels:  d3v4
D3tutorial
📊📈 A D3 v6 tutorial - interactive bar chart and multiple coordinated views (MCV)
Stars: ✭ 163 (+181.03%)
Mutual labels:  d3v4
d3-symbol-extra
Additional D3 symbol types.
Stars: ✭ 16 (-72.41%)
Mutual labels:  d3v4
Npm Introspect
🔎 Introspect is a tool to traverse the NPM ecosystem and identify quality modules. Use the CLI to upload and examine your project's dependencies.
Stars: ✭ 95 (+63.79%)
Mutual labels:  d3v4
Vs
Vue Visualisation Package using d3.js and leaflet.
Stars: ✭ 157 (+170.69%)
Mutual labels:  d3v4
H1b Software Salaries
Using React and d3.js, I built a visualisation of H1B salaries in the software industry.
Stars: ✭ 81 (+39.66%)
Mutual labels:  d3v4
D3vue
D3.js vs Vue.js examples
Stars: ✭ 225 (+287.93%)
Mutual labels:  d3v4
d3-ng2-demo
Reusable visual power? A demo of using D3 version 4 with Angular 2+.
Stars: ✭ 53 (-8.62%)
Mutual labels:  d3v4
north-korea-missile-map
A map of the world using D3 and Canvas showing missile ranges
Stars: ✭ 53 (-8.62%)
Mutual labels:  d3v4
data-visualization-experiments
Various Data Visualization Works with React, d3.js
Stars: ✭ 67 (+15.52%)
Mutual labels:  d3v4

parcoords-es

ES6 module of Syntagmatic's Parallel Coordinates (aka. parcoords). This library is completely based on D3 V5 API.

Features

Please refer to Parallel Coordinates's project page for concepts and API usage

All examples of the original project has been verified. You can play with them via running:

npm install
npm run dev

API

This section only lists api that are deviated from the original parallel coordinates.

# parcoords.brushExtents(extents) supports 1D multi brushes:

1D brush <>

  .brushMode("1D-axes")
  .brushExtents({"2": [3,4]});

1D multi brush <>

  .brushMode("1D-axes-multi")
  .brushExtents({"2": [[3,4], [6,8], [10, 14]]});

when parameter extents is not provided, this function returns

const extents = parcoords.brushExtents();
// format is:
{
    extents,
    selection: {
        raw, //raw coordinate
        scaled //y-scale transformed
    }
}

# parcoords.mark([values]) allows user to permanently highlight a data element in chart

const data = [...];
const pc = ParCoords().data(data)...;
parcoords.mark(data.filter(d => d.volume > 10));

Please refer to marking demo for details

# parcoords.unmark() clears all permanently highlighted data that is added by mark([values])

# parccords.on(function(brushed, args){}) adds brush arguments to brushstart, brush, and brushend events.

parcoords.on('brushstart', function(brushed, args){
    const {
        selection: {
            raw, //raw coordinate
            scaled //y-scale transformed
        },
        node, // svg node
        axis // dimension name
    } = args;
})

Please refer to brushing with arguments demo for details

Usage

ES6

  1. Install library in your project
npm install parcoord-es --save
  1. import module
import 'parcoord-es/dist/parcoords.css';
import ParCoords from 'parcoord-es';

const chart = ParCoords()....

Standalone

parcoords.standalone.js contains all dependencies and can be used directly in your html page. Please note that only essential D3 V5 modules are bundled, your global namespace won't be polluted.

<link rel="stylesheet" type="text/css" href="./parcoords.css">
<script src="./parcoords.standalone.js"></script>

var parcoords = ParCoords()("#example")

You are free to use either D3 V3 or D3 V5 in your html. demo/superformula.html demonstrates how to use parcoords-es with d3 V3.

Development

Follow this instruction to setup development environment for parcoords-es

Prerequisites

npm

Installing

npm install

Building

npm run build

Development

Internal server will be launched, hosting all demos at localhost:3004

npm run dev

Testing (Coverage)

run all unit tests and generate test coverage report.

npm run test:cover

Built With

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Contributors

This project gets supports from open-source community. Many thanks to our contributors

Contribution Notes

Run npm run pretty before committing.

Acknowledgments

This project is based on Parallel Coordinates v0.7.0. Many thanks to parcoords contributors for such a complicated and useful D3 visualization.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].