Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14438


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)

Location:
trunk/sources/HeuristicLab.Analysis.Views/3.3
Files:
2 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      }
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/ScatterPlotView.cs

    r14435 r14438  
    102102      if (Content != null) {
    103103        chart.Titles[0].Text = Content.Name;
     104        chart.Titles[0].Visible = !string.IsNullOrEmpty(Content.Name);
    104105        AddScatterPlotDataRows(Content.Rows);
    105106        ConfigureChartArea(chart.ChartAreas[0]);
     
    184185      if (!Content.VisualProperties.TitleColor.IsEmpty) chart.Titles[0].ForeColor = Content.VisualProperties.TitleColor;
    185186      chart.Titles[0].Text = Content.VisualProperties.Title;
     187      chart.Titles[0].Visible = !string.IsNullOrEmpty(Content.VisualProperties.Title);
    186188
    187189      if (Content.VisualProperties.AxisTitleFont != null) area.AxisX.TitleFont = Content.VisualProperties.AxisTitleFont;
     
    255257      else {
    256258        chart.Titles[0].Text = Content.Name;
     259        chart.Titles[0].Visible = !string.IsNullOrEmpty(Content.Name);
    257260        base.Content_NameChanged(sender, e);
    258261      }
Note: See TracChangeset for help on using the changeset viewer.