Skip to content

Commit eae3b87

Browse files
Merge pull request #113 from ignoreintuition/development
Development
2 parents 4171a69 + 0369452 commit eae3b87

23 files changed

+3782
-469
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default {
7070
### Overrides
7171
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.
7272

73-
```
73+
```JavaScript
7474
vBarChartData: {
7575
chartType: "vBarChart",
7676
...
@@ -84,6 +84,20 @@ If you need to override any of the default values of the charts (pallette colors
8484
}
8585
},
8686
```
87+
### Legends
88+
Legends are turned off by default. You can add a legend to a chart by including a legends objects in your chartData as such:
89+
90+
```JavaScript
91+
chartData: {
92+
chartType: "vBarChart",
93+
...
94+
legends: {
95+
enabled: true,
96+
height: 25,
97+
width: 50,
98+
}
99+
}
100+
```
87101

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

116130
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.
117131

118-
```
132+
```JavaScript
119133
import barChart from './import/barChart'
120134
import vBarChart from './import/vBarChart'
121135
import lineGraph from './import/lineGraph'

0 commit comments

Comments
 (0)