User (Legacy) Posted June 11, 2002 Report Posted June 11, 2002 When a chart has no data it charts a set of random data. This is obviously highly undesirable when running a commercial application. How do I prevent any sample data being plotted? Regards Nick, PMG
Software FX Posted June 11, 2002 Report Posted June 11, 2002 To display no data you can do: chart1.ClearData(ClearDataFlag.Data); in your Form_Load. Notice that we will only display random data if at the time of painting you have set no data at all, if you set ANY data, random data will never be assigned. -- FP Software FX, Inc.
Software FX Posted June 11, 2002 Report Posted June 11, 2002 Sorry sent you .NET code, here is the VB 6 code: Chart1.ClearData CD_DATA -- FP Software FX, Inc.
User (Legacy) Posted June 13, 2002 Author Report Posted June 13, 2002 This method did not seem to resolve the problem. Instead I did as you suggest and ensured that the Channel was opened and closed even if no data was actually plotted. This resolved the problem. Thanks, Nick "SoftwareFX Support" <support@softwarefx.com> wrote in message news:YCncozYECHA.1640@webserver1.softwarefx.com... > Sorry sent you .NET code, here is the VB 6 code: > > Chart1.ClearData CD_DATA > > -- > FP > Software FX, Inc. > >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.