修正错误曲线的样式设置

This commit is contained in:
大石头 2025-06-22 23:29:05 +08:00
parent f8d3a097ec
commit 815f6a3494
5 changed files with 10 additions and 10 deletions

View File

@ -110,7 +110,7 @@ public class AppDayStatController : ReadOnlyEntityController<AppDayStat>
chart.Add(list2, _.MinCost);
var line = chart.Add(list2, _.MaxCost);
line["yAxisIndex"] = 1;
line.YAxisIndex = 1;
chart.SetTooltip();
ViewBag.Charts2 = new[] { chart };

View File

@ -75,7 +75,7 @@ public class TraceDataController : ReadOnlyEntityController<TraceData>
chart.AddLine(list2, _.Total, null, true);
var line = chart.Add(list2, _.Errors);
line["yAxisIndex"] = 1;
line.YAxisIndex = 1;
line["itemStyle"] = new { color = "rgba(255, 0, 0, 0.5)", };
chart.SetTooltip();
@ -98,7 +98,7 @@ public class TraceDataController : ReadOnlyEntityController<TraceData>
chart.Add(list2, _.MinCost);
var line = chart.Add(list2, _.MaxCost);
line["yAxisIndex"] = 1;
line.YAxisIndex = 1;
chart.SetTooltip();
ViewBag.Charts2 = new[] { chart };

View File

@ -90,29 +90,29 @@ public class NodeDataController : ReadOnlyEntityController<NodeData>
{
var line = chart.Add(list2, _.UplinkSpeed, "line", e => e.UplinkSpeed / 1000);
line.Name = "网络上行";
line["yAxisIndex"] = 1;
line.YAxisIndex = 1;
}
if (list2.Any(e => e.DownlinkSpeed > 0))
{
var line = chart.Add(list2, _.DownlinkSpeed, "line", e => e.DownlinkSpeed / 1000);
line.Name = "网络下行";
line["yAxisIndex"] = 1;
line.YAxisIndex = 1;
}
if (list2.Any(e => e.TcpConnections > 0))
{
var line = chart.Add(list2, _.TcpConnections);
line["yAxisIndex"] = 1;
line.YAxisIndex = 1;
}
if (list2.Any(e => e.TcpTimeWait > 0))
{
var line = chart.Add(list2, _.TcpTimeWait);
line["yAxisIndex"] = 1;
line.YAxisIndex = 1;
}
if (list2.Any(e => e.TcpCloseWait > 0))
{
var line = chart.Add(list2, _.TcpCloseWait);
line["yAxisIndex"] = 1;
line.YAxisIndex = 1;
}
//chart.Add(list2, _.Offset);
chart.SetTooltip();

View File

@ -139,7 +139,7 @@ public class NodeStatController : ReadOnlyEntityController<NodeStat>
chart.AddDataZoom();
var line = chart.AddLine(list2, _.Total, null, true);
line["yAxisIndex"] = 1;
line.YAxisIndex = 1;
chart.Add(list2, _.Actives);
chart.Add(list2, _.ActivesT7);

View File

@ -50,7 +50,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NewLife.Cube.Core" Version="6.5.2025.622-beta0245" />
<PackageReference Include="NewLife.Cube.Core" Version="6.5.2025.622-beta1516" />
<PackageReference Include="NewLife.IP" Version="2.3.2025.601" />
<PackageReference Include="NewLife.Redis" Version="6.2.2025.601" />
<PackageReference Include="NewLife.Remoting.Extensions" Version="3.3.2025.616-beta1415" />