fix: remove "Now" vertical line from intraday temperature chart

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
AmandaloveYang
2026-05-11 09:05:44 +08:00
parent 78cdb006e5
commit 81e9aeb98f
@@ -150,23 +150,6 @@ export function AiCityTemperatureChart({ detail }: { detail: CityDetail }) {
showLine: false,
});
const ci = chartData.currentIndex;
if (ci != null && ci >= 0 && ci < (chartData.times?.length || 0)) {
datasets.push({
backgroundColor: "rgba(77, 163, 255, 0.5)",
borderColor: "rgba(77, 163, 255, 0.5)",
borderDash: [3, 4],
borderWidth: 1.2,
data: [
{ x: ci, y: chartData.max },
{ x: ci, y: chartData.min },
],
label: "Now",
pointRadius: 0,
showLine: true,
});
}
return {
data: {
datasets,