The configuration is the same as for the chart components, refer to the line-chart, bar-chart, or pie-chart examples.
Other options
bottom
The titles component will be added to the bottom of the widget.
footer
Add text to the footer of the widget.
footerAlign
Align the footer text to left, right, center.
placeholders
Specify a placeholder text to display if there is no data, for example - title: No data to display.
top
The titles component will be added to the top of the widget.
Examples and code snippets
Line-chart 2x2
In this example select the chart widget and add a component.line-chart and add a component.trend at the top to show the positive percentage trend and a component.titles at the bottom.
1# Grid-item for the jig.2children:3-type: component.grid-item
4options:5size:"2x2"6children:7type: component.jig-widget
8options:9jigId: chart-line-1_2x4
10widgetId: line1-2x4
Line-chart widget 4x4
In this example select the chart widget and add a component.line-chart and add a component.title at the top and at the bottom.
Example:
See the complete example in GitHub for the Sales performance line-chart widget.
See the complete example in GitHub for the Quarterly Company Progress.
chart-line-2_4x4.jigx
chart-line-1_4x4.jigx
grid-item
1# Grid-item for the jig.2children:3-type: component.grid-item
4options:5size:"2x2"6children:7type: component.jig-widget
8options:9jigId: chart-line-2_4x4
10widgetId: line2-4x4
line-chart widget
This example is configured using a line-chart to display in the chart widget.
Examples:
See the complete example using static data in GitHub.
See the complete example using dynamic data in GitHub.
Datasources:
See the complete datasource for static data in GitHub.
See the complete datasource for dynamic data in GitHub.
line-chart-widget (static)
line-chart-widget (dynamic)
grid-item
1# Grid-item for the static jig.2children:3-type: component.grid-item
4options:5size:"2x2"6children:7type: component.jig-widget
8options:9jigId: line-chart-widget
10widgetId: lineChartDD-4x2
Group widget with line-charts
In this example two line-chart widgets are combined in the group widget with the component.titles to add additional information.
1# Grid-item for the jig.2children:3-type: component.grid-item
4options:5size:"2x2"6children:7type: component.jig-widget
8options:9jigId: chart-pie-1_2x4
10widgetId: pie1-2x4
In this example a group widget is used to combine a chart and list widget with component.pie-chart and component.titles at the top to add additional information.
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key