Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

White, clean sheet. #31

Closed
Jora-zolotoj opened this issue Oct 24, 2016 · 3 comments
Closed

White, clean sheet. #31

Jora-zolotoj opened this issue Oct 24, 2016 · 3 comments

Comments

@Jora-zolotoj
Copy link

Jora-zolotoj commented Oct 24, 2016

  1. PM> Install-Package Chart.Mvc.
  2. Inserted into View all the code entirely from the example:

@{Layout = null;}
@using Chart.Mvc.ComplexChart;
@using Chart.Mvc.Extensions
@....
...

@Html.CreateChart("myCanvas", barChart)

  1. Run...:

An unhandled exception on line 16, column 801 to http: // localhost: 62329 / Home / ComplexCharts
0x800a1391 - JavaScript Runtime Error: "Chart" is not defined

...var myCanvas_chart = new Chart(ctx).Bar(data, options)...

I got a white blank sheet. What's wrong?

@Jora-zolotoj
Copy link
Author

Jora-zolotoj commented Oct 24, 2016

@section scripts{
... src="~/Scripts/Chart.js">
</script>}
123

@Jora-zolotoj
Copy link
Author

I do not know where to dig?

@martinobordin
Copy link
Owner

Be sure to have loaded the the chart.js library (check network tab in f12 developer tools)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants