tui-rs icon indicating copy to clipboard operation
tui-rs copied to clipboard

feat(widgets/chart): add option to set the position of legend

Open lyuha opened this issue 2 years ago • 1 comments

Description

Add option to position the legend at corner. The option uses tui::layout::Corner emum that already made.

If the layout have axis title, the layout draw the legend position above x axis title or under y axis title.

Related Issue #335

Testing guidelines

Currently, not add test.

Chart example with legend position

Checklist

  • [x] I have read the contributing guidelines.
  • [ ] I have added relevant tests.
  • [ ] I have documented all new additions.

lyuha avatar May 25 '22 14:05 lyuha

How add test? Create new test or modify widgets_chart_can_have_a_legend?

lyuha avatar May 26 '22 02:05 lyuha