增加数据更新接口UpdateData

This commit is contained in:
monitor1394
2019-03-16 07:49:36 +08:00
parent 9edaf02ccb
commit 9e57dc3d09
8 changed files with 101 additions and 80 deletions

View File

@@ -97,7 +97,7 @@ namespace xcharts
{
float value = series.dataList[i];
Vector3 p = new Vector3(startX + i * scaleWid,
Vector3 p = new Vector3(startX + i * scaleWid,
zeroY + value * coordinateHig / max);
float pointWid = lineInfo.pointWid;
if (tooltip.show && i == tooltip.DataIndex - 1)
@@ -106,8 +106,8 @@ namespace xcharts
}
if (theme == Theme.Dark)
{
ChartUtils.DrawCricle(vh, p, pointWid, color,
ChartUtils.DrawCricle(vh, p, pointWid, color,
(int)lineInfo.pointWid * 5);
}
else