-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make new flowchart&result chart
- Loading branch information
Showing
10 changed files
with
149 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
"use client" | ||
|
||
import { | ||
Bar, | ||
BarChart, | ||
CartesianGrid, | ||
Legend, | ||
Rectangle, | ||
ResponsiveContainer, | ||
Tooltip, | ||
XAxis, | ||
YAxis, | ||
} from "recharts" | ||
|
||
export interface MtebChartProps { | ||
data: any | ||
} | ||
|
||
export default function MtebChart({ data }: MtebChartProps) { | ||
return ( | ||
<ResponsiveContainer width="100%" height={400}> | ||
<BarChart | ||
width={500} | ||
height={300} | ||
data={data} | ||
margin={{ | ||
top: 5, | ||
right: 30, | ||
left: 20, | ||
bottom: 5, | ||
}} | ||
> | ||
<CartesianGrid strokeDasharray="3 3" /> | ||
<XAxis | ||
dataKey="name" | ||
fontSize="10px" | ||
interval={0} | ||
angle={-45} | ||
textAnchor="end" | ||
/> | ||
<YAxis fontSize={12} /> | ||
<Tooltip | ||
contentStyle={{ | ||
fontSize: "12px", | ||
backgroundColor: "rgba(255, 255, 255, 0.9)", | ||
border: "1px solid #f5f5f5", | ||
borderRadius: "4px", | ||
boxShadow: "0 2px 4px 0 rgba(0,0,0,0.1)", | ||
}} | ||
/> | ||
|
||
<Legend | ||
formatter={(value) => { | ||
if (value === "evrn") return "ES+VS+RR_n" | ||
return value.toUpperCase() | ||
}} | ||
wrapperStyle={{ | ||
paddingTop: "1rem", | ||
fontSize: "12px", | ||
}} | ||
/> | ||
<Bar | ||
dataKey="es" | ||
fill="#519DE9" | ||
/> | ||
<Bar | ||
dataKey="vs" | ||
fill="#7CC674" | ||
/> | ||
<Bar | ||
dataKey="ES+VS+RR_n" | ||
fill="#F4C145" | ||
/> | ||
</BarChart> | ||
</ResponsiveContainer> | ||
) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"Name":"ArguAna","ES":"42.93","VS":"56.49","ES+VS/ES+VS_n":"56.68/57.27","ES+RR/ES+RR_n":"47.45/48.21","VS+RR/VS+RR_n":"56.32/56.44","ES+VS+RR/ES+VS+RR_n":"56.81/**57.28**","Ref":"56.44","Delta/%":"0.79/1.39%"},{"Name":"ClimateFEVER","ES":"18.10","VS":"39.12","ES+VS/ES+VS_n":"39.21/39.01","ES+RR/ES+RR_n":"28.20/28.34","VS+RR/VS+RR_n":"39.06/38.71","ES+VS+RR/ES+VS+RR_n":"39.11/**39.25**","Ref":"39.37","Delta/%":"0.13/0.33%"},{"Name":"CQADupstack","ES":"25.13","VS":"42.23","ES+VS/ES+VS_n":"42.40/42.51","ES+RR/ES+RR_n":"37.68/37.54","VS+RR/VS+RR_n":"43.92/44.25","ES+VS+RR/ES+VS+RR_n":"43.85/**44.32**","Ref":"43.81","Delta/%":"2.09/4.94%"},{"Name":"DBPedia","ES":"27.42","VS":"44.66","ES+VS/ES+VS_n":"45.26/44.26","ES+RR/ES+RR_n":"47.94/48.26","VS+RR/VS+RR_n":"48.62/49.08","ES+VS+RR/ES+VS+RR_n":"48.79/**49.13**","Ref":"44.73","Delta/%":"4.47/10.00%"},{"Name":"FEVER","ES":"72.80","VS":"88.90","ES+VS/ES+VS_n":"89.29/90.05","ES+RR/ES+RR_n":"84.38/84.94","VS+RR/VS+RR_n":"89.84/90.30","ES+VS+RR/ES+VS+RR_n":"90.21/**91.00**","Ref":"89.02","Delta/%":"2.10/2.36%"},{"Name":"FiQA2018","ES":"23.89","VS":"42.29","ES+VS/ES+VS_n":"42.57/42.79","ES+RR/ES+RR_n":"36.62/36.31","VS+RR/VS+RR_n":"43.04/43.09","ES+VS+RR/ES+VS+RR_n":"43.19/**43.22**","Ref":"42.4","Delta/%":"0.93/2.19%"},{"Name":"HotpotQA","ES":"54.94","VS":"73.65","ES+VS/ES+VS_n":"74.74/75.01","ES+RR/ES+RR_n":"74.93/75.39","VS+RR/VS+RR_n":"77.64/78.07","ES+VS+RR/ES+VS+RR_n":"77.95/**78.37**","Ref":"73.65","Delta/%":"4.72/6.40%"},{"Name":"MSMARCO","ES":"21.84","VS":"41.77","ES+VS/ES+VS_n":"41.65/41.72","ES+RR/ES+RR_n":"46.93/47.15","VS+RR/VS+RR_n":"47.11/**47.24**","ES+VS+RR/ES+VS+RR_n":"47.09/47.23","Ref":"41.77","Delta/%":"5.46/13.07%"},{"Name":"NFCorpus","ES":"31.40","VS":"36.74","ES+VS/ES+VS_n":"37.37/37.63","ES+RR/ES+RR_n":"34.51/35.36","VS+RR/VS+RR_n":"37.32/37.31","ES+VS+RR/ES+VS+RR_n":"**37.70**/37.15","Ref":"36.77","Delta/%":"0.41/1.11%"},{"Name":"NQ","ES":"27.21","VS":"61.33","ES+VS/ES+VS_n":"60.51/61.20","ES+RR/ES+RR_n":"55.60/55.47","VS+RR/VS+RR_n":"61.50/62.24","ES+VS+RR/ES+VS+RR_n":"62.27/**62.35**","Ref":"62.43","Delta/%":"1.02/1.66%"},{"Name":"QuoraRetrieval","ES":"74.23","VS":"80.73","ES+VS/ES+VS_n":"86.64/86.91","ES+RR/ES+RR_n":"84.14/84.40","VS+RR/VS+RR_n":"87.76/88.10","ES+VS+RR/ES+VS+RR_n":"88.39/**88.54**","Ref":"87.42","Delta/%":"7.81/9.67%"},{"Name":"SCIDOCS","ES":"14.68","VS":"21.03","ES+VS/ES+VS_n":"20.49/20.06","ES+RR/ES+RR_n":"16.48/16.48","VS+RR/VS+RR_n":"**20.51**/20.19","ES+VS+RR/ES+VS+RR_n":"20.34/20.03","Ref":"21.10","Delta/%":"-1.00/-4.75%"},{"Name":"SciFact","ES":"58.42","VS":"73.16","ES+VS/ES+VS_n":"73.28/75.08","ES+RR/ES+RR_n":"69.08/69.69","VS+RR/VS+RR_n":"72.73/73.62","ES+VS+RR/ES+VS+RR_n":"73.08/**75.33**","Ref":"73.55","Delta/%":"2.17/2.96%"},{"Name":"Touche2020","ES":"29.92","VS":"**32.65**","ES+VS/ES+VS_n":"31.86/34.26","ES+RR/ES+RR_n":"29.76/29.93","VS+RR/VS+RR_n":"30.47/29.30","ES+VS+RR/ES+VS+RR_n":"31.51/30.98","Ref":"31.47","Delta/%":"-1.67/-5.11%"},{"Name":"TRECCOVID","ES":"52.02","VS":"78.92","ES+VS/ES+VS_n":"77.78/79.12","ES+RR/ES+RR_n":"75.59/76.95","VS+RR/VS+RR_n":"80.34/81.19","ES+VS+RR/ES+VS+RR_n":"81.97/**83.01**","Ref":"79.65","Delta/%":"4.09/5.18%"},{"Name":"Average","ES":"38.32","VS":"54.24","ES+VS/ES+VS_n":"54.64/55.12","ES+RR/ES+RR_n":"51.28/51.62","VS+RR/VS+RR_n":"55.74/55.94","ES+VS+RR/ES+VS+RR_n":"56.15/**56.47**","Ref":"54.91","Delta/%":"2.23/4.11%"}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters