Class: Shadcn::Chart::Preview
- Inherits:
-
ApplicationViewComponentPreview
- Object
- ViewComponentContrib::Preview::Base
- ApplicationViewComponentPreview
- Shadcn::Chart::Preview
- Defined in:
- app/components/shadcn/chart/preview.rb
Instance Method Summary collapse
-
#area ⇒ Object
Upstream's "Area Chart".
-
#bar ⇒ Object
Upstream's "Bar Chart - Multiple", and the first shape here with an axis under it.
-
#bar_stacked ⇒ Object
Upstream's "Bar Chart - Stacked": one bar a month, split by device.
-
#default ⇒ Object
Upstream's "Pie Chart" example, drawn here rather than by recharts.
-
#donut ⇒ Object
Upstream's "Pie Chart - Donut", and the shape most of its own examples use:
inner_radius:is a fraction of the radius. -
#line ⇒ Object
Upstream's "Line Chart - Multiple".
-
#percentages ⇒ Object
What a pie is usually asked — how much of the whole — with the share in the tooltip instead of the count.
Instance Method Details
#area ⇒ Object
Upstream's "Area Chart".
40 41 42 |
# File 'app/components/shadcn/chart/preview.rb', line 40 def area render_with_template end |
#bar ⇒ Object
Upstream's "Bar Chart - Multiple", and the first shape here with an axis under it.
25 26 27 |
# File 'app/components/shadcn/chart/preview.rb', line 25 def render_with_template end |
#bar_stacked ⇒ Object
Upstream's "Bar Chart - Stacked": one bar a month, split by device.
30 31 32 |
# File 'app/components/shadcn/chart/preview.rb', line 30 def render_with_template end |
#default ⇒ Object
Upstream's "Pie Chart" example, drawn here rather than by recharts.
7 8 9 |
# File 'app/components/shadcn/chart/preview.rb', line 7 def default render_with_template end |
#donut ⇒ Object
Upstream's "Pie Chart - Donut", and the shape most of its own examples
use: inner_radius: is a fraction of the radius.
13 14 15 |
# File 'app/components/shadcn/chart/preview.rb', line 13 def donut render_with_template end |
#line ⇒ Object
Upstream's "Line Chart - Multiple".
35 36 37 |
# File 'app/components/shadcn/chart/preview.rb', line 35 def line render_with_template end |
#percentages ⇒ Object
What a pie is usually asked — how much of the whole — with the share in the tooltip instead of the count.
19 20 21 |
# File 'app/components/shadcn/chart/preview.rb', line 19 def percentages render_with_template end |