Can't get rid of whitepace around graph

Thread is closed for posting
3 posts, 1 answers
  1. Erin
    Erin avatar
    43 posts
    Member since:
    Mar 2008

    Posted 28 Jul 2009 Link to this post

    I'm trying to make a horizontal bar using RadChart Q3 2008 and I've gotten it to look and behave how I would like it but I'm having problems with the rendered image having a bunch of whitespace around it.  I basically want to trim all the excess whitespace from top and bottom, left and right out of the image.  I spent hours fiddling with all of the different properties but can't figure out how.  Any help would be appreciated.  Here is the the code for the chart:

    <telerik:radchart id="RadChart1" skinsoverridestyles="false" runat="server" borderwidth="0"
                    charttitle-visible="false" seriesorientation="Horizontal" backcolor="white" height="55px"
                    width="530px">
                    <Appearance  Border-Visible="false"  />
                    <PlotArea>
                        <Appearance FillStyle-MainColor="white"  FillStyle-FillType="Solid" border-width="0" Dimensions-AutoSize="true" />
                        <YAxis MaxValue="100" MinValue="0" Step="1" AxisMode="Normal" AutoScale="false" visible="false" />
                        <XAxis Visible="false"/>
                    </PlotArea>
                    <Series>
                        <telerik:ChartSeries Type="stackedbar" DefaultLabelValue="#Y% Completed">
                            <Appearance LegendDisplayMode="Nothing"  TextAppearance-TextProperties-Color="white" >
                                <FillStyle MainColor="Green" SecondColor="LightGreen"   FillSettings-GradientMode="Horizontal"/>
                            </Appearance>
                            <Items>
                                <telerik:ChartSeriesItem  yvalue="57" />
                            </Items>
                        </telerik:ChartSeries>
                        
                        <telerik:ChartSeries Type="stackedbar" >
                            <Appearance LegendDisplayMode="Nothing"  LabelAppearance-Visible="false">
                                <FillStyle MainColor="#FF7878" FillType="Solid"  />
                            </Appearance>
                            <Items>
                                <telerik:ChartSeriesItem  yvalue="100" />
                            </Items>
                        </telerik:ChartSeries>
                    </Series>
                </telerik:radchart>
  2. Answer
    Ves
    Admin
    Ves avatar
    2927 posts

    Posted 31 Jul 2009 Link to this post

    Hello Erin,

    You can decrease the plot area margins, more information is available in this help topic.

    Sincerely,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Erin
    Erin avatar
    43 posts
    Member since:
    Mar 2008

    Posted 31 Jul 2009 Link to this post

    That did the trick.  Thanks!
Back to Top