Jump to content
Software FX Community

bug in axisx inverted


gila ziv

Recommended Posts

Hi,

I am using ChartFX7.

I added a chart from the type Gnatt.

While writing it's properties , I wanted Axis X to be inverted.

But what have happened is that now I cannot see the labels.

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />---------attachment file : "gnatt"

 

 Before changing the "inverted" property to "true" it looked :

 

----------attachment file : "gnattFull"

 

But I need the list above to be inverted . ("alm brand" must be first).

 

My code:

 

ChartGnatt.Reset();

  //ChartGnatt.ToolTips = false;

  if (is3ar)

  {

  ChartGnatt.DataSourceSettings.Fields.Add(new ChartFX.WebForms.FieldMap("AfkastMin3Aar", ChartFX.WebForms.FieldUsage.Value));

  ChartGnatt.DataSourceSettings.Fields.Add(new ChartFX.WebForms.FieldMap("AfkastMax3Aar", ChartFX.WebForms.FieldUsage.Value));

  }

  else

  {

  ChartGnatt.DataSourceSettings.Fields.Add(new ChartFX.WebForms.FieldMap("AfkastMin1Aar", ChartFX.WebForms.FieldUsage.Value));

  ChartGnatt.DataSourceSettings.Fields.Add(new ChartFX.WebForms.FieldMap("AfkastMax1Aar", ChartFX.WebForms.FieldUsage.Value));

  }

  ChartGnatt.DataSourceSettings.Fields.Add(new ChartFX.WebForms.FieldMap("Navn", ChartFX.WebForms.FieldUsage.Label));

 

  ChartGnatt.AxisX.PixelsPerUnit = 25;

  ChartGnatt.Height = Unit.Pixel(25 * dt.Rows.Count + 80);

 

  ChartGnatt.Width = Unit.Pixel(580);  

  ChartGnatt.Border = new ChartFX.WebForms.Adornments.SimpleBorder(ChartFX.WebForms.Adornments.SimpleBorderType.Dark);

  ChartGnatt.Border.Color = Color.ForestGreen;

  ChartGnatt.Background = new ChartFX.WebForms.Adornments.SolidBackground();

  ChartGnatt.PageColor = Color.White;  

  ChartGnatt.PlotAreaColor = Color.Transparent;

  ChartGnatt.PlotAreaMargin.Top = 15;

  ChartGnatt.Gallery = Gallery.Gantt;

  ((ChartFX.WebForms.Galleries.Bar)ChartGnatt.GalleryAttributes).Overlap = true;

 

  ChartGnatt.LegendBox.Visible = false;

 

  //View3D

  ChartGnatt.View3D.AngleX = 0;

  ChartGnatt.View3D.AngleY = 0;

  ChartGnatt.View3D.Enabled = true;

  ChartGnatt.View3D.Rotated = true;

 

  ChartGnatt.AllSeries.Volume = short.Parse("50");

  ChartGnatt.AllSeries.Border.Visible = false;

 

  ChartGnatt.AxisY.Min = double.Parse("-60");

  ChartGnatt.AxisY.Max = double.Parse("120");

  ChartGnatt.AxisY.Step = double.Parse("30");

  ChartGnatt.AxisY.LabelsFormat.Decimals = 2;

  ChartGnatt.AxisY.Grids.Major.Color = Color.Black;

  ChartGnatt.AxisY.Grids.Major.Style = System.Drawing.Drawing2D.DashStyle.Solid;

  ChartGnatt.AxisY.Line.Color = Color.Black;

  //Axisx

  ChartGnatt.AxisX.Step = 1;

  ChartGnatt.AxisX.Grids.Major.Visible = false;

  ChartGnatt.AxisX.Grids.Major.Color = Color.Black;

  ChartGnatt.AxisX.Grids.Major.Style = System.Drawing.Drawing2D.DashStyle.Solid;

 

  //chartRemark

  if (is3ar && isAccumalate)//(showRemark)

  {

  TitleDockable title = new TitleDockable();

  title.Dock = DockArea.Bottom;

  title.PlotAreaOnly = false;

  title.Alignment = System.Drawing.StringAlignment.Near;

  title.Text = "Bem
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.

Guest
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...