Jump to content
Software FX Community

Legend Problems

User (Legacy)

Recommended Posts

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



Link to comment
Share on other sites

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


The chart looks perfect now!

Thanks again for all of your help!


"SoftwareFX Support" <noreply@softwarefx.com> wrote in message


> 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


> (DataStyle.KeepSerLeg flag) to prevent the Series Legend from being read

> from the dataset.


> --

> FP

> Software FX



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...