ryanlcs Posted July 21, 2009 Report Share Posted July 21, 2009 Hi How can I set the scroll bar option on and off and how can I set the charts background color? To be precise, i wanted the entire background of the chart with a color and the plotted area with another color. It seems hardly to get documents on charts fx. Thanks Chart.zip Quote Link to comment Share on other sites More sharing options...
Frank Posted July 21, 2009 Report Share Posted July 21, 2009 The default background is a Gradient Background. To set a plain background do: chart1.Background = null;The default background color is dependant on the palette. To change it to a specific color (not dependant on the palette) do: chart1.BackColor= <color>; To turn scrolling on and off(default): chart.AxisX.AutoScroll = true/false; Notice that the scrollbar will only show if there is a need for it. Quote Link to comment Share on other sites More sharing options...
ryanlcs Posted July 21, 2009 Author Report Share Posted July 21, 2009 The BackColor properties will set the entire background color. How about setting the background color for the chart plotted area, the middle section? The scrolling is turn on when the enable check box is clicked. So, how can I fired the scrolling to true from javascript? Thanks. Quote Link to comment Share on other sites More sharing options...
ryanlcs Posted July 21, 2009 Author Report Share Posted July 21, 2009 I found this from online documentation: Dim myGradient = New GradientBackground(GradientType.BackwardDiagonal) Charts.PlotAreaBackground = myGradient But to use gradient, "ChartFX.Adornments.dll" must be added as reference, but I cant find this dll file, only manage to get "ChartFX.WebForms.Adornments.dll". I dunno are they the same. From the code, I hit an error, saying "GradientBackground" is not defined. Please help. Quote Link to comment Share on other sites More sharing options...
RandyJ Posted July 28, 2009 Report Share Posted July 28, 2009 Hi, Are you using the Webforms version of the product? Have you dropped a chart control directly from the toolbox onto a form? If so, this library should have been added automatically. If not, try adding it manually. The one you need to add is: ChartFX.WebForms.Adornments.dll In order to specify a color for the plot area, you can set it as follows: Chart1.PlotAreaColor = Drawing.Color.Red 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.