Template:Chart pie: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: 2017 source edit |
No edit summary Tags: Manual revert 2017 source edit |
||
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This template prepares data for display as a Chart.js doughnut chart using the [[Widget:Chartjs pie]]. | This template prepares data for display as a Chart.js doughnut chart using the [[Widget:Chartjs pie]]. | ||
<syntaxhighlight lang="wikitext"> | |||
{{#widget:Chartjs_pie | |||
|title = Test Predicted world population (millions) in 2050 | |||
|data_labels = Africa, Asia, Europe, Latin America, North America | |||
|data_series = 2478,5267,734,784,433 | |||
|data_identifier = Population (millions) | |||
|colors = #3e95cd, #8e5ea2, #3cba9f, #e8c3b9, #c45850 | |||
|legend = yes/no <!-- Default: yes --> | |||
}} | |||
</syntaxhighlight> | |||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
{{#widget:Chartjs_pie | {{#widget:Chartjs_pie | ||
|title = Test Predicted world population (millions) in 2050 | |title = Test Predicted world population (millions) in 2050 | ||
|data_labels = | |data_labels = Africa, Asia, Europe, Latin America, North America | ||
|data_series = 2478,5267,734,784,433 | |data_series = 2478,5267,734,784,433 | ||
|data_identifier = | |data_identifier = Population (millions) | ||
|colors = | |colors = #3e95cd, #8e5ea2, #3cba9f, #e8c3b9, #c45850 | ||
}} | }} | ||
</includeonly> | </includeonly> |
Latest revision as of 13:53, 19 March 2024
This template prepares data for display as a Chart.js doughnut chart using the Widget:Chartjs pie.
{{#widget:Chartjs_pie
|title = Test Predicted world population (millions) in 2050
|data_labels = Africa, Asia, Europe, Latin America, North America
|data_series = 2478,5267,734,784,433
|data_identifier = Population (millions)
|colors = #3e95cd, #8e5ea2, #3cba9f, #e8c3b9, #c45850
|legend = yes/no <!-- Default: yes -->
}}