mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-20 00:16:36 +08:00
项目结构调整
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<Page
|
||||
x:Class="UWP.CartesianChart.HeatChart.HeatSeriesExample"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:UWP.CartesianChart.HeatChart"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:lvc="using:LiveCharts.Uwp"
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"></RowDefinition>
|
||||
<RowDefinition Height="*"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Button Grid.Row="0" Height="30" Width="100" Click="ButtonBase_OnClick" Margin="10">Randomize</Button>
|
||||
<lvc:CartesianChart Grid.Row="1" DataTooltip="{x:Null}">
|
||||
<lvc:CartesianChart.Series>
|
||||
<lvc:HeatSeries Values="{Binding Values}" DataLabels="True">
|
||||
|
||||
<!--
|
||||
The GradientStopCollection is optional to define a custom gradient
|
||||
If this property is not specified, LiveCharts will set a gradient
|
||||
-->
|
||||
|
||||
<lvc:HeatSeries.GradientStopCollection>
|
||||
<GradientStop Offset="0" Color="#99FFFF00"></GradientStop>
|
||||
<GradientStop Offset=".25" Color="#FFFFFF00"></GradientStop>
|
||||
<GradientStop Offset=".50" Color="#990000FF"></GradientStop>
|
||||
<GradientStop Offset=".75" Color="#FF0000FF"></GradientStop>
|
||||
<GradientStop Offset="1" Color="#50505050"></GradientStop>
|
||||
</lvc:HeatSeries.GradientStopCollection>
|
||||
</lvc:HeatSeries>
|
||||
</lvc:CartesianChart.Series>
|
||||
<lvc:CartesianChart.AxisX >
|
||||
<lvc:Axis Labels="{Binding SalesMan}" LabelsRotation="-15">
|
||||
<lvc:Axis.Separator>
|
||||
<lvc:Separator Step="1"></lvc:Separator>
|
||||
</lvc:Axis.Separator>
|
||||
</lvc:Axis>
|
||||
</lvc:CartesianChart.AxisX>
|
||||
<lvc:CartesianChart.AxisY>
|
||||
<lvc:Axis Labels="{Binding Days}"></lvc:Axis>
|
||||
</lvc:CartesianChart.AxisY>
|
||||
</lvc:CartesianChart>
|
||||
</Grid>
|
||||
</Page>
|
||||
Reference in New Issue
Block a user