Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Can i control the height of the column chart above the legend ?
posted

I am displaying a 2D column chart with a legend at the bottom of the chart. The entire height of the chart is about 350 pixels. The bottom legend takes up about 50 pixels, leaving the remaining pixels presumably for the columns (the actual chart) to appear above it....however for some unknown reason, the control is squeezing the column chart into the top 50 pixels of the remaining area. so i end up with a column chart that has the bars squeezed into a very tiny vertical area (about 50 pixels), 200 pixels of white space, and then the legend at the bottom.   When i move the legend to the RIGHT, it appears to resolve the issue and the bar chart expands vertically to consume much more of the available area...but when i move the legend to either the bottom or top, it exhibits this behavior. I can't seem to locate a property that i can use to control this. (on the pie charts there's a propery called "radius factor" or something like that which essentially sizes the pie chart in a flexible manner). On this column chart, i need the legends on the bottom due to the length of the text, so displaying it on the right or left is not an option. thanks for any advice you can offer.

Parents
  • 10880
    posted

    The area you speak of may be reserved for the column labels and series labels.  I would play with the Axis.X.Extent property to see if it resolves your issues.

Reply Children