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

Error loading chart

0 Answers 69 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 15 Nov 2012, 03:22 AM
folks
My company has paid for a 3 license copy of KendoUI
I am posting here and not under the company registered user name as no one monitors that email

I am using

2012.2.710 release (because I can't upgrade

I get a error when the Chart is rendered
Error(see attachment):
0x800a01b6 - Microsoft JScript runtime error: Object doesn't support this property or method

Rendered chart HTML(5.0/4.1)/jquery(1.7.2):
<div class="k-widget k-chart" id="chart"></div><script>
    jQuery(function(){jQuery("#chart").kendoChart({series:[{name:"Sale Value",type:"area",field:"SaleValue"}],categoryAxis:{categories:["2007","2008","2009","2010","2011"]},dataSource:{data:[{"Year":2007,"SaleValue":250000.0000},{"Year":2008,"SaleValue":500000.0000},{"Year":2009,"SaleValue":250000.0000},{"Year":2010,"SaleValue":500000.0000},{"Year":2011,"SaleValue":250000.0000}]}});});
</script>

Browser must IE8: nearly the biggest forgein client base, well be soon

code that made it happen ,includes commented out Telerik code that works with this model
@(Html.Kendo().Chart(Model.AnnualSalesList)
    .Name("chart")
    .Series(series =>
    {
        series.Area(s => s.SaleValue);
    })
    .CategoryAxis(axis => axis
    .Categories(s => s.Year)) 
        )
@*
@(Html.Telerik().Chart(Model.AnnualSalesList)
    .Name("chart")
    .Legend(false)
    .Series(series =>
    {
        series.Area(s => s.SaleValue).Name("Sales by Year");
    })
    .CategoryAxis(axis => axis
    .Categories(s => s.Year))
    .ValueAxis(axis => axis
    .Numeric().Labels(labels => labels.Format("${0:#,##0}")))
    .Theme("Metro")
    .HtmlAttributes(new { style = "width: 450px; height: 200px; margin: auto;" })
        )
*@



Regards

Greg

No answers yet. Maybe you can help?

Tags
Chart
Asked by
Greg
Top achievements
Rank 1
Share this question
or