This is a migrated thread and some comments may be shown as answers.

Bubble Appearnce

3 Answers 9 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Allen
Top achievements
Rank 1
Allen asked on 09 Dec 2013, 11:32 PM
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.

3 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 12 Dec 2013, 09:27 AM
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 >>
0
Allen
Top achievements
Rank 1
answered on 28 Jan 2014, 09:44 PM
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
0
Petar Marchev
Telerik team
answered on 31 Jan 2014, 12:19 PM
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 >>
Tags
Chart
Asked by
Allen
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Allen
Top achievements
Rank 1
Share this question
or