Skip to content

docs(widgets): Add simple barchart example #1511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 24, 2024
Merged

docs(widgets): Add simple barchart example #1511

merged 1 commit into from
Nov 24, 2024

Conversation

joshka
Copy link
Member

@joshka joshka commented Nov 24, 2024

No description provided.

@joshka joshka requested a review from a team as a code owner November 24, 2024 08:57
@joshka joshka force-pushed the jm/widget-examples branch from 6df6a3f to c3f8436 Compare November 24, 2024 09:02
Copy link
Member

@orhun orhun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Liked the simplicity!

@joshka joshka force-pushed the jm/widget-examples branch from c3f8436 to ac5ab73 Compare November 24, 2024 09:04
@orhun
Copy link
Member

orhun commented Nov 24, 2024

Hmm, are we moving the other examples to ratatui-widgets as well?

Maybe sth like this:

  • ratatui-widgets: Contains widgets (examples)
  • ratatui: Demos (each one will be a Rust project)

@joshka
Copy link
Member Author

joshka commented Nov 24, 2024

Hmm, are we moving the other examples to ratatui-widgets as well?

Maybe sth like this:

* `ratatui-widgets`: Contains widgets (examples)

* `ratatui`: Demos (each one will be a Rust project)

Yep - exactly what I was thinking too.

This ends up really really nice in the docs due to scraping too. The trick is have a small method that demos the widget, with a good name.

image

Copy link
Contributor

github-actions bot commented Nov 24, 2024

🐰 Bencher Report

Branchjm/widget-examples
Testbedubuntu-latest

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds CLI flag.

