Winforms 如何使用chart Devexpress在第二个轴上显示比率

Winforms 如何使用chart Devexpress在第二个轴上显示比率,winforms,charts,devexpress-windows-ui,Winforms,Charts,Devexpress Windows Ui,我有一个数据库 CREATE TABLE table1 ( name nvarchar(50), total int, ratio float ); insert into table1 (name, total, ratio) values ('dream', 1200, 0.15) insert into table1 (name, total, ratio) values ('SH', 2200, 0.2) insert into table1 (name, to

我有一个数据库

CREATE TABLE table1 (
    name nvarchar(50),
    total int,
    ratio float
);

insert into table1 (name, total, ratio) values ('dream', 1200, 0.15)
insert into table1 (name, total, ratio) values ('SH', 2200, 0.2)
insert into table1 (name, total, ratio) values ('Novo', 1000, 0.35)
我想在左边的第一个轴上显示总计,在右边的第二个轴上显示定额,如下所示

请给我你的建议,你必须补充。 大概是这样的:

var anotherY = new SecondaryAxisY("Tyle");
((XYDiagram)chartControl1.Diagram).SecondaryAxesY.Add(anotherY);
((LineSeriesView)seriesTyle.View).AxisY = anotherY;