Skip to content

Commit

Permalink
Refactor xyChartAcceptanceRate variable and fix formatting issue in m…
Browse files Browse the repository at this point in the history
…ermaid code block
  • Loading branch information
austenstone committed Apr 23, 2024
1 parent f6d7096 commit 239f84a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ config:
xychart-beta
title "Accepts & Acceptance Rate"
x-axis [${
data.map((item) => `"${item.day.split('-').slice(1, 2).join('/')}"`).join(', ')
data.map((item) => `"${item.day.replace(/-/g, '/').substring(5)}"`).join(', ')
}]
y-axis "Acceptances" 0 --> ${maxAcceptances}
bar [${
Expand All @@ -169,8 +169,8 @@ xychart-beta

await summary
.addHeading('Copilot Usage Results')
.addRaw(pieChartLanguageUsage)
.addRaw(xyChartAcceptanceRate)
.addRaw(pieChartLanguageUsage)
.addTable(tableData)
.write();
}
Expand Down

0 comments on commit 239f84a

Please sign in to comment.