Skip to content

Commit

Permalink
feat(chart): legend.visible = false to hide the legend
Browse files Browse the repository at this point in the history
  • Loading branch information
scottdickerson committed Nov 6, 2019
1 parent 3742860 commit 6461128
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/axis-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class AxisChart extends Chart {
this.model,
this.services,
[
legendComponent,
...((this.model.getOptions().legend.visible !== false) ? [ legendComponent ] :[ ]),
graphFrameComponent
],
{
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class Chart {
this.model,
this.services,
[
legendComponent,
...((this.model.getOptions().legend.visible !== false) ? [ legendComponent ] :[ ]),
graphFrameComponent
],
{
Expand Down

0 comments on commit 6461128

Please sign in to comment.