12-03-2009 05:03 AM
12-04-2009 07:50 AM
Hello,
it's not possible to draw one single plot in different color or style, like it is said at this link.
You can have the same results by drawing multiple lines like you already wrote in the previous post, but you'll still have the cursor problem...
Ciao,
Andrea
12-04-2009 09:07 AM
Hello karpediemnow -
This actually can be done, but will require a bit of work on your part. To achieve this, you will need to create your own custom LineStyle class, inheriting from the NationalInstruments.UI.LineStyle class. You will then need to override the IsContextDependent property, and the CreatePen method. The basic idea is that your new CreatePen method will return a pen created from a brush that paints quickly changing gradients. The important code is shown below (this is only a very rough demonstration to get something working - you will need to adapt this code to your own needs):
You will then assign a new instance of this class to the LineStyle member of your plot. The result will look something like this.
For more information, check out the help topic "Creating a Custom Line Style for the Measurement Studio Web Forms Graph .NET Controls". Let me know if you have any questions.
NickB
National Instruments