Skip to content

Commit e816f42

Browse files
Add legend support to charts
1 parent 15f1448 commit e816f42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ class ChartComponent extends React.Component {
196196
const {options, legend, type, redraw, plugins} = this.props;
197197
const node = ReactDOM.findDOMNode(this);
198198
const data = this.memoizeDataProps();
199+
options.legend = legend;
199200

200201
this.chart_instance = new Chart(node, {
201202
type,

0 commit comments

Comments
 (0)