mithun.pentuker Posted July 6, 2009 Report Share Posted July 6, 2009 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. Quote Link to comment Share on other sites More sharing options...
RandyJ Posted July 27, 2009 Report Share Posted July 27, 2009 Hi, I am not sure I understand what you meant by "in both cases, my plotting goes beyond the coordinates". Could you please elaborate a little bit more on this? Regards, RandyJ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.