Jump to content
Software FX Community

LegendBox markers size wrong when set from code behind


ckerber

Recommended Posts

In the simple project I have uploaded (a variation of the samples provided by chartFX), you will notice that the legend box circle markers are not all equal.  In particular the 2nd and 3rd circles have an uneven height, so it looks like an enlongated circle.

If we use the default marker size everything looks normal.  But when setting the marker size in the code behind, that is when the results of the size becomes unexpected.  The default marker size is to big for my application so I have a need to make it smaller.

Based on a previous forum post http://community.softwarefx.com/forums/p/10665/25948.aspx I set the legend marker size for 3 series as such:

chart1.LegendBox.ItemAttributes[chart1.Series].MarkerSize =

new Size(6, 6);

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...