Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

NewWheelTech/MetroChart

Open more actions menu
 
 

Repository files navigation

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

Note:

Do not clone into a folder with the name "De.TortenMandelkow.MetroChart" in the path. The build script in XAMLReplace.targets (line 72) uses the path to determine which files to process for assembly name replacement and causes build to fail.

###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.

About

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

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • C# 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.