2012-02-12 108 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"">