Pie Chart transparent pie colors

7 posts, 0 answers
  1. Michal
    Michal avatar
    3 posts
    Member since:
    Jan 2011

    Posted 10 Jan 2011 Link to this post

    Hi!

    I've been trying to set individual colors for the pie segments, this works ok. But the colors on the pie are somewhat less vivid that colors in legend - when I set a segment color to red, the legend is red, but the pie is pink. I've tried editing template for the pie:

    <Ellipse Clip="{TemplateBinding FigurePath}" Height="{TemplateBinding ItemActualHeight}" Style="{TemplateBinding ItemStyle}" StrokeThickness="0" Width="{TemplateBinding ItemActualWidth}"  />

    <
    Path x:Name="PART_DefiningGeometry" Data="{TemplateBinding FigurePath2}" Fill="Transparent" Style="{TemplateBinding ItemStyle}" StrokeThickness="0" />

    <
    Ellipse Clip="{TemplateBinding FigurePath3}" Fill="{StaticResource PieMaskBrush}" Height="{TemplateBinding ItemActualHeight}" Width="{TemplateBinding ItemActualWidth}" StrokeThickness="0" />

                   
    The first ellipse seems to be responsible for the pie color: when I set the ellipse's color explicitly to red, the pie was red (not pink), but when the color comes from Style="{TemplateBinding ItemStyle}", it's pink. How do I achieve vivid color on pie?


    Michal
  2. Sia
    Admin
    Sia avatar
    667 posts

    Posted 12 Jan 2011 Link to this post

    Hi Michal,

    Can you please try to set:
    <telerik:RadChart x:Name="RadChart1" PaletteBrushesUseSolidColors="True" />

    If you still experience the described problem, please let us know which theme you use.

    Greetings,
    Sia
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. Michal
    Michal avatar
    1 posts
    Member since:
    Sep 2010

    Posted 12 Jan 2011 Link to this post

    Hi,
    Worked great, thanks
    Michal
  5. Jean-Louis Lalonde
    Jean-Louis Lalonde avatar
    7 posts
    Member since:
    Jun 2010

    Posted 13 Jan 2011 Link to this post

    Hi there,

    I am also having trouble setting some custom colors. The color in question is #A3C5E1. For some reason the 3D pie chart is setting this color as transparent... Event when setting PaletteBrushesUseSolidColors="True".

    Thanks.
  6. Michal
    Michal avatar
    3 posts
    Member since:
    Jan 2011

    Posted 13 Jan 2011 Link to this post

    Hi, I'm just using 2D chart. I've tried the colour (adding FF in front of it) and it worked fine, displaying a light blue pie.
    Michal
  7. Jean-Louis Lalonde
    Jean-Louis Lalonde avatar
    7 posts
    Member since:
    Jun 2010

    Posted 13 Jan 2011 Link to this post

    Hi,

    I also tried adding #FF, but it did not change anything for me in the 3D mode...

    JL
  8. Sia
    Admin
    Sia avatar
    667 posts

    Posted 17 Jan 2011 Link to this post

    Hi Jean-Louis Lalonde,

    Actually the color which you have set is there but you cannot see it because the direction of the directional light makes it look transparent. A possible solution is to re-template the ChartArea and change the default direction. Please refer to the attached project and let us know if you need additional help.

    Regards,
    Sia
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top
DevCraft banner