// 新しいプロット領域をFlexChartに追加します。Rowプロパティを使用してプロット領域を配置する位置を決定します
flexChart1.PlotAreas.Add(new PlotArea { Name = "plot1", Row = 1 });
flexChart1.PlotAreas.Add(new PlotArea { Name = "plot2", Row = 3 });
flexChart1.PlotAreas.Add(new PlotArea { Name = "plot3", Row = 5 });
// 新しい系列(Accelerationという)を作成して、PlotAreaNameを設定します
var acceleration = new Series
{
Name = "Acceleration",
DataSource = CreateDataPoints((x) => x, (y) => y, 20),
AxisY = new Axis {Position = Position.Left, MajorGrid = true, PlotAreaName = "plot1"}
};
this.flexChart1.Series.Add(acceleration);
// 新しい系列(Velocityという)を作成して、PlotAreaNameを設定します
var velocity = new Series
{
Name = "Velocity",
DataSource = CreateDataPoints((x) => x, (y) => y * y, 20),
AxisY = new Axis {Position = Position.Left, MajorGrid = true, PlotAreaName = "plot2"}
};
this.flexChart1.Series.Add(velocity);
// 新しい系列(Distanceという)を作成して、PlotAreaNameを設定します
var distance = new Series
{
Name = "Distance",
DataSource = CreateDataPoints((x) => x, (y) => 0.5 * y * y * y, 20),
AxisY = new Axis {Position = Position.Left, MajorGrid = true, PlotAreaName = "plot3"}
};
this.flexChart1.Series.Add(distance);
' 新しいプロット領域をFlexChartに追加します。Rowプロパティを使用してプロット領域を配置する位置を決定します
flexChart1.PlotAreas.Add(New PlotArea() With {
.Name = "plot1",
.Row = 1
})
flexChart1.PlotAreas.Add(New PlotArea() With {
.Name = "plot2",
.Row = 3
})
flexChart1.PlotAreas.Add(New PlotArea() With {
.Name = "plot3",
.Row = 5
})
' 新しい系列(Accelerationという)を作成して、PlotAreaNameを設定します
Dim acceleration As Series = New Series() With {
.Name = "Acceleration",
.DataSource = CreateDataPoints(Function(x) x, Function(y) y, 20),
.AxisY = New Axis() With {
.Position = Position.Left,
.MajorGrid = True,
.PlotAreaName = "plot1"
}
}
Me.flexChart1.Series.Add(acceleration)
' 新しい系列(Velocityという)を作成して、PlotAreaNameを設定します
Dim velocity As Series = New Series() With {
.Name = "Velocity",
.DataSource = CreateDataPoints(Function(x) x, Function(y) y * y, 20),
.AxisY = New Axis() With {
.Position = Position.Left,
.MajorGrid = True,
.PlotAreaName = "plot2"
}
}
Me.flexChart1.Series.Add(velocity)
' 新しい系列(Distanceという)を作成して、PlotAreaNameを設定します
Dim distance As Series = New Series() With {
.Name = "Distance",
.DataSource = CreateDataPoints(Function(x) x, Function(y) 0.5 * y * y * y, 20),
.AxisY = New Axis() With {
.Position = Position.Left,
.MajorGrid = True,
.PlotAreaName = "plot3"
}
}
Me.flexChart1.Series.Add(distance)