Welcome Guest Search | Active Topics |

Canvas not drawn
TM
#1 Posted : Thursday, July 11, 2013 5:30:37 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/11/2013(UTC)
Posts: 2

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi!

I have a strange issue that I have been trying to figure out the cause of.
For some reason the canvas is not drawn, I have included all the script and stylesheet files
that is required but it does not still work... I'm using the Twitter Bootstrap framework and MVC 4.0, here is the
source code:

Layout file:
https://www.dropbox.com/s/4n0bj4fvt6us93s/_Layout.cshtml

The HTML file were it shall be drawn:
https://www.dropbox.com/s/vhyujzt0nd4rl7s/Index.cshtml

Here is the actual rendering of the site:
https://www.dropbox.com/s/957q9zk2r49s9bw/jqChartRendering.txt

What can the cause be? I have been using jqChart with MVC 2.0 a few months ago and there it worked perfectly.
Has something been changed in the latest version?

Regards,
Robin
Ivan
#2 Posted : Thursday, July 11, 2013 11:34:43 AM(UTC)
Rank: Administration

Groups: Administrators, Moderator, Registered
Joined: 11/5/2012(UTC)
Posts: 131

Thanks: 0 times
Was thanked: 15 time(s) in 15 post(s)
Please, define the jquery, jqChart js libraries, as well as their css files before using jqChart ( <%= Html.JQChart().Chart(Model).. ).
Best,
Ivan Petrov
jqChart Inc.
TM
#3 Posted : Thursday, July 11, 2013 12:27:43 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/11/2013(UTC)
Posts: 2

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Ivan wrote:
Please, define the jquery, jqChart js libraries, as well as their css files before using jqChart ( <%= Html.JQChart().Chart(Model).. ).

Aha, now it's working... So there is not a solution so I can move the required files to the end of the body content, while still loading the chart succesfully? So the loading times are decreased I mean.
Ivan
#4 Posted : Friday, July 12, 2013 11:36:32 AM(UTC)
Rank: Administration

Groups: Administrators, Moderator, Registered
Joined: 11/5/2012(UTC)
Posts: 131

Thanks: 0 times
Was thanked: 15 time(s) in 15 post(s)
We used to render the jqChart JavaScript code at the end, but we changed this. Now the jqChart JavaScript code is rendered on the web page at the exact place where it's defined on the ASP.NET MVC page. We did this, because this makes easier to synchronize several charts on a single web page.
Best,
Ivan Petrov
jqChart Inc.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 1.934 seconds.