Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/02/16 10:46:09 (8 years ago)
Author:
pfleck
Message:

#2713 Hide the chart-title if the title is empty (to avoid unnecessary empty space)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs

    r14435 r14438  
    103103      if (Content != null) {
    104104        chart.Titles[0].Text = Content.Name;
     105        chart.Titles[0].Visible = !string.IsNullOrEmpty(Content.Name);
    105106        AddDataRows(Content.Rows);
    106107        ConfigureChartArea(chart.ChartAreas[0]);
     
    216217      if (!Content.VisualProperties.TitleColor.IsEmpty) chart.Titles[0].ForeColor = Content.VisualProperties.TitleColor;
    217218      chart.Titles[0].Text = Content.VisualProperties.Title;
     219      chart.Titles[0].Visible = !string.IsNullOrEmpty(Content.VisualProperties.Title);
    218220
    219221      if (Content.VisualProperties.AxisTitleFont != null) area.AxisX.TitleFont = Content.VisualProperties.AxisTitleFont;
     
    287289      else {
    288290        chart.Titles[0].Text = Content.Name;
     291        chart.Titles[0].Visible = !string.IsNullOrEmpty(Content.Name);
    289292        base.Content_NameChanged(sender, e);
    290293      }
Note: See TracChangeset for help on using the changeset viewer.