mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-07 10:10:49 +08:00
24 lines
1.3 KiB
XML
24 lines
1.3 KiB
XML
<UserControl x:Class="Wpf.CartesianChart.NegativeStackedRow.NegativeStackedRowExample"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:Wpf.CartesianChart.NegativeStackedRow"
|
|
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="300" d:DesignWidth="300" d:DataContext="{d:DesignInstance local:NegativeStackedRowExample }">
|
|
<Grid>
|
|
<lvc:CartesianChart Series="{Binding SeriesCollection}">
|
|
<lvc:CartesianChart.AxisX>
|
|
<lvc:Axis LabelFormatter="{Binding Formatter}"></lvc:Axis>
|
|
</lvc:CartesianChart.AxisX>
|
|
<lvc:CartesianChart.AxisY>
|
|
<lvc:Axis Title="Age Range" Labels="{Binding Labels}"></lvc:Axis>
|
|
</lvc:CartesianChart.AxisY>
|
|
<lvc:CartesianChart.DataTooltip>
|
|
<lvc:DefaultTooltip SelectionMode="SharedYValues"></lvc:DefaultTooltip>
|
|
</lvc:CartesianChart.DataTooltip>
|
|
</lvc:CartesianChart>
|
|
</Grid>
|
|
</UserControl>
|