DataSrc:UNITA Data/Indicators/t241unito: Difference between revisions

    From UNITApedia
    No edit summary
    No edit summary
    Line 1: Line 1:
    ############ SOURCE 1: RAW JSON FOR THE GRAPH ############
    {{#echarts:option = {
    {{#get_db_data:  
      baseOption: {
    db=DW_UNITAData_Mobility
        timeline: {
    |data=jsontext=jsontext, university=university
          axisType: 'category',
    }}
          data: ['2023/2024', '2024/2025', '2025/2026'],
     
          autoPlay: false
    {{#store_external_table: DW_UNITAData_Mobility_Raw
        },
    |jsontext={{{jsontext}}}  
        tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },
    }}
        legend: { top: '5%' },
     
        grid: { top: '20%', left: '3%', right: '4%', bottom: '15%', containLabel: true },
    {{#vardefine:jsondata|{{#for_external_table:
        xAxis: { type: 'category', name: 'Type of Mobility', axisLabel: { rotate: 30, interval: 0 } },
      {{{jsontext}}}
        yAxis: { type: 'value', name: 'Participants' },
    }}}}
        series: [
     
          { name: 'Student bachelor', type: 'bar', stack: 'total' },
    ### Mobility Visualization
          { name: 'Student master', type: 'bar', stack: 'total' },
    {{#echarts:
          { name: 'Student doctorate', type: 'bar', stack: 'total' },
    width=1000px |
          { name: 'Staff academic', type: 'bar', stack: 'total' },
    height=600px |
          { name: 'Staff administrative', type: 'bar', stack: 'total' }
    option = {
        ]
      legend: { top: '5%' },
      tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },
      dataset: {
        source: [ {{#var:jsondata}} ]
       },
       },
       xAxis: { type: 'category', name: 'Type of Mobility', axisLabel: { rotate: 20, interval: 0 } },
       options: [
      yAxis: { type: 'value', name: 'Participants' },
        {
      grid: { top: '15%', left: '3%', right: '4%', bottom: '20%', containLabel: true },
          xAxis: { data: ['BIP-student mobility for studies', 'SMS-student mobility for studies', 'SMT-student mobility for traineeship', 'STA-staff mobility for teaching', 'UNITA Week meeting', 'URM-Rural Mobility', 'UVM-Virtual Mobility', 'Work Package meeting'] },
      series: [
          series: [
         { name: 'Student bachelor', type: 'bar', encode: { x: 'Type_of_mobility', y: 'Participants' }, filter: { Status_of_mobility_participant: 'Student bachelor' } },
            { data: [12, 20, 0, 0, 0, 12, 6, 0] },
        { name: 'Student master', type: 'bar', encode: { x: 'Type_of_mobility', y: 'Participants' }, filter: { Status_of_mobility_participant: 'Student master' } },
            { data: [33, 22, 1, 0, 3, 25, 15, 0] },
        { name: 'Student doctorate', type: 'bar', encode: { x: 'Type_of_mobility', y: 'Participants' }, filter: { Status_of_mobility_participant: 'Student doctorate' } },
            { data: [8, 1, 1, 0, 1, 0, 0, 1] },
         { name: 'Student Assembly member', type: 'bar', encode: { x: 'Type_of_mobility', y: 'Participants' }, filter: { Status_of_mobility_participant: 'Student Assembly member' } }
            { data: [0, 0, 0, 0, 15, 0, 0, 13] },
            { data: [0, 0, 0, 14, 7, 0, 0, 13] }
          ]
        },
         {
          xAxis: { data: ['BIP-student mobility for studies', 'Matching Event (Research, Education etc)', 'SMS-student mobility for studies', 'SMT-student mobility for traineeship', 'STA-staff mobility for teaching', 'STT-staff mobility for training', 'UNITA Week meeting', 'URM-Rural Mobility', 'UVM-Virtual Mobility', 'Work Package meeting'] },
          series: [
            { data: [44, 0, 56, 0, 0, 0, 0, 9, 13, 0] },
            { data: [75, 0, 48, 3, 0, 0, 0, 30, 17, 0] },
            { data: [4, 1, 2, 1, 0, 0, 0, 0, 2, 0] },
            { data: [0, 41, 0, 0, 28, 0, 6, 0, 0, 2] },
            { data: [0, 3, 0, 0, 5, 1, 5, 0, 0, 3] }
          ]
        },
         {
          xAxis: { data: ['Work Package meeting'] },
          series: [
            { data: [0] },
            { data: [0] },
            { data: [1] },
            { data: [9] },
            { data: [11] }
          ]
        }
       ]
       ]
    }
    }
    }}
    }}


    ---
    ############ SOURCE 2: SUMMED VIEW FOR THE DATATABLE ############
    {{#get_db_data:  
    {{#get_db_data:  
    db=DW_UNITAData_Mobility_T241Unito_sum
    db=DW_UNITAData_Mobility_T241Unito_sum
    Line 50: Line 66:
    |mobility_flux={{{mobility_flux}}}  
    |mobility_flux={{{mobility_flux}}}  
    }}
    }}
    ### Mobility Data Table
    {{#ask: [[-Has subobject::{{FULLPAGENAME}}]]
    {{#ask: [[-Has subobject::{{FULLPAGENAME}}]]
    |?academic_year
    |?academic_year

    Revision as of 08:16, 12 June 2026