Documentation on countlyCommon.draw.*
Hey there,
I'm currently trying to develop a plugin. I already successfully created my own endpoint as well as an html template. Now I want display the data (already displaying as {{JSON.stringify(data)}}
in my template) in a graphical way.
The documentation I found here wasn't very informative (and sometimes outdated to what I found elsewhere).
So I went through the other plugins and a bunch of draw-operations (e.g.
countlyCommon.drawHorizontalStackedBars()` - but I could not find any docu on that. I assume that calls to your draw command return html that can then be injected into the template?
Could you share some docu? Or maybe I was just not able to find it? Questions include, but are not limited to:
- Which render components are available? (
countlyCommon.drawTimeGraph
,countlyCommon.drawHorizontalStackedBars
, etc.) - What's the right way to inject into my template.html file?
Thanks in advance,
Bernhard.
Comments
Hello,
I think most of the functions are JSDoc commented
But we also generate documentation from these comments too
https://code.count.ly/server/browser/countlyCommon.html#.drawGraph
In most cases, your plugin would contain countly.view.js file, which will load HTML template and data:
And then draw graphs, tables, etc:
Thanks so much for the prompt and precise reply! Where can I find docu about the
inGraphProperties
object?Best,
Bernhard.
I think that is meant to provide options directly to graphics library. And we are using this flot library:
http://www.flotcharts.org/
So you can pass options valid for this library
Thanks-a-lot ! I appreciate it.
Please sign in to leave a comment.