Skip to content

Commit

Permalink
Merge pull request #113 from ignoreintuition/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
ignoreintuition authored Nov 1, 2018
2 parents 4171a69 + 0369452 commit eae3b87
Show file tree
Hide file tree
Showing 23 changed files with 3,782 additions and 469 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default {
### Overrides
If you need to override any of the default values of the charts (pallette colors, ticks, margins, etc) you can pass an overrides object to you chartData.

```
```JavaScript
vBarChartData: {
chartType: "vBarChart",
...
Expand All @@ -84,6 +84,20 @@ If you need to override any of the default values of the charts (pallette colors
}
},
```
### Legends
Legends are turned off by default. You can add a legend to a chart by including a legends objects in your chartData as such:

```JavaScript
chartData: {
chartType: "vBarChart",
...
legends: {
enabled: true,
height: 25,
width: 50,
}
}
```

### Chart types currently supported:
* barChart: a chart in which the numerical values of variables are represented by the width of rectangles of equal height.
Expand Down Expand Up @@ -115,7 +129,7 @@ If you wish to style the components of the chart you can via the selectors:

By default all charts are imported into v-chart-plugin.js. This allows all charts to share one common interface. If you are only using a few select charts in your implementation you can remove those unused charts from the import statements in the v-chart-plugin.js.

```
```JavaScript
import barChart from './import/barChart'
import vBarChart from './import/vBarChart'
import lineGraph from './import/lineGraph'
Expand Down
Loading

0 comments on commit eae3b87

Please sign in to comment.