用Flash方式动态生成图表

单击按钮显示图表时,动态生成图表。

见自带的示例中的Gallery->Animation->Animation Themes

首先引用using Dundas.Charting.WebControl;
然后在按钮单击事件中添加 下面两句即可

// Set Flash chart image type
    Chart1.ImageType = ChartImageType.Flash;    
    // Set animation theme 还有另外几种主题可选
    Chart1.AnimationTheme = AnimationTheme.GrowingAndFading;  

  // Adjust the duration of the animation调整每帧播放时间
    Chart1.AnimationDuration = 7;

posted @ 2011-08-18 14:21  北冥子  阅读(251)  评论(0编辑  收藏  举报