Jump to content
Software FX Community

Flicker


User (Legacy)

Recommended Posts

Is flickering a feature of ChartFX .NET (Windows Form), or is it just

present in the Lite version? I really like this .NET component, and do not

want to shell out money if it flickers.

Below are some code snippets; DoNewData () is called from an event handler

every second or two:

public Form1()

{

//

// Required for Windows Form Designer support

//

InitializeComponent();

// Chart control

chart_template = new Chart ();

chart_template.ClearData (ClearDataFlag.AllData);

chart_template.Anchor =

System.Windows.Forms.AnchorStyles.Top |

System.Windows.Forms.AnchorStyles.Bottom |

System.Windows.Forms.AnchorStyles.Left |

System.Windows.Forms.AnchorStyles.Right;

chart_template.BackColor = Color.White;

chart_template.Gallery = Gallery.Lines;

chart_template.Location = new System.Drawing.Point(0, 0);

chart_template.MarkerShape = MarkerShape.None;

chart_template.Name = "chart_template";

chart_template.Size = new Size (604, 356);

chart_template.ToolBar = true;

}

public void DoNewData(Chart chart, System.DateTime [] times, double [] data)

{

chart.AxisX.ResetScale ();

chart.AxisY.ResetScale ();

chart.OpenData (COD.Values, 1, data.Length );

chart.Value [0, data.Length - 1] = data [data.Length - 1];

chart.CloseData (COD.Values);

chart.Legend [data.Length - 1] =

chart.AxisX.LabelsFormat.FormatDateTime (

times [data.Length - 1]);

}

Link to comment
Share on other sites

Is flickering a feature of ChartFX .NET (Windows Form), or is it just

present in the Lite version? I really like this .NET component, and do not

want to shell out money if it flickers.

Below are some code snippets; DoNewData () is called from an event handler

every second or two:

public Form1()

{

//

// Required for Windows Form Designer support

//

InitializeComponent();

// Chart control

chart_template = new Chart ();

chart_template.ClearData (ClearDataFlag.AllData);

chart_template.Anchor =

System.Windows.Forms.AnchorStyles.Top |

System.Windows.Forms.AnchorStyles.Bottom |

System.Windows.Forms.AnchorStyles.Left |

System.Windows.Forms.AnchorStyles.Right;

chart_template.BackColor = Color.White;

chart_template.Gallery = Gallery.Lines;

chart_template.Location = new System.Drawing.Point(0, 0);

chart_template.MarkerShape = MarkerShape.None;

chart_template.Name = "chart_template";

chart_template.Size = new Size (604, 356);

chart_template.ToolBar = true;

}

public void DoNewData(Chart chart, System.DateTime [] times, double [] data)

{

chart.AxisX.ResetScale ();

chart.AxisY.ResetScale ();

chart.OpenData (COD.Values, 1, data.Length );

chart.Value [0, data.Length - 1] = data [data.Length - 1];

chart.CloseData (COD.Values);

chart.Legend [data.Length - 1] =

chart.AxisX.LabelsFormat.FormatDateTime (

times [data.Length - 1]);

}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...