Jump to content
Software FX Community

Angle in PointLabels


shmuly

Recommended Posts

I'm trying to set the angle for PointLabels and the setting is ignored. I made sure that the font used is a TrueType font.

Here is the contents of the Designer part of the WinForm

----------------------------------

<

Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _Partial Class Form1

Inherits System.Windows.Forms.Form

'Form overrides dispose to clean up the component list.

<System.Diagnostics.DebuggerNonUserCode()> _

Protected Overrides Sub Dispose(ByVal disposing As Boolean)

If disposing AndAlso components IsNot Nothing Then

components.Dispose()

End IfMyBase.Dispose(disposing)

End Sub

'Required by the Windows Form DesignerPrivate components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer

'It can be modified using the Windows Form Designer.

'Do not modify it using the code editor.

<System.Diagnostics.DebuggerStepThrough()> _

Private Sub InitializeComponent()

Me.components = New System.ComponentModel.ContainerDim FieldMap1 As ChartFX.WinForms.FieldMap = New ChartFX.WinForms.FieldMap

Dim FieldMap2 As ChartFX.WinForms.FieldMap = New ChartFX.WinForms.FieldMapDim FieldMap3 As ChartFX.WinForms.FieldMap = New ChartFX.WinForms.FieldMap

Dim FieldMap4 As ChartFX.WinForms.FieldMap = New ChartFX.WinForms.FieldMapDim SeriesAttributes1 As ChartFX.WinForms.SeriesAttributes = New ChartFX.WinForms.SeriesAttributes

Dim SeriesAttributes2 As ChartFX.WinForms.SeriesAttributes = New ChartFX.WinForms.SeriesAttributesDim SeriesAttributes3 As ChartFX.WinForms.SeriesAttributes = New ChartFX.WinForms.SeriesAttributes

Dim TitleDockable1 As ChartFX.WinForms.TitleDockable = New ChartFX.WinForms.TitleDockableMe.Chart1 = New ChartFX.WinForms.Chart

Me.DivisionAmountBindingSource = New System.Windows.Forms.BindingSource(Me.components)Me.GraphTestDataSetBindingSource = New System.Windows.Forms.BindingSource(Me.components)

Me.GraphTestDataSet = New ChartFXTest.GraphTestDataSetMe.DivisionAmountTableAdapter = New ChartFXTest.GraphTestDataSetTableAdapters.DivisionAmountTableAdapter

Me.PropertyGrid1 = New System.Windows.Forms.PropertyGridMe.Splitter1 = New System.Windows.Forms.Splitter

