User (Legacy) Posted April 8, 2004 Report Share Posted April 8, 2004 I am attempting to get a legend onto my line chart ... here is the code that I am using inside VB.NET Chart1.SerLeg(0) = "Lake Elevation" Chart1.SerLegBoxObj.Alignment = ToolAlignment.Far Chart1.SerLegBoxObj.Docked = Docked.Bottom Chart1.SerLegBox = true The legend shows up where I would expect it - it displays the correct color but the label for the series says "Value" instead of "Lake Elevation". Any ideas on this one? I am using ChartFX.NET 6.2 Thanks, Derek Link to comment Share on other sites More sharing options...
Software FX Posted April 8, 2004 Report Share Posted April 8, 2004 This was probably overridden by something you are doing afterwards, like setting the data. Either set the SerLeg AFTER setting your data or use the DataStyle property (DataStyle.KeepSerLeg flag) to prevent the Series Legend from being read from the dataset. -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted April 8, 2004 Author Report Share Posted April 8, 2004 I moved the binding of the data to the chart in my code to immediately after I create the chart object. Once I did that it took care of the legend issue! The chart looks perfect now! Thanks again for all of your help! Derek "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:h8wFEXXHEHA.788@webserver3.softwarefx.com... > This was probably overridden by something you are doing afterwards, like > setting the data. > > Either set the SerLeg AFTER setting your data or use the DataStyle property > (DataStyle.KeepSerLeg flag) to prevent the Series Legend from being read > from the dataset. > > -- > 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.