Bober02 Posted August 13, 2010 Report Share Posted August 13, 2010 Hello guys, It's me again. I would like to do simple thing this time - remove most of the effects you have in Chart class, such as "bent" bottom of chart, reflection on the bent part etc. Is there any particular class which sets all these things? Quote Link to comment Share on other sites More sharing options...
JuanC Posted August 13, 2010 Report Share Posted August 13, 2010 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 Quote Link to comment Share on other sites More sharing options...
Bober02 Posted August 15, 2010 Author Report Share Posted August 15, 2010 Thanks a lot for an elaborative response. I have one question - I would like to keep the default style, with no effects, but I would like to remove this folded/bent effect at the bottom end of the chart in the default style. Is there a way to do it? Quote Link to comment Share on other sites More sharing options...
JuanC Posted August 16, 2010 Report Share Posted August 16, 2010 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 Quote Link to comment Share on other sites More sharing options...
Bober02 Posted August 17, 2010 Author Report Share Posted August 17, 2010 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. Quote Link to comment Share on other sites More sharing options...
JuanC Posted August 17, 2010 Report Share Posted August 17, 2010 Using a different style (Basic, Simple) would significantly reduce that empty space. Have you actually tried any of these styles? JuanC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.