WPF-Chart-Controls 1.1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package WPF-Chart-Controls --version 1.1.1.1                
NuGet\Install-Package WPF-Chart-Controls -Version 1.1.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WPF-Chart-Controls" Version="1.1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WPF-Chart-Controls --version 1.1.1.1                
#r "nuget: WPF-Chart-Controls, 1.1.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WPF-Chart-Controls as a Cake Addin
#addin nuget:?package=WPF-Chart-Controls&version=1.1.1.1

// Install WPF-Chart-Controls as a Cake Tool
#tool nuget:?package=WPF-Chart-Controls&version=1.1.1.1                

📈 WPF Chart Controls 📊

A WPF control library for responsive column, line, and pie charts.

NuGet Version GitHub contributors GitHub last commit License

🖥️ Demo

Kareem has a video demoing and explaining functionality or you can download and check out the charts in the Example project.

📊 2D Column Chart

Usage

  1. Import the namespace
xmlns:wpfChartControls="clr-namespace:WPFChartControls;assembly=WPFChartControls"
  1. Add chart
<wpfChartControls:_2DColumnChart />
  1. Bind data to Items property
    • using code-behind
    <wpfChartControls:_2DColumnChart x:Name="ColumnChart" />
    
    ColumnChart.Items = TestColumnItems.Case4;
    
    • using attribute binding
    <wpfChartControls:_2DColumnChart Items="{Binding Items}" />
    

Properties

  • Items - collection of ColumnItem items to be displayed in the chart
  • ColumnBrush - brush used for the ColumnItem items
  • Stroke - brush used to draw the axis and lines
  • StrokeThickness - thickness of the axis and lines
  • IntervalCount - number of intervals to be displayed on the Y-axis
  • InnerPadding - inner padding of the chart area
  • ColumnItem - an item in the column chart with a Header and Value
  • TestColumnItems - provides test case collections of ColumnItem instances

🥧 2D Pie Chart

Usage

  1. Import the namespace
xmlns:wpfChartControls="clr-namespace:WPFChartControls;assembly=WPFChartControls"
  1. Add chart
<wpfChartControls:_2DPieChart />
  1. Bind data to Items property
    • using code-behind
    <wpfChartControls:_2DPieChart x:Name="PieChart" />
    
    PieChart.Categories = TestPieCategories.Case6;
    
    • using attribute binding
    <wpfChartControls:_2DPieChart Categories="{Binding Categories}" />
    

Properties

  • Categories - collection of PieCategory items to be displayed in the chart
  • StrokeBrush - brush used to draw the strokes of the pie slices
  • StrokeThickness - thickness of the strokes of the pie slices
  • LegendPosition - position of the legend relative to the chart
  • PieCategory - a category in a pie chart with a Percentage, Title, and ColorBrush
  • LegendPosition - position of the legend (values: Top, Left, Right, Bottom)
  • TestPieCategories - provides test case collections of PieCategory instances

📈 Line Chart

Usage

  1. Import the namespace
xmlns:wpfChartControls="clr-namespace:WPFChartControls;assembly=WPFChartControls"
  1. Add chart
<wpfChartControls:LineChart />
  1. Bind data to Items property
    • using code-behind
    <wpfChartControls:LineChart x:Name="LineChart" />
    
    LineChart.Values = TestLineValues.Case3;
    
    • using attribute binding
    <wpfChartControls:LineChart Values="{Binding Values}" />
    

Properties

  • Values - collection of LineValue items to be displayed in the chart
  • AxisStrokeBrush - brush used to draw the axis strokes
  • AxisStrokeThickness - thickness of the axis strokes
  • GridLineStrokeBrush - brush used to draw the grid lines
  • GridLineStrokeThickness - thickness of the grid lines
  • GridLineOpacity - opacity of the grid lines
  • InnerPadding - inner padding of the chart area
  • ValueLineStrokeBrush - brush used to draw the value line
  • ValueLineStrokeThickness - thickness of the value line
  • XIntervalCount - number of intervals to be displayed on the X-axis
  • YIntervalCount - number of intervals to be displayed on the Y-axis
  • LineValue - a value in a line chart with X and Y coordinates
  • TestLineValues - provides test case collections of LineValue instances

💪🏾 Credits

Thank you to Kareem Sulthan, who shared the code that became the foundation of WPF Chart Controls.

From there I did lots of refactoring, made each chart adjust sizing when the window height/width is changed, and added documentation comments to increase reusability.

📃 License

The MIT License (MIT)

Copyright (c) 2024 Kareem Sulthan, Justin M Heartley

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.2 125 7/15/2024
1.1.1.1 108 6/18/2024
1.1.1 110 6/13/2024
1.1.0 130 6/13/2024
1.0.0 150 4/18/2024