Home Forums WinForms controls Xceed Chart for WinForms resize the legend for a line chart

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19179 |

    I need to be able to shrink a line chart down to 210×175.

    When I do this, the legend is too big and covers part of the chart.

    How do I adjust the size of the legend?

     

    tks

    Imported from legacy forums. Posted by James (had 1054 views)

    User (Old forums)
    Member
    Post count: 23064

    I found it myself (a phrase I seem to see a LOT in these forums).

    if (w < 245)
    {
         this.legend.Data.TextProps.Font = new Font(“Arial Narrow”, 4.0f, FontStyle.Regular);
    }

     

    Imported from legacy forums. Posted by James (had 1244 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.