2012-02-12 8 views
0

私はパイのグラフのタイプがあり、Mvcチャートのデフォルト設定として使用されている色を変更する必要があります!Mvc Pie Chartの色を変更するには?

この私のグラフの系列の文字列として

<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

は私が

<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> 

liekこのそれらを使用...

をそれを見つけました

<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

を動作させるためにパレットなしに決定してください? –

0

これはあなたがPaletteCustomColorsを追加

<Chart PaletteCustomColors=""180, 189,175;134,192, 106;189, 215, 121"" Palette=""None""> 
関連する問題