visifire Chart 动态刷新 使用效率 问题。

若情水 2011-05-04 11:35:40
我用的是:visifire_v4.0.3-1_trial
本意是做成cpu使用率那样的不停刷新跳动的效果。
现在效果也实现了,不过就是运行后,内存使用率一直增加,没看见停过,除非关闭程序。
我的方法是在.xaml.cs中根据数据自动生成Axis和DataSeries。

感谢哪位大虾能够帮我Look下。
...全文
454 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhanshaowei 2011-12-05
  • 打赏
  • 举报
回复
请问 楼主是怎么解决的?小弟也遇到一样的问题!!!!
botao99284 2011-09-19
  • 打赏
  • 举报
回复
请问楼主怎么解决的
若情水 2011-05-24
  • 打赏
  • 举报
回复
完全就当我在散分吧。
暖枫无敌 2011-05-12
  • 打赏
  • 举报
回复
这么快就解决了?
ariso 2011-05-12
  • 打赏
  • 举报
回复
how 已解决?
heren5201314 2011-05-09
  • 打赏
  • 举报
回复
使用GPU加速,CacheMode = "BitmapCache"
若情水 2011-05-04
  • 打赏
  • 举报
回复
public void AddPoint(int value)
{
InitList(dt, value);
// Create a new Axis
Axis axis = new Axis();

// Set axis properties
axis.IntervalType = IntervalTypes.Days;
axis.Interval = 3;

// Add axis to AxesX collection
chart1.AxesX.Clear();
chart1.AxesX.Add(axis);

chart1.Series.Clear();
for (Int32 j = 0; j < 2; j++)
{
// Create a new instance of DataSeries
DataSeries dataSeries = new DataSeries();
if (j==0)
{
dataSeries.Name = "电压";
}
else
{
dataSeries.Name = "电流";
}

// Set DataSeries properties
dataSeries.RenderAs = RenderAs.Line;

//dataSeries.XValueType = ChartValueTypes.DateTime;

// Create a DataPoint
DataPoint dataPoint;

for (int i = 0; i < 60; i++)
{
// Create a new instance of DataPoint
dataPoint = new DataPoint();

// Set XValue for a DataPoint
dataPoint.YValue = dt[i] + j*10;

// Set YValue for a DataPoint
dataPoint.XValue = i + 1;

// Add dataPoint to DataPoints collection
dataSeries.DataPoints.Add(dataPoint);
}


// Add dataSeries to Series collection.
chart1.Series.Add(dataSeries);
}
}
fmhbol 2011-05-04
  • 打赏
  • 举报
回复
把你的代码贴出来
若情水 2011-05-04
  • 打赏
  • 举报
回复
为什么这么悲剧啊。
神啊,救救我吧。
若情水 2011-05-04
  • 打赏
  • 举报
回复
已解决

8,737

社区成员

发帖
与我相关
我的任务
社区描述
WPF/Silverlight相关讨论
社区管理员
  • WPF/Silverlight社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