Jump to content
Software FX Community

mithun.pentuker

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by mithun.pentuker

  1. I am trying to plot a graph which has bars against the main Y-axis and 2 curves against the secondary Y-axis. In both cases, my plotting goes beyond the coordinates.

    Please have a look at the attachment to understand the problem I am facing. I am also pasting a snapshot of the code in which I am setting the properties for the graph.

    Thanks in advance.

     

    Chart_Returns.Series(0).Gallery = SoftwareFX.ChartFX.Gallery.Bar

    Chart_Returns.Series(0).Color = System.Drawing.Color.Green

    Chart_Returns.Series(1).Gallery = SoftwareFX.ChartFX.Gallery.Curve

    Chart_Returns.Series(1).Color = System.Drawing.Color.Red

    Chart_Returns.Series(1).MarkerShape = SoftwareFX.ChartFX.MarkerShape.None

    Chart_Returns.Series(1).LineWidth = 2

    Chart_Returns.Series(1).YAxis = YAxis.Secondary

     

    Chart_Returns.Series(2).Gallery = SoftwareFX.ChartFX.Gallery.Curve

    Chart_Returns.Series(2).Color = System.Drawing.Color.Blue

    Chart_Returns.Series(2).MarkerShape = SoftwareFX.ChartFX.MarkerShape.None

    Chart_Returns.Series(2).LineWidth = 2

    Chart_Returns.Series(2).YAxis = YAxis.Secondary

    Dim axis As SoftwareFX.ChartFX.Internet.Server.Axis

    axis = Chart_Returns.AxisY

    axis.Title.Text = "Assets(millions)"

    axis.LabelsFormat.Format = SoftwareFX.ChartFX.AxisFormat.Currency

    Dim axis1 As SoftwareFX.ChartFX.Internet.Server.Axis

    axis1 = Chart_Returns.AxisY2

    axis1.Title.Text = "Monthly Returns"

    axis1.LabelsFormat.Format = SoftwareFX.ChartFX.AxisFormat.Number

    Dim axis2 As SoftwareFX.ChartFX.Internet.Server.Axis

    axis2 = Chart_Returns.AxisX

    axis2.LabelAngle = "90"

    axis2.LabelsFormat.Format = AxisFormat.Date

    axis2.LabelsFormat.CustomFormat = "MMM"

    Beyond this, I have my datasource binding code and User Legends.

×
×
  • Create New...