asp.net mvc - Dotnet highcharts not working (Missing assembly) -
hello im using mvc3 (visual studio express 2012)
i follow instructions on side; http://dotnethighcharts.codeplex.com/
i have made new controller called testhscontroller corresponding view.
the problem when im trying run code;
public actionresult index() { dotnet.highcharts.highcharts chart = new dotnet.highcharts.highcharts("chart") .setxaxis(new xaxis { categories = new[] { "jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec" } }) .setseries(new series { info = new data(new object[] { 29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4 }) }); homecoming view(chart); } the xaxis, series , info marked in bluish if im missing assembly, have added dotnet.highcharts reference , in _layout have added lines;
<script src="~/scripts/jquery-1.7.1.min.js"></script> <script src="~/scripts/highcharts.js"></script> the files in repective places.
any input appriciated.
add next controller class
using dotnet.highcharts; using dotnet.highcharts.options; // xaxis , series using dotnet.highcharts.helpers; // info if still not build, there problem project.
asp.net-mvc visual-studio highcharts dotnethighcharts
No comments:
Post a Comment