Note that there are some explanatory texts on larger screens.

plurals
  1. POgrails charts with sparklines/zingchart
    primarykey
    data
    text
    <p>I'm looking to make a bar graph for my webapp that takes data from a mySQL server. I want to use either sparklines or zinchart for my webapp. I've already tried to use them myself but I keep getting stuck. For sparklines I am using this in inside my body tads: </p> <pre><code>&lt;sparklines:bar id="id" values="threads" /&gt; </code></pre> <p>where id is the id of my table and threads is the column with the relevant data. ID would be on the x axis and threads on the y. The sparkline code above compiled and seemed to work, except that where my graph was supposed to be there was just one word "Loading..." </p> <p>As for zingapp I used the example in the plugin page:</p> <pre><code>&lt;zing:chart type="area" width="700" height="350" container="acceptToConvertChart" data="${data}" xLabels="${labels}" effect="4" /&gt; </code></pre> <p>but just changed data to dbContent, which is mapped from my controller to my view like so:</p> <pre><code> def appProjects = Threadcount.list() [dbContent: appProjects] </code></pre> <p>and for "labels" I used dbContent.id. When I ran the zingChart code I got the following error:</p> <blockquote> <p>No signature of method: zingchart.ZingChartTagLib$_closure2_closure3.doCall() is applicable for argument types: (threadsapp.Threadcount) values: [threadsapp.Threadcount : 1] Possible solutions: doCall(java.lang.Object, java.lang.Object), call(), call([Ljava.lang.Object;), call(java.lang.Object), call(java.lang.Object, java.lang.Object), findAll()</p> </blockquote> <p>it also says that the line: container="acceptToConvertChart" data="${data}" xLabels="${labels}" effect="4"/> is the culprit.</p> <p>Does anyone know the proper syntax to make either of the two code snipets work? Or if you have had the same problem or something very similar, how did you fix it?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload