Chart Summary
Chart summaries are used primarily in React-based Recharts diagrams to display summary information with Sage type styling.
Default
New today 6,452
Sage Component
SageChartSummary
<h3>Default</h3>
<%= sage_component SageCard, {
css_classes: "sage-chart-container",
html_attributes: {
style: "width: 200px; height: 200px",
}
} do %>
<%= sage_component SageChartSummary, {
caption: 'current',
centered: true,
chart_type: 'donut',
label: 'New today',
value: '6,452',
} %>
<% end %>
Property | Description | Type | Default |
---|---|---|---|
|
Caption to display below the value |
String |
|
|
Whether or not to center the summary within the current space (assumes this is within a |
Boolean |
|
|
Customizations for a given chart type |
|
|
|
Label to display above the value |
String |
|
|
Core value to display in the middle |
String |
|
Do
Don't