section.vue 836 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <hc-new-card title="章节完成投资柱状图">
  3. <hc-charts :option="chartsOption" />
  4. </hc-new-card>
  5. </template>
  6. <script setup>
  7. import { ref } from 'vue'
  8. defineOptions({
  9. name: 'DebitPayLedgersSection',
  10. })
  11. const chartsOption = ref({
  12. color: ['#99CC98', '#FF999A'],
  13. legend: {},
  14. tooltip: {},
  15. grid: {
  16. top: '50px',
  17. left: '0',
  18. right: '6px',
  19. bottom: '0',
  20. containLabel: true,
  21. },
  22. dataset: {
  23. source: [
  24. ['product', '变更后金额', '累计计量金额'],
  25. ['100章', 43.3, 85.8],
  26. ['200章', 83.1, 73.4],
  27. ['300章', 86.4, 65.2],
  28. ],
  29. },
  30. xAxis: { type: 'category' },
  31. yAxis: {},
  32. series: [{ type: 'bar' }, { type: 'bar' }],
  33. })
  34. </script>
  35. <style scoped lang="scss">
  36. </style>