This is a migrated thread and some comments may be shown as answers.

Bar Chart - Error with ChartSeriesFactory

1 Answer 73 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Reafidy
Top achievements
Rank 1
Iron
Reafidy asked on 17 Jan 2016, 01:10 AM

I am using asp.net mvc 6 and your example chart code below.  I get an compile error on .bar -  ChartSeriesFactory' does not contain a definition for 'Bar' and no extension method 'Bar' accepting a first argument of type 'ChartSeriesFactory' could be found (are you missing a using directive or an assembly reference?

I'm using your latest code 2016.1.112 trial version and set up exactly as described in your documentation.

<div class="demo-section k-content wide">

    @(Html.Kendo().Chart()
        .Name("chart")
        .Title("Site Visitors Stats \n /thousands/")
        .Legend(legend => legend
            .Visible(false)
        )
        .ChartArea(chartArea => chartArea
            .Background("transparent")
        )
        .Series(series =>
        {
            series.Bar(new double[] { 56000, 63000, 74000, 91000, 117000, 138000 }).Name("Total Visits");
            series.Bar(new double[] { 52000, 34000, 23000, 48000, 67000, 83000 }).Name("Unique visitors");
        })
        .CategoryAxis(axis => axis
            .Categories("Jan", "Feb", "Mar", "Apr", "May", "Jun")
            .MajorGridLines(lines => lines.Visible(false))
        )
        .ValueAxis(axis => axis
            .Numeric()
            .Max(140000)
            .Line(line => line.Visible(false))
            .MajorGridLines(lines => lines.Visible(true))
        )
        .Tooltip(tooltip => tooltip
            .Visible(true)
            .Template("#= series.name #: #= value #")
        )
    )
</div>

1 Answer, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 20 Jan 2016, 02:07 PM
Hello,

The MVC 6 (or is it ASP.NET Core 1.0?) helpers are not functionally complete yet. They do not share code with our existing MVC 3/4/5 solution and we're rewriting them from scratch.

That said, we'll have the full set ready in a short time-frame. Hopefully, in time for the official release.

Apologies for the caused inconvenience.

Regards,
T. Tsonev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Reafidy
Top achievements
Rank 1
Iron
Answers by
T. Tsonev
Telerik team
Share this question
or