tui-rs
tui-rs copied to clipboard
feat(widgets/chart): add option to set the position of legend
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.
Checklist
- [x] I have read the contributing guidelines.
- [ ] I have added relevant tests.
- [ ] I have documented all new additions.
How add test? Create new test or modify widgets_chart_can_have_a_legend
?