javascript - flotr2 chart showing blank screen on iOS -


I want to display the flotr2 chart on my iOS device. I have created UIWebView and tried to call index.html page but it is showing me blank page

I have also added the flotr2.min.js file to my project. Here is my HTML code:

  & lt; Html & gt; & Lt; Top & gt; & Lt; Style type = "text / css" & gt; Body {margin: 0 px; Padding: 0 pixels; } # Containers {width: 600px; Height: 384px; Margin: 8 PX Auto; } & Lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "container" & gt; & Lt; / Div & gt; & Lt; Script type = "text / javascript" src = "flotr2.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; (Function () {var container = document.getElementById ('container'), start = (new date) .getTime (), data, graph, offset, i; // timing a sign curve ion A. Chetan (t) { Data = []; Offset = 2 * Math. PI * (T-Start) / 10000; // For sample (i = 0; i & lt; 4 * Math; pi; i + = 0.2) {data .push ([I, math sin (i - offset)]} / draw graph graph = flotrend. (Container, [data], {yaxis: {max: 2, min: -2}}) // set settime Function () (animated (new date) .getTime ());}, 50);} Chetan (start);}) (); & lt; / script & gt; & lt; / body & gt;  

Note: h I try this code in different folders then it is working fine.

to solve it For this, you should give a baseURL parameter like this:


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -