Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7126


Ignore:
Timestamp:
12/05/11 16:53:01 (13 years ago)
Author:
bburlacu
Message:

#1661: Modified the DataTableView to take the IsVisibleInLegend property into account for all chart types. Added default value for the IsVisibleInLegend property in the storable constructor (the property is true by default, identical to the old behavior).

Location:
trunk/sources
Files:
2 edited

Legend:

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

    r7124 r7126  
    179179        series.Color = row.VisualProperties.Color;
    180180      else series.Color = Color.Empty;
     181      series.IsVisibleInLegend = row.VisualProperties.IsVisibleInLegend;
    181182
    182183      switch (row.VisualProperties.ChartType) {
     
    203204        case DataRowVisualProperties.DataRowChartType.Histogram:
    204205          series.ChartType = SeriesChartType.Column;
    205           series.IsVisibleInLegend = row.VisualProperties.IsVisibleInLegend;
    206206          series.SetCustomProperty("PointWidth", "1");
    207207          if (!series.Color.IsEmpty && series.Color.GetBrightness() < 0.25)
  • trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/DataRowVisualProperties.cs

    r7124 r7126  
    229229      set { scaleFactor = value; }
    230230    }
    231     [Storable(Name = "IsVisibleInLegend")]
     231    [Storable(Name = "IsVisibleInLegend", DefaultValue = true)]
    232232    private bool StorableIsVisibleInLegend {
    233233      get { return isVisibleInLegend; }
Note: See TracChangeset for help on using the changeset viewer.