Jump to content
Software FX Community

zoom performance


Recommended Posts

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.


Link to comment
Share on other sites

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


SeriesAttributes[] seriesAttribArray = new ChartFX.WinForms.SeriesAttributes[numItems];for (int k = 0; k < numItems; k++)


seriesAttribArray[k] = new ChartFX.WinForms.SeriesAttributes();



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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...