wiki-graph
The wiki-graph
component is used to display a graph from a Wikimedia tabular data page.
This helps to easily visualize data from Wikimedia tabular data pages anywhere on the web. The graph is rendered using the echarts library.
Attributes
source
: The URL of the Wikimedia tabular data page.
Examples
<wiki-graph source="https://commons.wikimedia.org/wiki/Data:COVID-19_cases_in_Santa_Clara_County,_California.tab" >
</wiki-graph>
<wiki-graph source="https://commons.wikimedia.org/wiki/Data:Bea.gov/GDP_by_state.tab">
</wiki-graph>
Features
The wiki-graph
component supports the following features:
- Interactive - The graph is interactive and supports tooltips, selection of axis, bar to line chart switching.
- Responsive - The graph is responsive and adjusts to the size of the container.
- Lazy loaded - The graph is loaded only when it is in the viewport. This helps to improve the performance of the page.
- Data can be downloaded or can be viewed as table