Spaces:
Running
Running
Replace CompareChart with CompareChartE in Leaderboard for better curve styling
Browse files
src/views/LeaderboardView.vue
CHANGED
|
@@ -71,7 +71,7 @@
|
|
| 71 |
</div>
|
| 72 |
<Dialog v-model:visible="compareVisible" modal header="Equity Curve Comparison" style="width: 90vw; max-width: 1200px">
|
| 73 |
<div>
|
| 74 |
-
<
|
| 75 |
</div>
|
| 76 |
</Dialog>
|
| 77 |
<Dialog v-model:visible="requestAssetsVisible" modal header="Request Asset" style="width: 90vw; max-width: 400px">
|
|
@@ -87,7 +87,7 @@ import { dataService } from '../lib/dataService.js'
|
|
| 87 |
import AgentTable from '../components/AgentTable.vue'
|
| 88 |
import AgentFilters from '../components/AgentFilters.vue'
|
| 89 |
import AssetsFilter from '../components/AssetsFilter.vue'
|
| 90 |
-
import
|
| 91 |
import InputText from 'primevue/inputtext'
|
| 92 |
import Dialog from 'primevue/dialog'
|
| 93 |
import { countNonTradingDaysBetweenForAsset, countTradingDaysBetweenForAsset } from '../lib/marketCalendar.js'
|
|
@@ -97,7 +97,7 @@ import emailjs from 'emailjs-com'
|
|
| 97 |
|
| 98 |
export default {
|
| 99 |
name: 'LeaderboardView',
|
| 100 |
-
components: { AgentTable, AgentFilters, AssetsFilter,
|
| 101 |
data() {
|
| 102 |
return {
|
| 103 |
loading: true,
|
|
|
|
| 71 |
</div>
|
| 72 |
<Dialog v-model:visible="compareVisible" modal header="Equity Curve Comparison" style="width: 90vw; max-width: 1200px">
|
| 73 |
<div>
|
| 74 |
+
<CompareChartE :selected="selectedRows.map(r => ({ agent_name: r.agent_name, asset: r.asset, model: r.model, strategy: r.strategy, decision_ids: r.decision_ids || [] }))" :visible="compareVisible" :mode="'usd'" />
|
| 75 |
</div>
|
| 76 |
</Dialog>
|
| 77 |
<Dialog v-model:visible="requestAssetsVisible" modal header="Request Asset" style="width: 90vw; max-width: 400px">
|
|
|
|
| 87 |
import AgentTable from '../components/AgentTable.vue'
|
| 88 |
import AgentFilters from '../components/AgentFilters.vue'
|
| 89 |
import AssetsFilter from '../components/AssetsFilter.vue'
|
| 90 |
+
import CompareChartE from '../components/CompareChartE.vue'
|
| 91 |
import InputText from 'primevue/inputtext'
|
| 92 |
import Dialog from 'primevue/dialog'
|
| 93 |
import { countNonTradingDaysBetweenForAsset, countTradingDaysBetweenForAsset } from '../lib/marketCalendar.js'
|
|
|
|
| 97 |
|
| 98 |
export default {
|
| 99 |
name: 'LeaderboardView',
|
| 100 |
+
components: { AgentTable, AgentFilters, AssetsFilter, CompareChartE, Dialog, InputText },
|
| 101 |
data() {
|
| 102 |
return {
|
| 103 |
loading: true,
|