Jump to content
Software FX Community

Why aren't line styles supported for user legends?


User (Legacy)

Recommended Posts

The line style IS used in the legend box, however, if you are displaying a 

marker, the space may not be enough to see the line style as the marker

takes precedence, if there is a marker the marker is a better way of

distinguishing series than the line style.

Do you have markers on ? Try setting MarkerShape = MarkerShape.None.

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

On Wed, 8 Mar 2006 11:22:51 -0500, "SoftwareFX Support"

<noreply@softwarefx.com> wrote:

>The line style IS used in the legend box, however, if you are displaying a

>marker, the space may not be enough to see the line style as the marker

>takes precedence, if there is a marker the marker is a better way of

>distinguishing series than the line style.

>

>Do you have markers on ? Try setting MarkerShape = MarkerShape.None.

I found a message on your support site stating that this is not

supported:

From: SoftwareFX Support

Subject: Re: How to set a UserLegend LineStyle

Date: 8/14/2003 1:31:15 PM

Message 2 in thread

From: SoftwareFX Support Date: 8/14/2003 1:31:15 PM

Line styles are not supported in the user legend box, they are only

supported in the series legend box.

--

FP

Software FX, Inc.

I don't understand why you wouldn't support it, since you just have to

change your pen style before you draw.

Here is my code:

Dim StoreLineStyles As Drawing2D.DashStyle() =

{Drawing2D.DashStyle.Solid, Drawing2D.DashStyle.Dash,

Drawing2D.DashStyle.Dot}

For Each s As Store In state.Stores

Dim item As SoftwareFX.ChartFX.UserLegendBoxItem =

Chart.UserLegendBoxObj.Item(s.StoreID)

item.Label = s.StoreName

item.Color = Color.Black

item.MarkerShape = SoftwareFX.ChartFX.MarkerShape.None

item.Attributes.LineStyle = StoreLineStyles(s.StoreID)

item.ShowLine = True

Next

Enough of the line is showing that I would expect to see the dash and

dot styles.

David Beardsley

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...