https://github.com/ejfox/nypd-complaint-client
https://github.com/ejfox/nypd-complaint-client
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ejfox/nypd-complaint-client
- Owner: ejfox
- Created: 2021-11-02T19:22:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-16T19:59:29.000Z (over 4 years ago)
- Last Synced: 2026-04-03T21:49:49.096Z (2 months ago)
- Language: Vue
- Size: 3.69 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nypd-complaint-client
Stamen is releasing a new Open Source framework for exploring network data. The goal is to make it easy for anyone to explore and understand as many types of network data as possible.
To use it, simply provide any network that has the following format:
- Network data is an object that contains two arrays.
- The nodes array contains all the nodes in the network, and the edges array contains all the relationships or edges in the network.
Once your data is loaded onto your webpage, you can add it to the network visualization with the following code:
```
// Basic
networkCartography({
loadFile: true,
networkData: 'data.json'
})
// Advanced
networkCartography({
domNode: 'graphContainer',
networkData: {
nodes: [{
x: the x location of the node in space
y: the y location of the node in space
sizeAttribute: defaults to "Degree" but any numeric value can be used
label: a string used to label that node
}],
edges: [{
source: the id of the relationship source
target: the id of the relationship target
weight: **optional** the weight of the relationship
}],
},
width: 900,
height: 600,
highlightNodes: []
})
```
## Examples
- A network of NYPD officer complaints
- Open source flavor network
- ??
## Internal
```
```
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).