Changeset 14751 for branches/symbreg-factors-2650/HeuristicLab.Visualization.ChartControlsExtensions
- Timestamp:
- 03/16/17 07:56:01 (8 years ago)
- Location:
- branches/symbreg-factors-2650
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650
-
branches/symbreg-factors-2650/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs
r14399 r14751 79 79 if (result.ChartArea != null && (result.ChartElementType == ChartElementType.PlottingArea || result.ChartElementType == ChartElementType.Gridlines)) { 80 80 foreach (var axis in result.ChartArea.Axes) 81 axis.ScaleView.ZoomReset( int.MaxValue);81 axis.ScaleView.ZoomReset(0); 82 82 } 83 83 } -
branches/symbreg-factors-2650/HeuristicLab.Visualization.ChartControlsExtensions/3.3/GanttChart.Designer.cs
r14185 r14751 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.components = new System.ComponentModel.Container(); 47 48 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); 48 49 System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); 49 50 System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); 51 System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title(); 50 52 this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart(); 51 53 ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit(); … … 54 56 // chart 55 57 // 56 this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 57 | System.Windows.Forms.AnchorStyles.Left)58 58 this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 59 | System.Windows.Forms.AnchorStyles.Left) 60 | System.Windows.Forms.AnchorStyles.Right))); 59 61 chartArea1.AxisX.ScaleView.SmallScrollMinSizeType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Milliseconds; 60 62 chartArea1.AxisY.ScaleView.SmallScrollMinSizeType = System.Windows.Forms.DataVisualization.Charting.DateTimeIntervalType.Milliseconds; … … 79 81 this.chart.TabIndex = 0; 80 82 this.chart.Text = "chart"; 83 title1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 84 title1.Name = "Gantt Title"; 85 title1.Text = "Gantt Title"; 86 title1.Visible = false; 87 this.chart.Titles.Add(title1); 81 88 // 82 89 // GanttChart 83 90 // 84 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);85 91 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 86 92 this.Controls.Add(this.chart); -
branches/symbreg-factors-2650/HeuristicLab.Visualization.ChartControlsExtensions/3.3/GanttChart.cs
r14185 r14751 32 32 private IDictionary<string, Color> categories = new Dictionary<string, Color>(); 33 33 private IDictionary<string, int> rowNames = new Dictionary<string, int>(); 34 35 public string Title { 36 get { return chart.Titles[0].Text; } 37 set { 38 chart.Titles[0].Text = value ?? string.Empty; 39 chart.Titles[0].Visible = value != null; 40 } 41 } 34 42 35 43 public GanttChart() {
Note: See TracChangeset
for help on using the changeset viewer.