WorkExperience.vue 853 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!-- -->
  2. <template>
  3. <el-card shadow="never">
  4. <template #header>
  5. <CardTitle :title="props.title" />
  6. </template>
  7. <div>
  8. <Echart :height="300" :options="chartOptions" />
  9. </div>
  10. </el-card>
  11. </template>
  12. <script setup>
  13. defineOptions({name: 'WorkExperience'})
  14. const props = defineProps({
  15. title: String,
  16. })
  17. const chartOptions = {
  18. tooltip: {
  19. trigger: 'axis',
  20. axisPointer: {
  21. type: 'shadow'
  22. }
  23. },
  24. grid: {
  25. left: '3%',
  26. right: '4%',
  27. bottom: '3%',
  28. containLabel: true
  29. },
  30. xAxis: {
  31. type: 'category',
  32. data: ['在校生', '应届生', '1年以内', '1-3年', '3-5年', '5-10年', '10-20年', '20年以上']
  33. },
  34. yAxis: {
  35. type: 'value'
  36. },
  37. series: [
  38. {
  39. data: [25, 77, 866, 575, 698, 58, 6, 7],
  40. type: 'bar'
  41. }
  42. ]
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. </style>