CType(Me.Chart1, System.ComponentModel.ISupportInitialize).BeginInit()CType(Me.DivisionAmountBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()

CType(Me.GraphTestDataSetBindingSource, System.ComponentModel.ISupportInitialize).BeginInit()CType(Me.GraphTestDataSet, System.ComponentModel.ISupportInitialize).BeginInit()

Me.SuspendLayout()

'

'Chart1

'Me.Chart1.AllSeries.Gallery = ChartFX.WinForms.Gallery.Bar

Me.Chart1.AllSeries.PointLabelOrganizer.AutoArrange = True

Me.Chart1.AllSeries.PointLabelOrganizer.Enabled = TrueMe.Chart1.AllSeries.PointLabels.Angle = CType(90, Short)

Me.Chart1.AllSeries.PointLabels.Font = New System.Drawing.Font("Miriam", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(177, Byte))Me.Chart1.AllSeries.PointLabels.LineAlignment = System.Drawing.StringAlignment.Center

Me.Chart1.AllSeries.PointLabels.Visible = TrueMe.Chart1.AxisX.LabelAngle = CType(45, Short)

Me.Chart1.AxisX.Title.Text = "Campaign Divisions"

Me.Chart1.AxisY.Title.Text = "Amounts"Me.Chart1.DataSource = Me.DivisionAmountBindingSource

FieldMap1.DisplayName =

"DINR2005"

FieldMap1.Name =

"Campaign1"

FieldMap1.Usage = ChartFX.WinForms.FieldUsage.Value

FieldMap2.DisplayName =

"DINR2006"

FieldMap2.Name =

"Campaign2"

FieldMap2.Usage = ChartFX.WinForms.FieldUsage.Value

FieldMap3.DisplayName =

"DINR2007"

FieldMap3.Name =

"Campaign3"

FieldMap3.Usage = ChartFX.WinForms.FieldUsage.Value

FieldMap4.DisplayName =

"DevisionName"

FieldMap4.Name =

"DevisionName"

FieldMap4.Usage = ChartFX.WinForms.FieldUsage.Label

Me.Chart1.DataSourceSettings.Fields.AddRange(New ChartFX.WinForms.FieldMap() {FieldMap1, FieldMap2, FieldMap3, FieldMap4})

Me.Chart1.Dock = System.Windows.Forms.DockStyle.FillMe.Chart1.Location = New System.Drawing.Point(0, 0)

Me.Chart1.Name = "Chart1"

SeriesAttributes1.Text =

"DINR2005"

SeriesAttributes2.Text =

"DINR2006"

SeriesAttributes3.Text =

"DINR2007"Me.Chart1.Series.AddRange(New ChartFX.WinForms.SeriesAttributes() {SeriesAttributes1, SeriesAttributes2, SeriesAttributes3})

Me.Chart1.Size = New System.Drawing.Size(509, 434)Me.Chart1.TabIndex = 0

TitleDockable1.Font =

New System.Drawing.Font("Calibri", 12.0!)

TitleDockable1.Text =

"Campaign Analysis"Me.Chart1.Titles.AddRange(New ChartFX.WinForms.TitleDockable() {TitleDockable1})

Me.Chart1.ToolBar.Visible = True

'

'DivisionAmountBindingSource

'

Me.DivisionAmountBindingSource.DataMember = "DivisionAmount"Me.DivisionAmountBindingSource.DataSource = Me.GraphTestDataSetBindingSource

'

'GraphTestDataSetBindingSource

'Me.GraphTestDataSetBindingSource.DataSource = Me.GraphTestDataSet

Me.GraphTestDataSetBindingSource.Position = 0

'

'GraphTestDataSet

'

Me.GraphTestDataSet.DataSetName = "GraphTestDataSet"Me.GraphTestDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema

'

'DivisionAmountTableAdapter

'

Me.DivisionAmountTableAdapter.ClearBeforeFill = True

'

'PropertyGrid1

'Me.PropertyGrid1.Dock = System.Windows.Forms.DockStyle.Right

Me.PropertyGrid1.Location = New System.Drawing.Point(512, 0)

Me.PropertyGrid1.Name = "PropertyGrid1"Me.PropertyGrid1.SelectedObject = Me.Chart1

Me.PropertyGrid1.Size = New System.Drawing.Size(130, 434)Me.PropertyGrid1.TabIndex = 1

'

'Splitter1

'Me.Splitter1.Dock = System.Windows.Forms.DockStyle.Right

Me.Splitter1.Location = New System.Drawing.Point(509, 0)

Me.Splitter1.Name = "Splitter1"Me.Splitter1.Size = New System.Drawing.Size(3, 434)

Me.Splitter1.TabIndex = 2

Me.Splitter1.TabStop = False

'

'Form1

'Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)

Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.FontMe.ClientSize = New System.Drawing.Size(642, 434)

Me.Controls.Add(Me.Chart1)Me.Controls.Add(Me.Splitter1)

Me.Controls.Add(Me.PropertyGrid1)

Me.Name = "Form1"

Me.Text = "Form1"CType(Me.Chart1, System.ComponentModel.ISupportInitialize).EndInit()

CType(Me.DivisionAmountBindingSource, System.ComponentModel.ISupportInitialize).EndInit()CType(Me.GraphTestDataSetBindingSource, System.ComponentModel.ISupportInitialize).EndInit()

CType(Me.GraphTestDataSet, System.ComponentModel.ISupportInitialize).EndInit()Me.ResumeLayout(False)

Me.PerformLayout()

End SubFriend WithEvents Chart1 As ChartFX.WinForms.Chart

Friend WithEvents GraphTestDataSetBindingSource As System.Windows.Forms.BindingSourceFriend WithEvents GraphTestDataSet As ChartFXTest.GraphTestDataSet

Friend WithEvents DivisionAmountBindingSource As System.Windows.Forms.BindingSourceFriend WithEvents DivisionAmountTableAdapter As ChartFXTest.GraphTestDataSetTableAdapters.DivisionAmountTableAdapter

Friend WithEvents PropertyGrid1 As System.Windows.Forms.PropertyGrid

Friend WithEvents Splitter1 As System.Windows.Forms.Splitter

End

Class
Link to comment
Share on other sites

This seems to be a bug. THe PointLabel angle is beign ignored when setting:

Me.Chart1.AllSeries.PointLabelOrganizer.AutoArrange = True

Me.Chart1.AllSeries.PointLabelOrganizer.Enabled = True

It works well without these two lines. 

Please contact Software FX Support to create a support ticket with this bug.

post-3197-13922403167814_thumb.png

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...