Kendo ui ASP.NET MVC剑道UI图表垂直滚动

Kendo ui ASP.NET MVC剑道UI图表垂直滚动,kendo-ui,Kendo Ui,我有以下代码: <div overflow:auto class="chart-wrapper"> @(Html.Kendo().Chart(Model).Name("chart") .Title(title => title .Text("Comments per day") .Align(ChartTextAlignment.Left) ).Legend(legend => legend

我有以下代码:

<div overflow:auto class="chart-wrapper">
            @(Html.Kendo().Chart(Model).Name("chart")
    .Title(title => title
        .Text("Comments per day")
        .Align(ChartTextAlignment.Left)
    ).Legend(legend => legend
        .Visible(false)
    )
    .Series(series =>
    {
        series.Column(
            model => model.SE

        );
        series.Column(model => model.SL)
        .Labels(labels => labels.Background("transparent").Visible(true));
    })
    .CategoryAxis(axis => axis
        .Categories(model => model.Year )
        .MajorGridLines(lines => lines.Visible(false))
        .Line(line => line.Visible(false))
    )
    .ValueAxis(axis => axis.Numeric()
        .Max(28)
        .MajorGridLines(lines => lines.Visible(false))
        .Visible(false)
    )
) 

   </div>

@(Html.Kendo().Chart(Model.Name)(“图表”)
.Title(Title=>Title
.文本(“每日评论”)
.Align(ChartTextAlignment.Left)
).Legend(Legend=>Legend
.可见(假)
)
.系列(系列=>
{
系列.专栏(
model=>model.SE
);
series.Column(model=>model.SL)
.Labels(Labels=>Labels.Background(“透明”).Visible(true));
})
.CategoryAxis(轴=>轴
.Categories(车型=>model.Year)
.MajorGridLines(lines=>lines.Visible(false))
.Line(Line=>Line.Visible(false))
)
.ValueAxis(axis=>axis.Numeric()
.Max(28)
.MajorGridLines(lines=>lines.Visible(false))
.可见(假)
)
) 

我想添加垂直滚动到这个图表。我该怎么办

剑道有滚动和平移,这在我的经验中非常有效。我要注意的是,必须在类别轴上设置最小/最大计数才能使其正常工作。

您的
图表包装器
CSS类是否有明确的高度?另外,
overflow:auto
在您的
div
标签上做什么?这也应该在CSS中定义。是的,图表包装有一个明确的高度,至于溢出:auto我不知道它应该在我的CSS类中,事实上我在CSS中不是很好,你有什么线索吗?提前思考