/De.TorstenMandelkow.MetroChart

Clone of "Modern UI (Metro) Charts for Windows 8, WPF, Silverlight"

Primary LanguageC#Microsoft Public LicenseMS-PL

Clone of "Modern UI (Metro) Charts for Windows 8, WPF, Silverlight": http://modernuicharts.codeplex.com/

###Relevant changes:

  • ChartSeries now has a BrushMember property, allowing the chart piece color to be set via data member rather than palette.

####Usage: Instead of setting a custom palette via the Palette property add a Brush member to the datapoint class used in the chart.

public class TestClass
{
    public string Category { get; set; }
    public int Number  { get; set; }
    public Brush Brush { get; set; } // <--
}

Then add that member to the ChartSeries xaml

<chart:ChartSeries
    SeriesTitle="Errors"
    DisplayMember="Category"
    ValueMember="Number"
    BrushMember="Brush" // <--
    ItemsSource="{Binding Path=Errors}" />

See Original documentation for reference.