mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-02 07:06:37 +08:00
项目结构调整
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using LiveCharts;
|
||||
using LiveCharts.Wpf;
|
||||
|
||||
namespace Winforms.Cartesian.Inverted_Series
|
||||
{
|
||||
public partial class InvertedSeries : Form
|
||||
{
|
||||
public InvertedSeries()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
cartesianChart1.Series.Add(new VerticalLineSeries
|
||||
{
|
||||
Values = new ChartValues<double> { 3, 5, 2, 6, 2, 7, 1 }
|
||||
});
|
||||
|
||||
cartesianChart1.Series.Add(new RowSeries
|
||||
{
|
||||
Values = new ChartValues<double> {6, 2, 6, 3, 2, 7, 2}
|
||||
});
|
||||
|
||||
cartesianChart1.AxisY.Add(new Axis
|
||||
{
|
||||
Separator = new Separator { Step = 1}
|
||||
});
|
||||
|
||||
cartesianChart1.AxisX.Add(new Axis
|
||||
{
|
||||
MinValue = 0
|
||||
});
|
||||
|
||||
var tooltip = new DefaultTooltip
|
||||
{
|
||||
SelectionMode = TooltipSelectionMode.SharedYValues
|
||||
};
|
||||
|
||||
cartesianChart1.DataTooltip = tooltip;
|
||||
}
|
||||
|
||||
private void InvertedSeries_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user