Bubble Appearnce

4 posts, 0 answers
  1. Allen
    Allen avatar
    18 posts
    Member since:
    Apr 2013

    Posted 09 Dec 2013 Link to this post

    Hi,

    I am trying to figure out how to best change the appearance of the bubbles that appear on my bubble chart.

    I want it to display a simple flat 2D colour without the extra shiny gloss that makes it look like 3D.

    I do not see any obvious property in

    BubbleSeriesDefinition

    or

    PointMarkAppearanceSettings

    As Setting the Fill in these settings still shows a gradient in the bubble when all I want is a simple flat solid colour.

    Any help is appreciated.
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 12 Dec 2013 Link to this post

    Hi Allen,

    I think you should be able to use an implicit style targeting the Bubble and removing the mask from the template:
    <Style TargetType="telerikCharting:Bubble">
     <Setter Property="Template" >
      <Setter.Value>
       <ControlTemplate TargetType="telerikCharting:Bubble">
        <Canvas RenderTransformOrigin="{TemplateBinding RelativeCenterPoint}" x:Name="PART_MainContainer">
         <Path x:Name="PART_BubbleElement"
          Data="{TemplateBinding ItemGeometry}"
          Style="{TemplateBinding ItemStyle}" />
         <Canvas.RenderTransform>
          <ScaleTransform x:Name="PART_AnimationTransform" ScaleX="0" ScaleY="0" />

    Regards,
    Petar Marchev
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Allen
    Allen avatar
    18 posts
    Member since:
    Apr 2013

    Posted 28 Jan 2014 in reply to Petar Marchev Link to this post

    Thanks that worked.

    Do you have any recommendations to changes the initial size of the largest bubble?

    By default it occupies one unit of the X-Axis.

    Thanks
    Allen
  5. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 31 Jan 2014 Link to this post

    Hi Allen,

    Have you examined the properties of the BubbleSeriesDefinition? I think that the CustomScaleFactor property will be a nice fit for your requirements.

    Regards,
    Petar Marchev
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top