DX 11.2 也具有相同的属性。检查以下 DX 11.2 演示的代码片段
if (settings.Diagram is XYDiagram) {
((XYDiagram)settings.Diagram).Rotated = options.Rotated;
Axis2D axisY = ((XYDiagram)settings.Diagram).AxisY;
axisY.Interlaced = true;
axisY.Title.Text = "Population, millions";
axisY.Title.Visible = true;
}
else {
XYDiagram3D diagram = (XYDiagram3D)settings.Diagram;
diagram.AxisX.Label.MaxWidth = 60;
diagram.AxisY.Interlaced = true;
diagram.RotationType = RotationType.UseAngles;
diagram.RotationOrder = RotationOrder.XYZ;
diagram.ZoomPercent = 140;
diagram.VerticalScrollPercent = 4;
}
Html.DevExpress().Chart(settings)
.Bind(Model)
.Render();
检查您的 DevExpress Demos 文件夹中的 Chart Demo(C:\Users\Public\Documents\DevExpress 2011.2 Demos\Components\ASP.NET\MVC\CS\MVCDemos\Views\Chart),在那里您将获得局部视图文件名“BarViewsSideBySideStackedPartial “这有助于实现这一点。
希望这有帮助。