2012-02-12 101 views
0

我有一個餡餅類型的圖表,需要更改用作Mvc圖表默認設置的顏色!如何更改Mvc餅圖顏色?

這是我的圖表系列

<Series _Template_=""All"" 
ShadowOffset=""2"" 
BorderColor=""64, 64, 64"" 
BorderDashStyle=""Solid"" 
BorderWidth=""1"" 
Color=""189, 215, 191"" 
IsValueShownAsLabel=""false"" 
Font=""Hacen Typographer, 12pt, GdiCharSet=0"" 
LabelForeColor=""100, 100, 100"" 
CustomProperties=""DoughnutRadius=60, 
PieLabelStyle=Outside, 
PieDrawingStyle=SoftEdge"" 
ChartType=""pie"" /> 

字符串,所以我在哪裏可以設置COLORE每個餡餅點或部分!

回答

1

發現...

我用這一個他們liek

<ChartArea Name=""Default"" _Template_=""All"" 

    BackColor=""Transparent"" BackSecondaryColor=""White"" BorderDashStyle=""Solid"" ShadowColor=""Transparent""> 

    <AxisY> 

    <LabelStyle Font=""Trebuchet MS, 8.25pt, style=Bold"" /> 

    </AxisY> 

    <AxisX LineColor=""64, 64, 64, 64""> 

    <LabelStyle Font=""Trebuchet MS, 8.25pt, style=Bold"" /> 

    </AxisX> 

</ChartArea> 

<Legend _Template_=""All"" BackColor=""Transparent"" Docking=""Bottom"" Font=""Trebuchet MS, 8.25pt, style=Bold"" 

LegendStyle = 「」 行 「」>

</Legend> 

上色餡餅,關鍵是要改變這裏

PaletteCustomColors=""180, 189,175;134,192, 106;189, 215, 121"" 

添加甚至顏色RGB,因爲你需要:)

+0

在其中添加PaletteCustomColors? – 2014-05-18 13:14:25

0

調色板768,16被設置爲無,這個工作

<Chart PaletteCustomColors=""180, 189,175;134,192, 106;189, 215, 121"" Palette=""None"">