Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 how do I set LineWidth for MultiLinePlot?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

karla684

2 Posts

Posted - 16 Jun 2008 :  11:32:01  Show Profile  Reply with Quote
Hi,

I am using QCChart2D for Compact Framework (programming C#), and am trying to plot a graph with a set LineWidth using 'SetSegmentAttributes'.

The code might look like this:

mMagnPlot.SetSegmentAttributes(0, new ChartAttribute(System.Drawing.Color.Pink, 5.0))

Where 'mMagnPlot' is an instance of a MultiLinePlot. Changing the Color attribute will affect the curve as expected, but changing the lineWidth value doesn't change the appearance of the curve at all.

I have also tried the 'SetSegmentAttributes' which takes an additional DashStyle argument as input and I get the same result for DashStyle, i.e. the curve appearance isn't affected by the DashStyle value.

Does anyone have an idea on what the problem might be?

Thanks,

Karl

quinncurtis

1164 Posts

Posted - 16 Jun 2008 :  13:19:28  Show Profile  Reply with Quote
We don't know why you are calling SetSegmentAttributes. Below is a modified version of the BigChartDemo.MultiLine example, that sets the line with to 7.

ChartAttribute attrib1 = new ChartAttribute (Color.Blue, 7,DashStyle.Solid);
ChartAttribute []attribArray = new ChartAttribute[numGroups];
for (i=0; i < numGroups; i++)
  attribArray[i] = (ChartAttribute) attrib1.Clone();
MultiLinePlot thePlot1 = new MultiLinePlot(pTransform1, Dataset1,  attribArray);
chartVu.AddChartObject(thePlot1);


If that doesn't work, either your QCChart2D CF software needs to updated to the current version, or your compiler, or both. The first versions of .Net CF (.Net CF 1.0) did not support setting the line width to anything other than 1. The first versions of QCChart2D CF followed suit. Starting with VS 2005 (and .Net CF 2.0), line widths greater than 1 were supported by the compiler. Starting in 2008 we restricted the QCChart2D CF software to working with VS 2005, .Net CF 2.0, and higher, and this permitted us to support line thickness other than one. You can upgrade your QCChart2D CF software to the current version using the download link you were sent in an e-mail at the time of your order.


Go to Top of Page

karla684

2 Posts

Posted - 17 Jun 2008 :  09:22:41  Show Profile  Reply with Quote
I updated to version 1.8 of QCChart2D which worked like a charm.

Thanks,

Karl
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07