chore(client): tweak charts
This commit is contained in:
		@@ -10,7 +10,6 @@
 | 
			
		||||
<script lang="ts" setup>
 | 
			
		||||
import { markRaw, version as vueVersion, onMounted, onBeforeUnmount, nextTick } from 'vue';
 | 
			
		||||
import { Chart } from 'chart.js';
 | 
			
		||||
import { enUS } from 'date-fns/locale';
 | 
			
		||||
import tinycolor from 'tinycolor2';
 | 
			
		||||
import gradient from 'chartjs-plugin-gradient';
 | 
			
		||||
import * as os from '@/os';
 | 
			
		||||
@@ -114,11 +113,6 @@ async function renderChart() {
 | 
			
		||||
						maxRotation: 0,
 | 
			
		||||
						autoSkipPadding: 8,
 | 
			
		||||
					},
 | 
			
		||||
					adapters: {
 | 
			
		||||
						date: {
 | 
			
		||||
							locale: enUS,
 | 
			
		||||
						},
 | 
			
		||||
					},
 | 
			
		||||
				},
 | 
			
		||||
				y: {
 | 
			
		||||
					position: 'left',
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,6 @@
 | 
			
		||||
import { onMounted, onUnmounted, ref } from 'vue';
 | 
			
		||||
import { Chart } from 'chart.js';
 | 
			
		||||
import gradient from 'chartjs-plugin-gradient';
 | 
			
		||||
import { enUS } from 'date-fns/locale';
 | 
			
		||||
import tinycolor from 'tinycolor2';
 | 
			
		||||
import MkMiniChart from '@/components/MkMiniChart.vue';
 | 
			
		||||
import * as os from '@/os';
 | 
			
		||||
@@ -135,11 +134,6 @@ onMounted(async () => {
 | 
			
		||||
						maxRotation: 0,
 | 
			
		||||
						autoSkipPadding: 16,
 | 
			
		||||
					},
 | 
			
		||||
					adapters: {
 | 
			
		||||
						date: {
 | 
			
		||||
							locale: enUS,
 | 
			
		||||
						},
 | 
			
		||||
					},
 | 
			
		||||
					min: getDate(chartLimit).getTime(),
 | 
			
		||||
				},
 | 
			
		||||
				y: {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user