This is a migrated thread and some comments may be shown as answers.

Can't get rid of whitepace around graph

2 Answers 37 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Erin
Top achievements
Rank 1
Erin asked on 28 Jul 2009, 08:38 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Ves
Telerik team
answered on 31 Jul 2009, 06:27 AM
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.
0
Erin
Top achievements
Rank 1
answered on 31 Jul 2009, 08:23 AM
That did the trick.  Thanks!
Tags
Chart (Obsolete)
Asked by
Erin
Top achievements
Rank 1
Answers by
Ves
Telerik team
Erin
Top achievements
Rank 1
Share this question
or