Scoob Posted July 12, 2007 Report Share Posted July 12, 2007 Is there a way to improve the zoom performance so that at least the crop box shows up faster? Right now, it takes too much time (5+ seconds) for just the crop box to show up. Is there something running when I click/drag that I can disable? I've already turned off AllowDrag, AllowDrop, Highlighting, and ToolTips. Thanks Link to comment Share on other sites More sharing options...
Frank Posted July 13, 2007 Report Share Posted July 13, 2007 I can not reproduce the behavior you are describing. I tried with a slow chart (100,000 points) and the zoom box shows right away. Link to comment Share on other sites More sharing options...
Scoob Posted July 13, 2007 Author Report Share Posted July 13, 2007 platform is Windows Vista Business 32-bit, on a single-core processor (Intel Pentium M 2.0Ghz Dothan, 2.00GB DDR2-533 ram) from further testing, the zoom box appears right away on a dual-core system running windows XP Pro 32-bit Link to comment Share on other sites More sharing options...
Frank Posted July 17, 2007 Report Share Posted July 17, 2007 Please attach a sample that reproduces this behavior, in all machines I have tried this it runs very fast. Link to comment Share on other sites More sharing options...
Scoob Posted July 18, 2007 Author Report Share Posted July 18, 2007 here is the relevant component initialization: this.chart.AllSeries.MarkerShape = ChartFX.WinForms.MarkerShape.None; this.chart.AxisX.ForceZero = false;this.chart.AxisX.LabelsFormat.CustomFormat = "HH:mm:ss"; this.chart.AxisX.LabelsFormat.Format = ChartFX.WinForms.AxisFormat.DateTime;this.chart.AxisX.Staggered = true; this.chart.AxisX.Title.Text = "";this.chart.AxisY.ForceZero = false; this.chart.AxisY.LabelsFormat.Decimals = 2;this.chart.AxisY.LabelsFormat.Format = ChartFX.WinForms.AxisFormat.Number; this.chart.AxisY.Title.Text = "";this.chart.Border = new ChartFX.WinForms.Adornments.SimpleBorder(ChartFX.WinForms.Adornments.SimpleBorderType.Color, System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))))); this.chart.Dock = System.Windows.Forms.DockStyle.Fill;this.chart.Highlight.Enabled = false; this.chart.LegendBox.Border = ChartFX.WinForms.DockBorder.None;this.chart.LegendBox.ContentLayout = ChartFX.WinForms.ContentLayout.Far; this.chart.LegendBox.Dock = ChartFX.WinForms.DockArea.Top;this.chart.Location = new System.Drawing.Point(0, 0); this.chart.Name = "chart";this.chart.Palette = "HighContrast.HighContrast"; this.chart.PlotAreaColor = System.Drawing.Color.Transparent;this.chart.Size = new System.Drawing.Size(1008, 668); this.chart.TabIndex = 0;this.chart.ToolBar.Visible = true; this.chart.ToolTips = false;chart.ToolBar.RemoveAt(4, 2); chart.ToolBar.RemoveAt(5, 10); chart.ToolBar.RemoveAt(chart.ToolBar.Length - 2, 2); chart.ToolBar.RemoveAt(chart.ToolBar.Length - 2, 1);chart.AxisX.AutoScale = false; chart.AxisY.AutoScale = false;chart.AllowDrag = false;chart.AllowDrop = false; chart.RandomData.Series = numItems; //numItems is usually a few, 1 or 2 usually ChartFX.WinForms. SeriesAttributes[] seriesAttribArray = new ChartFX.WinForms.SeriesAttributes[numItems];for (int k = 0; k < numItems; k++) {seriesAttribArray[k] = new ChartFX.WinForms.SeriesAttributes(); } chart.Series.AddRange(seriesAttribArray); chart.Data.Points = numPoints; //numPoints is less than or equal to 86400 //now put in points chart.AxisX.Min = min; //min is a precalculated value chart.AxisX.Max = max; //max is a precalculated value chart.AxisY.ResetScale(); //autoscale the Y axis Now I call the Show() method of the form from another form. Maybe the slow performance is an isolated case with Vista? Link to comment Share on other sites More sharing options...
Frank Posted July 18, 2007 Report Share Posted July 18, 2007 The zoom runs very fast for me. I am running Vista. I tried in a few computers and with numbers of points varying from 90,000 to 900,0000. Are you capturing any mouse events? If you are make sure it is not this code what's making it slow. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.