Click to view all benchmark results
BenchmarkLatencynanoseconds (ns)
barchart/render/2048📈 view plot
⚠️ NO THRESHOLD
200,130.00
barchart/render/256📈 view plot
⚠️ NO THRESHOLD
132,740.00
barchart/render/64📈 view plot
⚠️ NO THRESHOLD
92,162.00
barchart/render_grouped/2048📈 view plot
⚠️ NO THRESHOLD
344,790.00
barchart/render_grouped/256📈 view plot
⚠️ NO THRESHOLD
143,410.00
barchart/render_grouped/64📈 view plot
⚠️ NO THRESHOLD
131,280.00
barchart/render_horizontal/2048📈 view plot
⚠️ NO THRESHOLD
178,930.00
barchart/render_horizontal/256📈 view plot
⚠️ NO THRESHOLD
95,800.00
barchart/render_horizontal/64📈 view plot
⚠️ NO THRESHOLD
89,693.00
block/render_all_feature/100x50📈 view plot
⚠️ NO THRESHOLD
18,008.00
block/render_all_feature/200x50📈 view plot
⚠️ NO THRESHOLD
33,231.00
block/render_all_feature/256x256📈 view plot
⚠️ NO THRESHOLD
182,040.00
block/render_empty/100x50📈 view plot
⚠️ NO THRESHOLD
12,886.00
block/render_empty/200x50📈 view plot
⚠️ NO THRESHOLD
25,654.00
block/render_empty/256x256📈 view plot
⚠️ NO THRESHOLD
167,810.00
buffer/empty/16📈 view plot
⚠️ NO THRESHOLD
784.35
buffer/empty/255📈 view plot
⚠️ NO THRESHOLD
217,480.00
buffer/empty/64📈 view plot
⚠️ NO THRESHOLD
13,167.00
buffer/filled/16📈 view plot
⚠️ NO THRESHOLD
780.62
buffer/filled/255📈 view plot
⚠️ NO THRESHOLD
225,020.00
buffer/filled/64📈 view plot
⚠️ NO THRESHOLD
13,365.00
buffer/with_lines/16📈 view plot
⚠️ NO THRESHOLD
13,891.00
buffer/with_lines/255📈 view plot
⚠️ NO THRESHOLD
13,869.00
buffer/with_lines/64📈 view plot
⚠️ NO THRESHOLD
13,879.00
line_render/Center/0📈 view plot
⚠️ NO THRESHOLD
4.02
line_render/Center/10📈 view plot
⚠️ NO THRESHOLD
587.80
line_render/Center/3📈 view plot
⚠️ NO THRESHOLD
288.30
line_render/Center/4📈 view plot
⚠️ NO THRESHOLD
329.21
line_render/Center/42📈 view plot
⚠️ NO THRESHOLD
764.97
line_render/Center/6📈 view plot
⚠️ NO THRESHOLD
365.28
line_render/Center/7📈 view plot
⚠️ NO THRESHOLD
412.74
line_render/Left/0📈 view plot
⚠️ NO THRESHOLD
4.02
line_render/Left/10📈 view plot
⚠️ NO THRESHOLD
539.50
line_render/Left/3📈 view plot
⚠️ NO THRESHOLD
209.38
line_render/Left/4📈 view plot
⚠️ NO THRESHOLD
222.96
line_render/Left/42📈 view plot
⚠️ NO THRESHOLD
763.80
line_render/Left/6📈 view plot
⚠️ NO THRESHOLD
351.85
line_render/Left/7📈 view plot
⚠️ NO THRESHOLD
366.69
line_render/Right/0📈 view plot
⚠️ NO THRESHOLD
4.02
line_render/Right/10📈 view plot
⚠️ NO THRESHOLD
527.52
line_render/Right/3📈 view plot
⚠️ NO THRESHOLD
273.42
line_render/Right/4📈 view plot
⚠️ NO THRESHOLD
327.23
line_render/Right/42📈 view plot
⚠️ NO THRESHOLD
763.31
line_render/Right/6📈 view plot
⚠️ NO THRESHOLD
433.42
line_render/Right/7📈 view plot
⚠️ NO THRESHOLD
493.32
list/render/16384📈 view plot
⚠️ NO THRESHOLD
1,216,600.00
list/render/2048📈 view plot
⚠️ NO THRESHOLD
334,570.00
list/render/64📈 view plot
⚠️ NO THRESHOLD
215,740.00
list/render_scroll_half/16384📈 view plot
⚠️ NO THRESHOLD
1,226,900.00
list/render_scroll_half/2048📈 view plot
⚠️ NO THRESHOLD
340,180.00
list/render_scroll_half/64📈 view plot
⚠️ NO THRESHOLD
153,040.00
paragraph/new/2048📈 view plot
⚠️ NO THRESHOLD
265,470.00
paragraph/new/64📈 view plot
⚠️ NO THRESHOLD
7,151.40
paragraph/new/65535📈 view plot
⚠️ NO THRESHOLD
8,371,700.00
paragraph/render/2048📈 view plot
⚠️ NO THRESHOLD
601,740.00
paragraph/render/64📈 view plot
⚠️ NO THRESHOLD
560,940.00
paragraph/render/65535📈 view plot
⚠️ NO THRESHOLD
1,642,000.00
paragraph/render_scroll_full/2048📈 view plot
⚠️ NO THRESHOLD
542,220.00
paragraph/render_scroll_full/64📈 view plot
⚠️ NO THRESHOLD
589,190.00
paragraph/render_scroll_full/65535📈 view plot
⚠️ NO THRESHOLD
1,582,300.00
paragraph/render_scroll_half/2048📈 view plot
⚠️ NO THRESHOLD
542,410.00
paragraph/render_scroll_half/64📈 view plot
⚠️ NO THRESHOLD
597,720.00
paragraph/render_scroll_half/65535📈 view plot
⚠️ NO THRESHOLD
1,588,500.00
paragraph/render_wrap/2048📈 view plot
⚠️ NO THRESHOLD
290,600.00
paragraph/render_wrap/64📈 view plot
⚠️ NO THRESHOLD
254,020.00
paragraph/render_wrap/65535📈 view plot
⚠️ NO THRESHOLD
1,481,700.00
paragraph/render_wrap_scroll_full/2048📈 view plot
⚠️ NO THRESHOLD
290,580.00
paragraph/render_wrap_scroll_full/64📈 view plot
⚠️ NO THRESHOLD
253,450.00
paragraph/render_wrap_scroll_full/65535📈 view plot
⚠️ NO THRESHOLD
1,478,900.00
rect/rect_columns_collect/16📈 view plot
⚠️ NO THRESHOLD
38.85
rect/rect_columns_collect/255📈 view plot
⚠️ NO THRESHOLD
291.80
rect/rect_columns_collect/64📈 view plot
⚠️ NO THRESHOLD
90.24
rect/rect_columns_iter/16📈 view plot
⚠️ NO THRESHOLD
9.71
rect/rect_columns_iter/255📈 view plot
⚠️ NO THRESHOLD
84.16
rect/rect_columns_iter/64📈 view plot
⚠️ NO THRESHOLD
26.19
rect/rect_positions_collect/16x16📈 view plot
⚠️ NO THRESHOLD
292.22
rect/rect_positions_collect/255x255📈 view plot
⚠️ NO THRESHOLD
60,780.00
rect/rect_positions_collect/64x64📈 view plot
⚠️ NO THRESHOLD
3,872.80
rect/rect_positions_iter/16x16📈 view plot
⚠️ NO THRESHOLD
249.10
rect/rect_positions_iter/255x255📈 view plot
⚠️ NO THRESHOLD
60,358.00
rect/rect_positions_iter/64x64📈 view plot
⚠️ NO THRESHOLD
3,813.30
rect/rect_rows_collect/16📈 view plot
⚠️ NO THRESHOLD
37.06
rect/rect_rows_collect/255📈 view plot
⚠️ NO THRESHOLD
261.56
rect/rect_rows_collect/64📈 view plot
⚠️ NO THRESHOLD
84.41
rect/rect_rows_iter/16📈 view plot
⚠️ NO THRESHOLD
7.89
rect/rect_rows_iter/255📈 view plot
⚠️ NO THRESHOLD
80.80
rect/rect_rows_iter/64📈 view plot
⚠️ NO THRESHOLD
21.53
sparkline/render/2048📈 view plot
⚠️ NO THRESHOLD
130,420.00
sparkline/render/256📈 view plot
⚠️ NO THRESHOLD
128,720.00
sparkline/render/64📈 view plot
⚠️ NO THRESHOLD
41,060.00
table/render/16384x2📈 view plot
⚠️ NO THRESHOLD
2,862,400.00
table/render/16384x4📈 view plot
⚠️ NO THRESHOLD
5,385,900.00
table/render/16384x8📈 view plot
⚠️ NO THRESHOLD
14,330,000.00
table/render/2048x2📈 view plot
⚠️ NO THRESHOLD
653,110.00
table/render/2048x4📈 view plot
⚠️ NO THRESHOLD
1,090,700.00
table/render/2048x8📈 view plot
⚠️ NO THRESHOLD
1,788,200.00
table/render/64x2📈 view plot
⚠️ NO THRESHOLD
343,450.00
table/render/64x4📈 view plot
⚠️ NO THRESHOLD
510,350.00
table/render/64x8📈 view plot
⚠️ NO THRESHOLD
579,030.00
table/render_scroll_half/16384x2📈 view plot
⚠️ NO THRESHOLD
2,869,900.00
table/render_scroll_half/16384x4📈 view plot
⚠️ NO THRESHOLD
5,478,500.00
table/render_scroll_half/16384x8📈 view plot
⚠️ NO THRESHOLD
15,099,000.00
table/render_scroll_half/2048x2📈 view plot
⚠️ NO THRESHOLD
658,980.00
table/render_scroll_half/2048x4📈 view plot
⚠️ NO THRESHOLD
1,087,400.00
table/render_scroll_half/2048x8📈 view plot
⚠️ NO THRESHOLD
1,765,900.00
table/render_scroll_half/64x2📈 view plot
⚠️ NO THRESHOLD
235,450.00
table/render_scroll_half/64x4📈 view plot
⚠️ NO THRESHOLD
341,920.00
table/render_scroll_half/64x8📈 view plot
⚠️ NO THRESHOLD
385,340.00
🐰 View full continuous benchmarking report in Bencher

@joshka joshka mentioned this pull request Nov 24, 2024
3 tasks
@joshka joshka merged commit 99ac005 into main Nov 24, 2024
32 of 33 checks passed
@joshka joshka deleted the jm/widget-examples branch November 24, 2024 09:32
This was referenced Feb 11, 2025
This was referenced Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants