diff --git a/frontend/src/components/analytics/ObjectSaleChart.tsx b/frontend/src/components/analytics/ObjectSaleChart.tsx index 06df2343..8c7d64a4 100644 --- a/frontend/src/components/analytics/ObjectSaleChart.tsx +++ b/frontend/src/components/analytics/ObjectSaleChart.tsx @@ -56,10 +56,14 @@ export function ObjectSaleChart({ objId }: { objId: number | string }) { yAxisIndex: 1, smooth: true, symbol: "circle", - data: d.price.map((v) => (v ? Math.round(v / 1000) : null)), + data: d.price.map((v) => (v ? Math.round(v) : null)), lineStyle: { color: type === "apartments" ? "#0a7a3a" : "#c2410c" }, itemStyle: { color: type === "apartments" ? "#0a7a3a" : "#c2410c" }, connectNulls: true, + tooltip: { + valueFormatter: (v: number | null) => + v == null ? "—" : `${v.toLocaleString("ru")} ₽/м²`, + }, }, ]); return { @@ -69,7 +73,7 @@ export function ObjectSaleChart({ objId }: { objId: number | string }) { xAxis: { type: "category", data: months }, yAxis: [ { type: "value", name: "шт", position: "left" }, - { type: "value", name: "тыс ₽/м²", position: "right" }, + { type: "value", name: "₽/м²", position: "right" }, ], series, };