Fix several graphs and handle unknown counties.
This commit is contained in:
		@@ -3,13 +3,19 @@
 | 
			
		||||
    <h2 class="mb-6 text-xl text-indigo-900 flex justify-between items-center">
 | 
			
		||||
      Daily Hospitalizations per 10,000 Residents
 | 
			
		||||
 | 
			
		||||
      <select v-model="chart" class="text-base m-0">
 | 
			
		||||
      <select v-model="chart" class="text-base m-0" v-if="parameters.county !== '-- Unknown --'">
 | 
			
		||||
        <option value="calendar">Calendar</option>
 | 
			
		||||
        <option value="line">Line Chart</option>
 | 
			
		||||
      </select>
 | 
			
		||||
    </h2>
 | 
			
		||||
    <JSCharting v-if="chart === 'calendar'" :options="calendarOptions"></JSCharting>
 | 
			
		||||
    <JSCharting v-if="chart === 'line'" :options="areaOptions"></JSCharting>
 | 
			
		||||
 | 
			
		||||
    <template v-if="parameters.county !== '-- Unknown --'">
 | 
			
		||||
      <JSCharting v-if="chart === 'calendar'" :options="calendarOptions"></JSCharting>
 | 
			
		||||
      <JSCharting v-if="chart === 'line'" :options="areaOptions"></JSCharting>
 | 
			
		||||
    </template>
 | 
			
		||||
    <template v-else>
 | 
			
		||||
      <div class="w-full h-full flex items-center justify-center text-2xl text-indigo-700 font-bold">No Data</div>
 | 
			
		||||
    </template>
 | 
			
		||||
  </Card>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user