1

我的问题是关于如何在 Telerik rad Html 图表中对 XAsis 进行分组?下图显示了我的 Html 柱形图的当前状态: 在此处输入图像描述 我只想知道如何按月对 XAsis 进行分组,这样它就不会重复。像这样的东西:

在此处输入图像描述

<telerik:radhtmlchart runat="server" id="RadHtmlChart1" OnLoad="RadHtmlChart1_Load" Width="800px" Height="500px"  >
    <PlotArea>
        <Series>
            <telerik:ColumnSeries  DataFieldY="TotalAdded" Stacked="true" >
              
                <Appearance>
                   
                            <FillStyle BackgroundColor="#d5a2bb"  ></FillStyle>
                        </Appearance>
              

                <LabelsAppearance Position="InsideEnd">

                    <ClientTemplate >
                       
                        #=dataItem.EventCode# 
                    </ClientTemplate>
                   
                </LabelsAppearance>
                
                        
            </telerik:ColumnSeries>


            


        </Series>


        <XAxis Color="Black" MajorTickType="Outside" MinorTickType="Outside" Reversed="false" Name="xAug" DataLabelsField="MonthName">
   
             <MinorGridLines Visible="false"></MinorGridLines>
                    <MajorGridLines Visible="false"></MajorGridLines>
             <LabelsAppearance RotationAngle="75"   >

                    
             </LabelsAppearance>
                 
           
            <MajorGridLines Color="#EFEFEF" Width="1" />
            <MinorGridLines Color="#F7F7F7" Width="1" />
            <TitleAppearance Position="Center" RotationAngle="0" Text="Months" />

    
       
                 <LabelsAppearance RotationAngle="75" Skip="0" Step="1"></LabelsAppearance>
                    <TitleAppearance Position="Center" RotationAngle="0" Text="Quarters">
                    </TitleAppearance>



                </XAxis>

    </PlotArea>

             <Legend>
                <Appearance Visible="false">
                </Appearance>
            </Legend>
</telerik:radhtmlchart>

4

0 回答 0