Jump to content
Software FX Community

Bars and Curves plot beyond the graph area


Recommended Posts

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.

Link to comment
Share on other sites

  • 3 weeks later...

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