feat(positions): история от последнего ордера назад до нуля кампании (портфель + окна 180д, hasCampaignBoundary)
This commit is contained in:
1 parent
56352c6e3f
commit
78ba250c37
8 files changed
+157
-10
No files matched your search
@@ -130,6 +130,12 @@ function buildSeries(): Highcharts.SeriesOptionsType[] {
|
||||
radius: 7,
|
||||
lineColor: 'transparent',
|
||||
},
|
||||
// scatter по умолчанию показывает time как unix — форматируем в дату
|
||||
tooltip: {
|
||||
headerFormat: '<span style="color:{point.color}">\u25CF</span> ' +
|
||||
'<b>{point.x:%d.%m.%Y %H:%M}</b><br/>',
|
||||
pointFormat: '{series.name}: <b>{point.y:.2f}</b>',
|
||||
},
|
||||
data: [],
|
||||
} as Highcharts.SeriesScatterOptions);
|
||||
list.push({
|
||||
@@ -143,6 +149,11 @@ function buildSeries(): Highcharts.SeriesOptionsType[] {
|
||||
radius: 7,
|
||||
lineColor: 'transparent',
|
||||
},
|
||||
tooltip: {
|
||||
headerFormat: '<span style="color:{point.color}">\u25CF</span> ' +
|
||||
'<b>{point.x:%d.%m.%Y %H:%M}</b><br/>',
|
||||
pointFormat: '{series.name}: <b>{point.y:.2f}</b>',
|
||||
},
|
||||
data: [],
|
||||
} as Highcharts.SeriesScatterOptions);
|
||||
return list;
|
||||
@@ -231,6 +242,7 @@ function baseOptions(): Highcharts.Options {
|
||||
borderColor: 'rgba(148, 163, 184, 0.25)',
|
||||
borderRadius: 8,
|
||||
shadow: false,
|
||||
valueDecimals: 2,
|
||||
},
|
||||
series: buildSeries(),
|
||||
};
|
||||
|
||||
@@ -113,6 +113,7 @@ function render(): void {
|
||||
borderColor: 'rgba(148, 163, 184, 0.25)',
|
||||
borderRadius: 8,
|
||||
shadow: false,
|
||||
valueDecimals: 2,
|
||||
},
|
||||
series: props.series.map(toSeries),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user