Using Kendo MVC Kendo Chart. I want to disable legend of the chart. It looks like that:
:
I don't want to show left side of my chart so how can i disappear this legend? I tried to make true's to false but i am failed many times.
@(Html.Kendo().Chart(Model)
.Name("chart")
.Title(title => title
.Align(ChartTextAlignment.Center)
)
.Series(series =>
{
series.Bar(
model => model.Deger,
model => model.Color
)
.Labels(labels => labels.Background("transparent").Visible(true));
})
.CategoryAxis(axis => axis
.Categories(model => model.Parameter)
.MajorGridLines(lines => lines.Visible(true))
.Line(line => line.Visible(true))
)
.ValueAxis(axis => axis.Numeric()
.MajorGridLines(lines => lines.Visible(true))
.Visible(true)
)
.ChartArea(chartArea => chartArea.Background("transparent"))
.Tooltip(tooltip => tooltip
.Visible(true)
.Template("#= category #: #= value #"))
)