2012-07-12 47 views

回答

2

这是我得到了什么;

<asp:Chart> 
    <BorderSkin BackColor="Transparent" PageColor="Transparent" /> 
</asp:Chart> 
你的情况

这将是

<asp:Chart ID="Chart1" runat="server" style="z-index: 1; left: 100px; top: 50px; position: absolute; background-color: transparent " BackColor="Transparent" PageColor="Transparent" DataSourceID="SqlDataSource1" BackImageTransparentColor="Silver" BorderlineColor="Transparent" Width="410px"> 
    <BorderSkin BackColor="Transparent" PageColor="Transparent" /> 
</asp:Chart> 
+0

done :(:( TBogdan 2012-07-12 11:25:05

+0

不完全是,我编辑了我的答案,告诉你你需要什么 – saj 2012-07-12 11:27:32

+0

我不'不知道为什么,但围绕馅饼sitll仍然是... – TBogdan 2012-07-12 12:31:32

1

试试这个对我希望它的工作:

<asp:Chart ID="Chart1" runat="server"> 

     <Series> 
      <asp:Series Name="Series1" ChartType="Pie" XValueMember="relatedcity" 
       YValueMembers="state_id"> 
      </asp:Series> 
     </Series> 
     <ChartAreas> 
      <asp:ChartArea Name="ChartArea1" BackColor="Transparent"> 
      </asp:ChartArea> 
     </ChartAreas> 
    </asp:Chart> 

使用图表区域,使其透明背景。

0

设置图表和chartarea背景色=“透明”

<asp:Chart ID="Chart1" runat="server" BackColor="Transparent" > 
    <Titles> 
     <asp:Title Text="Bubble Chart"></asp:Title> 
    </Titles> 
    <ChartAreas> 
     <asp:ChartArea Name="ChartArea1" BackColor="Transparent"></asp:ChartArea> 
    </ChartAreas> 
    <Legends> 
     <asp:Legend LegendStyle="Table" Docking="Bottom" IsDockedInsideChartArea="false" Name="Legend1"></asp:Legend> 
    </Legends> 
</asp:Chart>