mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-12 12:39:27 +08:00
项目结构调整
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
using System.Windows.Forms;
|
||||
using LiveCharts;
|
||||
using LiveCharts.Defaults;
|
||||
using LiveCharts.Wpf;
|
||||
|
||||
namespace Winforms.Cartesian.BasicBubbles
|
||||
{
|
||||
public partial class BasicBubblesExample : Form
|
||||
{
|
||||
public BasicBubblesExample()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
cartesianChart1.Series = new SeriesCollection
|
||||
{
|
||||
new ScatterSeries
|
||||
{
|
||||
Values = new ChartValues<ScatterPoint>
|
||||
{
|
||||
//X Y W
|
||||
new ScatterPoint(5, 5, 20),
|
||||
new ScatterPoint(3, 4, 80),
|
||||
new ScatterPoint(7, 2, 20),
|
||||
new ScatterPoint(2, 6, 60),
|
||||
new ScatterPoint(8, 2, 70)
|
||||
},
|
||||
MinPointShapeDiameter = 15,
|
||||
MaxPointShapeDiameter = 45
|
||||
},
|
||||
new ScatterSeries
|
||||
{
|
||||
Values = new ChartValues<ScatterPoint>
|
||||
{
|
||||
new ScatterPoint(7, 5, 1),
|
||||
new ScatterPoint(2, 2, 1),
|
||||
new ScatterPoint(1, 1, 1),
|
||||
new ScatterPoint(6, 3, 1),
|
||||
new ScatterPoint(8, 8, 1)
|
||||
},
|
||||
PointGeometry = DefaultGeometries.Triangle,
|
||||
MinPointShapeDiameter = 15,
|
||||
MaxPointShapeDiameter = 45
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user