Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/panuon/panuon.wpf.charts


https://github.com/panuon/panuon.wpf.charts

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Panuon.WPF.Charts

`This project is still under development.`

## How to use

### 1. Add Chart Control

Add a CartesianChart control (for line charts, column charts, etc.) or a RadialChart control (for pie charts, donut charts, etc.).

```xml
xmlns:pc="https://opensource.panuon.com/wpf-charts"
...

or

```

Add a data source, supporting data binding.

```CSharp

chart.ItemsSource = new object[]
{
{ Title = "Data 1", Value1 = 5, Value2 = 15, Value3 = 10, Value4 = 20, Value5 = 15 },
{ Title = "Data 2", Value1 = 15, Value2 = 10, Value3 = 20, Value4 = 30, Value5 = 20 },
...
}
```

### 2. Set axises (optional)

Add X and Y axes to the chart to customize the axis details (Note: RadialChart does not support XY axes), or hide the axes by using `XAxis="{x:Null}"` or `YAxis="{x:Null}"`.

```xml

...


...

```

### 3. Add layers (optional)

By default, the chart control does not respond to mouse interactions. You can enhance mouse interaction effects (such as crosshairs and hover points) by adding layers. Additionally, you can customize additional layers by deriving from the LayerBase class.
`Panuon.UI.Charts` currently provides two layers, and we will continue to optimize them.

```xml


```
### 4. Add series to chart

You can add chart series to the `Series` property of the chart control.

```xml

...

```

Available series are listed here.

#### CartesianChart

#### LineSeries

```xml

```

#### ColumnSeries

Note: The ColumnWidth property is of type GridLength, which supports using percentages (e.g., ColumnWidth="0.2*"), indicating that the column width will be 20% of the available width for that coordinate column. If you do not explicitly set the ColumnWidth property, the chart control will use the default automatic value.

```xml

```

#### ClusteredColumnSeries

```xml



```