How to add legend manually for RadPiechart

1 posts, 0 answers
  1. Kishor
    Kishor avatar
    82 posts
    Member since:
    Oct 2012

    Posted 10 Jul 2013 Link to this post

    hello 

    i want to add legent for Radpie chart manually
    please help
    i want to add this legent at left side 

           1 Cust Traning")
          2 "Cust Traning No Invoice")
           3 ("PM")
           4 ("Repair")
           5 "Start Up Inv Labor")
           6 ("Start Up - No Invoice")
           7 ("Svc Traning")
           8 ("Upgrade")
           9 ("Start Up - Inv Labor & Exp")

    showing with diffrent colors

    thanks in advance 
    waiting for reply
    <telerik:RadChart ID="RadChart2" runat="server" SkinsOverrideStyles="True" Visible ="False"
                        Width="900px" Skin="LightBlue" AutoLayout ="true"  
                     AutoTextWrap="True"
                   DefaultType="Pie" Height="400px">
                         <PlotArea>
                              <XAxis MaxValue="5" MinValue="1" Step="1">
                                  <Appearance Color="153, 187, 208" MajorTick-Color="153, 187, 208">
                                      <MajorGridLines Color="153, 187, 208" Width="0" />
                                      <TextAppearance TextProperties-Color="72, 124, 160">
                                      </TextAppearance>
                                  </Appearance>
                                  <AxisLabel>
                                      <TextBlock>
                                          <Appearance TextProperties-Color="72, 124, 160">
                                          </Appearance>
                                      </TextBlock>
                                  </AxisLabel>
                              </XAxis>
                              <YAxis MaxValue="25" Step="5">
                                  <Appearance Color="153, 187, 208" MajorTick-Color="153, 187, 208"
                                      MinorTick-Color="153, 187, 208">
                                      <MajorGridLines Color="153, 187, 208" />
                                      <MinorGridLines Color="153, 187, 208" />
                                      <TextAppearance TextProperties-Color="72, 124, 160">
                                      </TextAppearance>
                                  </Appearance>
                                  <AxisLabel>
                                      <TextBlock>
                                          <Appearance TextProperties-Color="72, 124, 160">
                                          </Appearance>
                                      </TextBlock>
                                  </AxisLabel>
                              </YAxis>
                              <Appearance Dimensions-Margins="18%, 23%, 12%, 10%">
                                  <FillStyle MainColor="255, 255, 238" SecondColor="Transparent">
                                  </FillStyle>
                                  <Border Color="153, 187, 208" />
                              </Appearance>
                         </PlotArea>
                         <Series>
                              <telerik:ChartSeries Name="Cost of Job" Type="Pie">
                                   <Appearance>
                                       <FillStyle FillType="ComplexGradient" MainColor="243, 206, 119">
                                           <FillSettings>
                                               <ComplexGradient>
                                                   <telerik:GradientElement Color="243, 206, 119" />
                                                   <telerik:GradientElement Color="236, 190, 82" Position="0.5" />
                                                   <telerik:GradientElement Color="210, 157, 44" Position="1" />
                                               </ComplexGradient>
                                           </FillSettings>
                                       </FillStyle>
                                       <TextAppearance TextProperties-Color="112, 93, 56">
                                       </TextAppearance>
                                       <Border Color="223, 170, 40" />
                                   </Appearance>
                                   <Items>
                                        <telerik:ChartSeriesItem YValue="23" Name="Item 1">
                                        </telerik:ChartSeriesItem>
                                        <telerik:ChartSeriesItem YValue="20" Name="Item 2">
                                        </telerik:ChartSeriesItem>
                                        <telerik:ChartSeriesItem YValue="24" Name="Item 3">
                                        </telerik:ChartSeriesItem>
                                        <telerik:ChartSeriesItem YValue="19" Name="Item 4">
                                        </telerik:ChartSeriesItem>
                                        <telerik:ChartSeriesItem YValue="25" Name="Item 5">
                                        </telerik:ChartSeriesItem>
                                        <telerik:ChartSeriesItem YValue="25" Name="Item 6">
                                        </telerik:ChartSeriesItem>
                                        <telerik:ChartSeriesItem YValue="25" Name="Item 7">
                                        </telerik:ChartSeriesItem>
                                        <telerik:ChartSeriesItem YValue="25" Name="Item 8">
                                        </telerik:ChartSeriesItem>
                                        <telerik:ChartSeriesItem YValue="25" Name="Item 9">
                                        </telerik:ChartSeriesItem>
                                   </Items>
                              </telerik:ChartSeries>
                         </Series>
                         <Appearance>
                             <FillStyle MainColor="240, 252, 255">
                             </FillStyle>
                             <Border Color="182, 224, 249" />
                         </Appearance>
                         <ChartTitle>
                             <Appearance>
                                 <FillStyle MainColor="">
                                 </FillStyle>
                             </Appearance>
                             <TextBlock Text="COST OF JOB">
                                 <Appearance TextProperties-Color="8, 103, 166">
                                 </Appearance>
                             </TextBlock>
                         </ChartTitle>
                                                   
                         <Legend>
                             <Appearance Corners="Round, Round, Round, Round, 6">
                                 <ItemTextAppearance TextProperties-Color="62, 117, 154">
                                  
                                 </ItemTextAppearance>
                                 <Border Color="208, 237, 255" />
                             </Appearance>
                         </Legend>
                    </telerik:RadChart>
Back to Top