Template:Mobility
From UNITApedia
Revision as of 10:33, 20 March 2025 by Antonio De Jesus Menchaca Martinez (talk | contribs)
This template dynamically generates a bar chart from the T241 data. Usage: Insert
|option = {
tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, legend: {}, dataset: [ { id: 'raw', dimensions: ['mobility','status','participants'], source: [[[:Template:MobilityRowInline]],Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline] }, { id: 'Student bachelor', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Student bachelor' } } }, { id: 'Student master', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Student master' } } }, { id: 'Student doctorate', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Student doctorate' } } }, { id: 'Staff academic', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Staff academic' } } }, { id: 'Staff administrative', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Staff administrative' } } }, { id: 'Researcher', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Researcher' } } } ], xAxis: { type: 'category' }, yAxis: { type: 'value' }, series: [ { name: 'Student bachelor', type: 'bar', datasetId: 'Student bachelor', encode: { x: 'mobility', y: 'participants' } }, { name: 'Student master', type: 'bar', datasetId: 'Student master', encode: { x: 'mobility', y: 'participants' } }, { name: 'Student doctorate', type: 'bar', datasetId: 'Student doctorate', encode: { x: 'mobility', y: 'participants' } }, { name: 'Staff academic', type: 'bar', datasetId: 'Staff academic', encode: { x: 'mobility', y: 'participants' } }, { name: 'Staff administrative', type: 'bar', datasetId: 'Staff administrative', encode: { x: 'mobility', y: 'participants' } }, { name: 'Researcher', type: 'bar', datasetId: 'Researcher', encode: { x: 'mobility', y: 'participants' } } ]}
on any page.
}}
|option = {
tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, legend: {}, dataset: [ { id: 'raw', dimensions: ['mobility','status','participants'], source: [[[:Template:MobilityRowInline]],Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline,Template:MobilityRowInline] }, { id: 'Student bachelor', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Student bachelor' } } }, { id: 'Student master', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Student master' } } }, { id: 'Student doctorate', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Student doctorate' } } }, { id: 'Staff academic', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Staff academic' } } }, { id: 'Staff administrative', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Staff administrative' } } }, { id: 'Researcher', fromDatasetId: 'raw', transform: { type: 'filter', config: { dimension: 'status', '=': 'Researcher' } } } ], xAxis: { type: 'category' }, yAxis: { type: 'value' }, series: [ { name: 'Student bachelor', type: 'bar', datasetId: 'Student bachelor', encode: { x: 'mobility', y: 'participants' } }, { name: 'Student master', type: 'bar', datasetId: 'Student master', encode: { x: 'mobility', y: 'participants' } }, { name: 'Student doctorate', type: 'bar', datasetId: 'Student doctorate', encode: { x: 'mobility', y: 'participants' } }, { name: 'Staff academic', type: 'bar', datasetId: 'Staff academic', encode: { x: 'mobility', y: 'participants' } }, { name: 'Staff administrative', type: 'bar', datasetId: 'Staff administrative', encode: { x: 'mobility', y: 'participants' } }, { name: 'Researcher', type: 'bar', datasetId: 'Researcher', encode: { x: 'mobility', y: 'participants' } } ]}
</includeonly>