Click here to Skip to main content
15,913,055 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to implement the custom axis for my graph.I am having following code
scrip-let for that
VB
' create the custom axis and add it to the ChartArea's Axes collection
Dim customAxisY As New DataDynamics.ActiveReports.Chart.CustomAxis
Me.ChartControl1.ChartAreas(0).Axes.Add(customAxisY)
' set the basic axis properties for customAxisY
customAxisY.LabelFont = New DataDynamics.ActiveReports.Chart.FontInfo(Color.Red, New Font("Arial", 7.0!))
customAxisY.LabelsGap = 1
customAxisY.LabelsVisible = True
customAxisY.Line = New DataDynamics.ActiveReports.Chart.Graphics.Line(Color.Red)
customAxisY.MajorTick = New DataDynamics.ActiveReports.Chart.Tick(New DataDynamics.ActiveReports.Chart.Graphics.Line(Color.Red, 1), New DataDynamics.ActiveReports.Chart.Graphics.Line(Color.Red, 1), 1, 2.0F, True)
customAxisY.MajorTick.GridLine = New DataDynamics.ActiveReports.Chart.Graphics.Line(Color.Red, 1, LineStyle.Solid)
customAxisY.MajorTick.Visible = True
customAxisY.Max = 5
customAxisY.MaxDerived = False
customAxisY.Min = 0
customAxisY.Visible = True
' set the special custom axis properties
customAxisY.Parent = ((CType(Me.ChartControl1.ChartAreas(0).Axes("AxisY"), DataDynamics.ActiveReports.Chart.Axis)))
customAxisY.PlacementLength = 20
customAxisY.PlacementLocation = 30


It gives me error on line
Dim customAxisY As New DataDynamics.ActiveReports.Chart.CustomAxis

Error is:
Type DataDynamics.ActiveReports.Chart.CustomAxis is not defined

So which class library should I import to sort of this error.
or any full code scriplet???????????
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900