Jump to content
Software FX Community

Removing ChartFX effects


Bober02

Recommended Posts

You can modify the UseEffects property which will remove some of the effects (in the default glass style it will remove the reflection at the bottom as well as the shadows in some of the galleries)

chart1.UseEffects =

false;

You can also completely change the style of the chart by using one of the following lines of code (this can also be set in XAML)

chart1.Style = ChartFX.WPF.Motifs.

Basic.Style;chart1.Style = ChartFX.WPF.Motifs.Simple.Style;// These are more elaborate and are implemented in ChartFX.WPF.Motifs.dllchart1.Style = ChartFX.WPF.Motifs.Edge.Style;chart1.Style = ChartFX.WPF.Motifs.Spotlight.Style;chart1.Style = ChartFX.WPF.Motifs.Blinds.Style;chart1.Style = ChartFX.WPF.Motifs.Floating.Style;// Implemented in ChartFX.WPF.Motifs.HandDrawn.dllchart1.Style = ChartFX.WPF.Motifs.HandDrawn.Style; 

JuanC

Link to comment
Share on other sites

No, other than UseEffects there is no way to further customize the default glass effect other than writing your own templates/styles.

Also note that you can mix and match the style for the chart as a whole, the markers and gallery templates, border and palette, e.g.

chart1.Style = ChartFX.WPF.Motifs.

Simple.Style;chart1.GalleryTemplates = ChartFX.WPF.Motifs.Glass.GalleryTemplates;chart1.MarkerTemplates = ChartFX.WPF.Motifs.Glass.MarkerTemplates;chart1.Border = ChartFX.WPF.Borders.Glossy;chart1.Palette = ChartFX.WPF.Palettes.Mesa; 

JuanC 

Link to comment
Share on other sites

Hi All, I have another question with regards to styling the charting component. Is there a way to remove the unnecessary free space (border around the plot area mostly) to save some more space for the actual graph? I included a very crude picture of what I would like to get rid off. Thanks in advance.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...