Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/09 19:42:17 (15 years ago)
Author:
mstoeger
Message:

Implemented multiple Y-Axes. A LineChart has several Y-Axes and each Y-Axis has several data rows. The same clipping area is set for all data rows belonging to a Y-Axis. (#433)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization/ChartDataRowsModel.cs

    r1341 r1350  
    2828    }
    2929
     30    public List<YAxisDescriptor> YAxes {
     31      get {
     32        Dictionary<YAxisDescriptor, object> yaxes = new Dictionary<YAxisDescriptor, object>();
     33
     34        foreach (IDataRow row in rows) {
     35          yaxes[row.YAxis] = null;
     36        }
     37
     38        return new List<YAxisDescriptor>(yaxes.Keys);
     39      }
     40    }
     41
    3042
    3143    private readonly List<IDataRow> rows = new List<IDataRow>();
     
    111123    //}
    112124
     125    private readonly YAxisDescriptor defaultYAxisDescriptor = new YAxisDescriptor();
     126
    113127    public void AddDataRow(IDataRow row) {
     128      if (row.YAxis == null) {
     129        row.YAxis = defaultYAxisDescriptor;
     130      }
    114131      rows.Add(row);
    115132      OnDataRowAdded(row);
Note: See TracChangeset for help on using the changeset viewer.