Changeset 14459 for branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ScatterPlotMultiView.cs
- Timestamp:
- 12/07/16 13:50:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing Enhancements/HeuristicLab.DataPreprocessing.Views/3.4/ScatterPlotMultiView.cs
r14446 r14459 253 253 if (!bodyCache.ContainsKey(key)) { 254 254 if (rowVariable == colVariable) { // use historgram if x and y variable are equal 255 PreprocessingDataTable dataTable = new PreprocessingDataTable();255 var dataTable = new DataTable(); 256 256 DataRow dataRow = Content.CreateDataRow(rowVariable, DataRowVisualProperties.DataRowChartType.Histogram); 257 dataRow.VisualProperties.IsVisibleInLegend = false; 257 258 dataTable.Rows.Add(dataRow); 258 PreprocessingDataTableView pcv = new PreprocessingDataTableView{259 var pcv = new DataTableControl { 259 260 Name = key.ToString(), 260 261 Content = dataTable, 261 262 Dock = DockStyle.Fill, 262 ShowLegend = false,263 XAxisFormat = "G3"263 //ShowLegend = false, 264 //XAxisFormat = "G3" 264 265 }; 265 pcv.ChartDoubleClick += HistogramDoubleClick;266 //pcv.ChartDoubleClick += HistogramDoubleClick; 266 267 bodyCache.Add(key, pcv); 267 268 } else { //scatter plot … … 361 362 //open histogram in new tab with new content when double clicked 362 363 private void HistogramDoubleClick(object sender, EventArgs e) { 363 PreprocessingDataTableView pcv = (PreprocessingDataTableView)sender;364 DataTableControl pcv = (DataTableControl)sender; 364 365 HistogramContent histoContent = new HistogramContent(Content.PreprocessingData); // create new content 365 366 histoContent.VariableItemList = Content.CreateVariableItemList(); 366 PreprocessingDataTabledataTable = pcv.Content;367 var dataTable = pcv.Content; 367 368 368 369 //Set variable item list from with variable from data table
Note: See TracChangeset
for help on using the changeset viewer.