An open API service indexing awesome lists of open source software.

https://github.com/huytd/d3-dashboard


https://github.com/huytd/d3-dashboard

angular chart d3js

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# D3 Dashboard

Customizable Dashboard and D3 Chart Components.

![](screenshot.png)

The grid-based dashboard layout implemeted by [Gridstack](http://gridstackjs.com/).

The chart drawing components are implemented in `www/js/dashboard.directives.js`, can be use as Angular directives.

For example, this code draw a groupped bar chart:

**HTML**
```html

```

**JavaScript**
```javascript
const w = {
dataUrl: 'API URL to return data (as JSON format)',
chartName: 'Chart Name',
labels: {
x: 'X Axis Label',
y: 'Y Axis Label'
},
fitData: function(data) {
// Custom code logic to transform data if neccessary
}
};
```