Skip to content
Snippets Groups Projects
BeeswarmChart.vue 16.5 KiB
Newer Older
  • Learn to ignore specific revisions
  • Cee Nell's avatar
    Cee Nell committed
    <template>
    
    Cee Nell's avatar
    Cee Nell committed
      <section id="beeswarm">
        <div id="text1" class="text-container">
    
        <p v-html="t('text.components.chartText.bubbleCheckbox')"></p>
        <!-- Render the translated labels within the span elements -->
        <p>
          <span 
            :class="['highlight', 'Demographiccharacteristics', { checked: isChecked.Demographiccharacteristics }]" 
            @click="toggleCategory('Demographiccharacteristics')"
          >
            {{ t('text.components.chartText.bubbleLabels.Demographiccharacteristics') }}
          </span>,
          <span 
            :class="['highlight', 'Health', { checked: isChecked.Health }]" 
            @click="toggleCategory('Health')"
          >
            {{ t('text.components.chartText.bubbleLabels.Health') }}
          </span>, 
          <span 
            :class="['highlight', 'Livingconditions', { checked: isChecked.Livingconditions }]" 
            @click="toggleCategory('Livingconditions')"
          >
            {{ t('text.components.chartText.bubbleLabels.Livingconditions') }}
          </span>, 
          <span 
            :class="['highlight', 'Socioeconomicstatus', { checked: isChecked.Socioeconomicstatus }]" 
            @click="toggleCategory('Socioeconomicstatus')"
          >
            {{ t('text.components.chartText.bubbleLabels.Socioeconomicstatus') }}
          </span>,
          <span 
            :class="['highlight', 'Riskperception', { checked: isChecked.Riskperception }]" 
            @click="toggleCategory('Riskperception')"
          >
            {{ t('text.components.chartText.bubbleLabels.Riskperception') }}
          </span>,
          <span 
            :class="['highlight', 'Landtenure', { checked: isChecked.Landtenure }]" 
            @click="toggleCategory('Landtenure')"
          >
            {{ t('text.components.chartText.bubbleLabels.Landtenure') }}
          </span>, & 
          <span 
            :class="['highlight', 'Exposure', { checked: isChecked.Exposure }]" 
            @click="toggleCategory('Exposure')"
          >
            {{ t('text.components.chartText.bubbleLabels.Exposure') }}
          </span> 
          <p v-html="t('text.components.chartText.bubbleCheckboxEnd')"></p>
        </p>
      </div>
    
        <div id="text2" class="text-container tooltip-width">
    
          <div id="tooltip" class="tooltip"><p v-html="t('text.components.chartText.bubbleText')"></p></div>
    
          <em><p v-html="t('text.components.chartText.bubbleLegend')"></p></em>
    
    Cee Nell's avatar
    Cee Nell committed
        <div id="beeswarm-chart-container">
        </div>
        <div id="text2" class="text-container tooltip-width">
    
          <em><p v-html="t('text.components.chartText.bubbleYaxis')"></p></em>
    
    Cee Nell's avatar
    Cee Nell committed
        </div>
    
    Cee Nell's avatar
    Cee Nell committed
      </section>
    </template>
    
    <script setup>
    import { onMounted, ref } from "vue";
    import * as d3 from 'd3';
    
    import { useI18n } from 'vue-i18n';
    
    const { t } = useI18n();
    
    const userLang = navigator.language || navigator.userLanguage;
    const isSpanish = userLang.startsWith('es');
    
    Cee Nell's avatar
    Cee Nell committed
    // Global variables 
    const publicPath = import.meta.env.BASE_URL;
    const data = ref([]);
    
    // Set up SVG
    let svg;
    const height = 600;
    
    Cee Nell's avatar
    Cee Nell committed
    const margin = { top: 40, right: 20, bottom: 40, left: 40 };
    
    Cee Nell's avatar
    Cee Nell committed
    
    const isChecked = ref({
      Demographiccharacteristics: true,
      Health: true,
      Livingconditions: true,
      Socioeconomicstatus: true,
      Riskperception: true,
      Landtenure: true,
      Exposure: true
    });
    
    // Set colors for bubble charts
    const dimensionColors = {
    
    Cee Nell's avatar
    Cee Nell committed
      Demographiccharacteristics: "#092734",
      Landtenure: "#1B695F",
      Livingconditions: "#4BAFA3",
      Socioeconomicstatus: "#FF734D",
    
    Cee Nell's avatar
    Cee Nell committed
      Health: "#4B1B1B",
    
    Cee Nell's avatar
    Cee Nell committed
      Riskperception: "#365EB5",
      Exposure: "#FFA600"
    
    Cee Nell's avatar
    Cee Nell committed
    };
    
    const patternId = 'pattern-stripe';
    
    // bar chart patterning and fills
    const legendData = [
    
    Cee Nell's avatar
    Cee Nell committed
      { name: 'Positive', color: dimensionColors['Demographiccharacteristics'] },
      { name: 'Negative', color: 'white', stroke: dimensionColors['Demographiccharacteristics'] },
      { name: 'Unknown', pattern: true, color: `url(#pattern-stripe)`, stroke: dimensionColors['Demographiccharacteristics'] }
    ];
    
    // create legend for stack bar charts
    function createPattern() {
      const svgDefs = d3.select('body')
    
    Cee Nell's avatar
    Cee Nell committed
        .append('svg')
    
    Cee Nell's avatar
    Cee Nell committed
        .attr('width', 0)
        .attr('height', 0)
        .append('defs');
    
    Cee Nell's avatar
    Cee Nell committed
    
    
    Cee Nell's avatar
    Cee Nell committed
      const pattern = svgDefs.append('pattern')
    
        .attr('id', patternId)
    
    Cee Nell's avatar
    Cee Nell committed
        .attr('patternUnits', 'userSpaceOnUse')
        .attr('width', 8)
        .attr('height', 8);
    
      pattern.append('rect')
        .attr('width', 8)
        .attr('height', 8)
        .attr('fill', 'white');
    
      pattern.append('path')
        .attr('d', 'M-2,2 l4,-4 M0,8 l8,-8 M6,10 l4,-4')
        .attr('stroke', dimensionColors['Demographiccharacteristics'])
        .attr('stroke-width', 3);
    
    }
    function createLegend() {
    
      const keyW = 35;
    
      const keyH = 12;
    
      createPattern();
    
    Cee Nell's avatar
    Cee Nell committed
    
      legendData.forEach(d => {
        const legend = d3.select(`.${d.name.toLowerCase()}`)
          .append('svg')
          .attr('width', keyW + 5)
          .attr('height', keyH);
    
        legend.append('rect')
          .attr('x', 4)
          .attr('y', 0)
          .attr('width', keyW)
          .attr('height', keyH)
          .style('fill', d.pattern ? d.color : d.color)
          .style('stroke', d.stroke ? d.stroke : 'none')
    
          .style('stroke-width', d.stroke ? 2 : 0);
    
    Cee Nell's avatar
    Cee Nell committed
      });
    
    Cee Nell's avatar
    Cee Nell committed
    }
    
    Cee Nell's avatar
    Cee Nell committed
    
    // Load data and then make chart
    onMounted(async () => {
      try {
    
        data.value = await loadJsonData('determinant_uncertainty.json');
    
    Cee Nell's avatar
    Cee Nell committed
        if (data.value.length > 0) {
          createBeeswarmChart();
    
          createLegend();
    
    Cee Nell's avatar
    Cee Nell committed
        } else {
          console.error('Error loading data');
    
    Cee Nell's avatar
    Cee Nell committed
        }
    
    Cee Nell's avatar
    Cee Nell committed
      } catch (error) {
        console.error('Error during component mounting', error);
    
    async function loadJsonData(fileName) {
    
    Cee Nell's avatar
    Cee Nell committed
      try {
    
        const loadedData = await d3.json(publicPath + fileName);
        return loadedData;
    
    Cee Nell's avatar
    Cee Nell committed
      } catch (error) {
        console.error(`Error loading data from ${fileName}`, error);
        return [];
      }
    }
    
    function createBeeswarmChart() {
    
    Cee Nell's avatar
    Cee Nell committed
      // Remove any existing SVG element
      d3.select('#beeswarm-chart-container').select('svg').remove();
      
      // Get dynamic dimensions to draw chart
      const containerWidth = document.getElementById('beeswarm-chart-container').offsetWidth;
    
    Cee Nell's avatar
    Cee Nell committed
      const containerHeight = window.innerWidth <= 700 ? window.innerHeight * 0.5 : 600;
    
      const margin = window.innerWidth <= 700 ? { top: 40, right: 10, bottom: 40, left: 10 } : { top: 40, right: 20, bottom: 40, left: 40 };
    
    Cee Nell's avatar
    Cee Nell committed
      const width = containerWidth - margin.left - margin.right;
      
    
    Cee Nell's avatar
    Cee Nell committed
      svg = d3
        .select('#beeswarm-chart-container')
        .append('svg')
        .attr('class', 'beeswarmSvg')
    
    Cee Nell's avatar
    Cee Nell committed
        .attr('viewBox', `0 0 ${containerWidth} ${containerHeight}`)
        .attr('preserveAspectRatio', 'xMidYMid meet')
    
        .style('width', '80%')
    
    Cee Nell's avatar
    Cee Nell committed
        .style('height', 'auto');
    
    Cee Nell's avatar
    Cee Nell committed
    
      const yScale = d3.scaleLinear()
        .domain([40, d3.max(data.value, d => d.level_agreement)])
    
    Cee Nell's avatar
    Cee Nell committed
        .range([containerHeight - margin.bottom, margin.top]);
    
    Cee Nell's avatar
    Cee Nell committed
    
      // Set radius based on evidence value
      const radiusScale = d3.scaleLinear()
        .domain([d3.min(data.value, d => d.evidence_val), d3.max(data.value, d => d.evidence_val)])
    
        .range(window.innerWidth <= 700 ? [8, 40] : [10, 70]);
    
    Hayley Corson-Dosch's avatar
    Hayley Corson-Dosch committed
      // append y axis
      svg.append('g')
        .attr("transform", "translate(50, 0)")
        .call(d3.axisLeft(yScale)
          .ticks(5)
          .tickFormat(d => d + '%'))
        .attr("stroke-width", 2)
        .attr("font-size", 18);
    
    Cee Nell's avatar
    Cee Nell committed
    
      // Add label to y axis
      svg.append('text')
    
        .attr("class", "yLabel")
        .attr("text-anchor", "left")
    
    Cee Nell's avatar
    Cee Nell committed
        .attr("font-weight", 700)
    
    Cee Nell's avatar
    Cee Nell committed
        .attr("transform", `translate(${margin.left}, ${margin.top / 2})`)
    
        .text(t('text.components.chartText.bubbleYlabelMax'));
    
    Cee Nell's avatar
    Cee Nell committed
    
    
    Cee Nell's avatar
    Cee Nell committed
      svg.append('text')
        .attr("class", "yLabel")
        .attr("text-anchor", "left")
        .attr("font-weight", 700)
    
    Cee Nell's avatar
    Cee Nell committed
        .attr("transform", `translate(${margin.left}, ${containerHeight - (margin.bottom / 2) + 10})`)
    
        .text(t('text.components.chartText.bubbleYlabelMin'));
    
    Cee Nell's avatar
    Cee Nell committed
      // Set forces
    
    Cee Nell's avatar
    Cee Nell committed
      const forceY = d3.forceY(d => yScale(d.level_agreement)).strength(0.9);
      const forceX = d3.forceX(margin.left + (width / 2)).strength(0.1);
    
    Cee Nell's avatar
    Cee Nell committed
      const forceCollide = d3.forceCollide(d => radiusScale(d.evidence_val) + 2).iterations(20);
      const forceManyBody = d3.forceManyBody().strength(1);
    
      const bubbles = svg
    
    Cee Nell's avatar
    Cee Nell committed
        .selectAll('.bubble')
        .data(data.value)
        .enter()
        .append('circle')
        .attr('class', 'bubble')
        .attr('r', d => radiusScale(d.evidence_val))
        .style('fill', d => dimensionColors[d.dimension.replace(' ', '')])
        .on('mouseover', handleMouseOver)
        .on('mouseout', handleMouseOut);
    
    Cee Nell's avatar
    Cee Nell committed
    
      // Run simulation
    
    Hayley Corson-Dosch's avatar
    Hayley Corson-Dosch committed
      d3.forceSimulation()
    
    Cee Nell's avatar
    Cee Nell committed
        .force('x', forceX)
        .force('y', forceY)
        .force('collide', forceCollide)
        .force('charge', forceManyBody)
        .nodes(data.value)
        .on('tick', ticked)
        .alpha(0.75)
        .alphaDecay(0.03);
    
      function ticked() {
        bubbles
          .attr("cx", d => Math.max(margin.left + radiusScale(d.evidence_val), Math.min(width - margin.right - radiusScale(d.evidence_val), d.x)))
    
    Cee Nell's avatar
    Cee Nell committed
          .attr("cy", d => Math.max(radiusScale(d.evidence_val), Math.min(containerHeight - radiusScale(d.evidence_val), d.y)));
    
    Cee Nell's avatar
    Cee Nell committed
    }
    
    function toggleCategory(category) {
      isChecked.value[category] = !isChecked.value[category];
      updateChart();
    }
    
    
    Cee Nell's avatar
    Cee Nell committed
    function updateChart() {
    
    Cee Nell's avatar
    Cee Nell committed
      // Adjust height based on screen size
      const isMobile = window.innerWidth <= 700;
      const containerHeight = isMobile ? window.innerHeight * 0.50 : height;
    
    Cee Nell's avatar
    Cee Nell committed
      // Set the y scale
    
    Hayley Corson-Dosch's avatar
    Hayley Corson-Dosch committed
      d3.scaleLinear()
    
    Cee Nell's avatar
    Cee Nell committed
        .domain([40, d3.max(data.value, d => d.level_agreement)])
    
    Cee Nell's avatar
    Cee Nell committed
        .range([containerHeight - margin.bottom, margin.top]);
    
    Cee Nell's avatar
    Cee Nell committed
      // Set the radius scale based on evidence value
      const radiusScale = d3.scaleLinear()
        .domain([d3.min(data.value, d => d.evidence_val), d3.max(data.value, d => d.evidence_val)])
    
        .range(window.innerWidth <= 700 ? [8, 40] : [10, 70]);
    
    Cee Nell's avatar
    Cee Nell committed
      // Filter data based on active categories
      const activeCategories = Object.keys(isChecked.value).filter(category => isChecked.value[category]);
    
      // Select all bubbles and bind data
      const bubbles = svg.selectAll(".bubble")
        .data(data.value, d => d.id);
    
      // Update existing bubbles
      bubbles
        .attr('r', d => radiusScale(d.evidence_val))
    
        .style('fill', d => activeCategories.includes(d.dimension.replace(' ', '')) ? dimensionColors[d.dimension.replace(' ', '')] : 'rgba(217, 217, 217, 0.95)');
    
    Cee Nell's avatar
    Cee Nell committed
    
      // Add new bubbles
      bubbles.enter()
        .append('circle')
        .attr('class', 'bubble')
        .attr('r', d => radiusScale(d.evidence_val))
    
        .style('fill', d => activeCategories.includes(d.dimension.replace(' ', '')) ? dimensionColors[d.dimension.replace(' ', '')] : 'rgba(217, 217, 217, 0.95)')
    
    Cee Nell's avatar
    Cee Nell committed
        .attr('cx', d => d.x)  // Use existing x position
        .attr('cy', d => d.y)
    
    Cee Nell's avatar
    Cee Nell committed
        .on('mouseover', handleMouseOver)
        .on('mouseout', handleMouseOut)
    
    Cee Nell's avatar
    Cee Nell committed
        .merge(bubbles);
    
      // Ensure all bubbles are handled correctly
      bubbles.exit().remove();
    }
    
    Cee Nell's avatar
    Cee Nell committed
    
    
    function updatePatternColor(color) {
      d3.select(`#${patternId} path`)
        .attr('stroke', color);
    }
    
    
    Cee Nell's avatar
    Cee Nell committed
    // Tooltip functions
    
    Cee Nell's avatar
    Cee Nell committed
    function handleMouseOver(event, d) {
    
      const activeCategories = Object.keys(isChecked.value).filter(category => isChecked.value[category]);
    
      // Check if the category of the data point is toggled
      if (!activeCategories.includes(d.dimension.replace(' ', ''))) {
        return;  // Do nothing if the category is untoggled
      }
    
    
        /// Select the tooltip element
    
    Cee Nell's avatar
    Cee Nell committed
      const tooltip = d3.select('#tooltip');
    
    Cee Nell's avatar
    Cee Nell committed
      const tooltipTemplate = "{determinant} {appeared} {count} {studyLabel}" 
    
      function getTranslatedDeterminant(d) {
        return isSpanish ? d.determinant_es : d.determinant_wrapped;
      }
      const translatedDeterminant = getTranslatedDeterminant(d);
    
    
      // Dynamic values
    
      const determinant = `<strong>${translatedDeterminant}</strong>`;
    
      const count = d.evidence_val;
      const studyLabel = d.evidence_val === 1 ? t('text.components.chartText.singleStudy') : t('text.components.chartText.multipleStudies');
      const appeared = t('text.components.chartText.appeared');
    
      // Directly construct the tooltip text using a template literal
      const tooltipText = tooltipTemplate
        .replace('{determinant}', determinant)
        .replace('{appeared}', appeared)
        .replace('{count}', count)
        .replace('{studyLabel}', studyLabel);
    
      // Update the tooltip with the constructed text
    
    Cee Nell's avatar
    Cee Nell committed
      tooltip.html('')
        .append('div')
    
        .html(tooltipText);
    
    Cee Nell's avatar
    Cee Nell committed
    
    
      // Define categories in stacked bar chart
    
    Cee Nell's avatar
    Cee Nell committed
      const barData = [
        { name: 'positive', value: d.pos_related_total, stroke: dimensionColors[d.dimension.replace(' ', '')], fill: dimensionColors[d.dimension.replace(' ', '')] },
        { name: 'negative', value: d.neg_related_total, stroke: dimensionColors[d.dimension.replace(' ', '')], fill: 'white' },
    
    Cee Nell's avatar
    Cee Nell committed
        { name: 'unknown', value: d.unk_direction_total, pattern: true, stroke: dimensionColors[d.dimension.replace(' ', '')], fill: `url(#pattern-stripe)` }
    
    Cee Nell's avatar
    Cee Nell committed
      ];
    
      // Set dimensions for the bar chart
    
    Cee Nell's avatar
    Cee Nell committed
      const barWidth = 200;
      const barHeight = 15;
    
    Cee Nell's avatar
    Cee Nell committed
    
      // Create an SVG element for the bar chart
      const svgBar = tooltip.append('svg')
        .attr('width', barWidth + 10)
        .attr('height', barHeight + 10);
    
      const g = svgBar.append('g')
        .attr('transform', 'translate(8, 8)');
    
      // Create a scale for the x-axis
      const xBar = d3.scaleLinear()
        .domain([0, d3.sum(barData, d => d.value)])
        .range([0, barWidth]);
    
      // Create groups for each bar segment
      const barGroups = g.selectAll('g')
        .data(barData)
        .enter()
        .append('g');
    
    
      // Add the rectangles for the bars
    
    Cee Nell's avatar
    Cee Nell committed
      barGroups.append('rect')
        .attr('x', (d, i) => i > 0 ? xBar(d3.sum(barData.slice(0, i), d => d.value)) : 0)
        .attr('y', 0)
        .attr('width', d => xBar(d.value))
        .attr('height', barHeight)
    
    Cee Nell's avatar
    Cee Nell committed
        .style('fill', d => d.pattern ? `url(#${patternId})` : d.fill)
    
    Cee Nell's avatar
    Cee Nell committed
        .style('stroke', d => d.stroke ? d.stroke : 'none');
    
    
      updatePatternColor(dimensionColors[d.dimension.replace(' ', '')]);
    
      // add emphasis to bubbles
      d3.select(this)
        .attr('stroke', dimensionColors[d.dimension.replace(' ', '')])
        .attr('stroke-width', 8);
      
      // update colors in legend
      d3.select('#text2').select('.positive').select('rect')
    
    Cee Nell's avatar
    Cee Nell committed
        .style('fill', dimensionColors[d.dimension.replace(' ', '')]);
    
    
    Cee Nell's avatar
    Cee Nell committed
      d3.select('#text2').select('.negative').select('rect')
        .style('fill', 'white')
    
    Cee Nell's avatar
    Cee Nell committed
        .style('stroke', dimensionColors[d.dimension.replace(' ', '')]);
    
    
    Cee Nell's avatar
    Cee Nell committed
      d3.select('#text2').select('.unknown').select('rect')
        .style('fill', `url(#pattern-stripe)`)
    
    Cee Nell's avatar
    Cee Nell committed
        .style('stroke', dimensionColors[d.dimension.replace(' ', '')]);
    
    
        d3.select('#text2').select(`#${patternId} path`)
        .attr('stroke', dimensionColors[d.dimension.replace(' ', '')]);
    
    Cee Nell's avatar
    Cee Nell committed
    }
    
    function handleMouseOut() {
    
    Cee Nell's avatar
    Cee Nell committed
      const tooltip = d3.select('#tooltip');
    
      const tooltipText = t('text.components.chartText.bubbleText');
    
      // add starting text
    
      tooltip.html(tooltipText);
    
      
      // remove emphasis on bubbles
    
    Cee Nell's avatar
    Cee Nell committed
      d3.select(this)
        .attr('stroke', null)
        .attr('stroke-width', null);
    }
    
    Cee Nell's avatar
    Cee Nell committed
    </script>
    
    <style scoped lang="scss">
    
    Cee Nell's avatar
    Cee Nell committed
    $Demographiccharacteristics: var(--color-Demographiccharacteristics);
    $Landtenure: var(--color-Landtenure);
    $Livingconditions: var(--color-Livingconditions);
    $Socioeconomicstatus: var(--color-Socioeconomicstatus);
    $Health: var(--color-Health);
    $Riskperception: var(--color-Riskperception);
    $Exposure: var(--color-Exposure);
    $ThemeGrey: var(--color-themegrey);
    
    
    #beeswarm-chart-container {
    
    Cee Nell's avatar
    Cee Nell committed
      text-align: center;
      position: relative;
    
    Cee Nell's avatar
    Cee Nell committed
      max-width: 800px;
      margin: auto;
    
    }
    
    #beeswarm-chart-container svg {
    
    Cee Nell's avatar
    Cee Nell committed
      max-width: 700px;
    
    Cee Nell's avatar
    Cee Nell committed
      max-height: 100%;
      height: auto; /* Maintain aspect ratio */
    
    Cee Nell's avatar
    Cee Nell committed
      margin: auto;
    
    Cee Nell's avatar
    Cee Nell committed
      display: inline-block;
    
    Cee Nell's avatar
    Cee Nell committed
      font-weight: bold;
    }
    
    .tooltip-width {
      width: 100%; 
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .tooltip {
      opacity: 1;
      background: $ThemeGrey;
      padding: 8px;
      border-radius: 5px;
      pointer-events: none; 
      width: 100%; 
    
    Cee Nell's avatar
    Cee Nell committed
      height: 70px;
    
      text-align: center
    
    Cee Nell's avatar
    Cee Nell committed
    }
    
    .hidden {
      display: none;
    
    }
    
    .highlight {
      color: white;
      padding: 0.25px 5px;
      border-radius: 10px;
      white-space: nowrap;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.1s;
    
      &.Demographiccharacteristics {
        background-color: $Demographiccharacteristics;
    
    
      &.Landtenure {
        background-color: $Landtenure;
    
    
      &.Livingconditions {
        background-color: $Livingconditions;
    
    
      &.Socioeconomicstatus {
        background-color: $Socioeconomicstatus;
    
    
      &.Health {
        background-color: $Health;
    
    
      &.Riskperception {
        background-color: $Riskperception;
    
    
      &.Exposure {
        background-color: $Exposure;
    
    
      &:not(.checked) {
        color: black;
        background-color: $ThemeGrey;
    
    Cee Nell's avatar
    Cee Nell committed
    @media (max-width: 700px) {
        .yLabel {
    
    Cee Nell's avatar
    Cee Nell committed
          font-size: 12px; 
    
    Cee Nell's avatar
    Cee Nell committed
        }
      
        #beeswarm-chart-container {
          width: 100vw; /* Make the chart container take up 100% of the viewport width on mobile */
          height: auto; /* Make the chart container take up the full height of the screen */
        }
      
        #beeswarm-chart-container svg {
          height: 100%; /* Make the SVG fill the container height */
        }
      
        #mobile-tooltip {
          display: block; /* Show the mobile tooltip only on mobile devices */
          margin: 10px;
        }
      }
    
    
      #water-insecurity-tooltip {
        margin-left: -160px;
      }
    
    </style>