User (Legacy) Posted February 18, 2005 Report Share Posted February 18, 2005 Hi, how can I change the color of the bars with VB .NET? I want to get all negative values in red. Thanks Matthias Link to comment Share on other sites More sharing options...
Software FX Posted February 21, 2005 Report Share Posted February 21, 2005 The easiest way to do this would be using a Conditional Attribute as follows: ConditionalAttributes conditional = chart1.ConditionalAttributes[0]; conditional.Condition.From = double.NegativeInfinity; conditional.Condition.To = 0; conditional.Condition.ToOpen = true; // You don't want values equal to zero to be red conditional.Color = Color.Red; -- FP Software FX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.