Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/13/09 19:07:53 (15 years ago)
Author:
shofstad
Message:

Legend implementation updated with position setting (#407)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization.Test/LineChartTests.cs

    r1326 r1342  
    311311      IDataRow row3 = new DataRow();
    312312
     313      IDataRow row4 = new DataRow();
     314      IDataRow row5 = new DataRow();
     315      IDataRow row6 = new DataRow();
     316
    313317      row1.Color = Color.Red;
    314318      row2.Color = Color.Green;
    315319      row3.Color = Color.Blue;
    316320
     321      row4.Color = Color.DeepPink;
     322      row5.Color = Color.Firebrick;
     323      row6.Color = Color.DarkSlateGray;
     324
    317325      row1.Thickness = 3;
    318326      row2.Thickness = 4;
    319327      row3.Thickness = 5;
     328
     329      row4.Thickness = 3;
     330      row5.Thickness = 4;
     331      row6.Thickness = 5;
    320332
    321333      row1.Label = "SingleValue";
     
    323335      row3.Label = "Maxi";
    324336
     337      row4.Label = "Simon";
     338      row5.Label = "klausmuellerwesternhagenunddierasperies";
     339      row6.Label = "anyways";
     340
    325341      row1.Style = DrawingStyle.Solid;
    326342      row2.Style = DrawingStyle.Solid;
    327343      row3.Style = DrawingStyle.Dashed;
     344
     345      row4.Style = DrawingStyle.Solid;
     346      row5.Style = DrawingStyle.Solid;
     347      row6.Style = DrawingStyle.Dashed;
    328348
    329349      row1.LineType = DataRowType.SingleValue;
     
    331351      row1.AddValue(12);
    332352
    333       model.AddDataRow(row1);
    334       model.AddDataRow(row2);
    335       model.AddDataRow(row3);
    336 
    337      
    338      
    339353      row2.AddValue(5);
    340354     
     
    347361
    348362
    349    
     363      row4.AddValue(10);
     364      row5.AddValue(11);
     365      row6.AddValue(11);
     366
     367      model.AddDataRow(row1);
     368      model.AddDataRow(row2);
     369      model.AddDataRow(row3);
     370      model.AddDataRow(row4);
     371      model.AddDataRow(row5);
     372      model.AddDataRow(row6);
    350373
    351374      f.ShowDialog();
Note: See TracChangeset for help on using the changeset viewer.