Files
libredesk/frontend/src/components/dashboard/DashboardLineChart.vue
T
Abhinav Raut 98537825e9 feat: AI clean up of agent responses, adds new ai package
- feat: full screen tiptap editor, esentially two editors that attempt to keep their state in sync.
- moves tiptap editor menu bar to to show up as a bubble once text is selected.
- Layout fixes and improvements.
- Improves /reports/overview charts and cards.
2025-01-09 05:01:33 +05:30

24 lines
516 B
Vue

<template>
<LineChart :data="data" index="date" :categories="['New conversations', 'Resolved conversations', 'Messages sent']"
:x-formatter="xFormatter" :y-formatter="yFormatter" />
</template>
<script setup>
import { LineChart } from '@/components/ui/chart-line'
const props = defineProps({
data: {
type: Array,
default: () => []
}
})
const xFormatter = (tick) => {
return props.data[tick]?.date ?? ''
}
const yFormatter = (tick) => {
return Number.isInteger(tick) ? tick : ''
}
</script>