Keentivate

124 views
Skip to first unread message

Joe Wegner

unread,
May 7, 2013, 1:05:57 PM5/7/13
to keen-i...@googlegroups.com
Well, this is probably interesting to developers, and is a good way to kick off this google group...

I released about a week ago a JS wrapper for the Keentivate javascript SDK, called Keentivate.  Keentivate lets you easily turn HTML markup into Keen.IO charts.

So a pie chart can be as simple as this:

 <div class="keentivate"
 
keen-type="pie"
 
keen-event="Plays"
 
keen-group="play_type"
 
keen-title="Types of Plays">
</div>


No javascript, just HTML. Keentivate figures out the rest.

Check out the full info page. Also, as a note, there are a good amount of Todo's on the Github page. Read those before you dive in too far. Also, feel free to put in a pull request, because you're probably a better programmer than me.

Take care,
Joe Wegner

Daniel Kador

unread,
May 7, 2013, 1:20:20 PM5/7/13
to Joe Wegner, keen-i...@googlegroups.com
Thanks, Joe!  This is a super cool addition.  I could totally imagine rolling this into the official JS SDK some day.

--
Daniel Kador
Co-founder and CTO
twitter: @dkador and @keen_io
skype: dkador

Joe Wegner

unread,
May 7, 2013, 1:21:52 PM5/7/13
to keen-i...@googlegroups.com, Joe Wegner
That would be sweet!  You say the word, and the code is yours - one less thing to maintain!

Dali Kilani

unread,
May 7, 2013, 2:21:52 PM5/7/13
to keen-i...@googlegroups.com, Joe Wegner
I would love to see this code and turn it into an angulasjs module :-)

Jordan Feldstein

unread,
May 7, 2013, 2:30:41 PM5/7/13
to Dali Kilani, keen-i...@googlegroups.com, Joe Wegner
Any particular reason the attributes aren't namespaced as html5-/jquery-compliant "data-" tags (eg, data-keen-type="pie")?






~ J

Joe Wegner

unread,
May 7, 2013, 2:51:46 PM5/7/13
to keen-i...@googlegroups.com, Joe Wegner
Dali, the code is all available on Github:  https://github.com/CultivateStudios/keentivate

Feel free to fork it and turn it into an AngularJS module.  That was actually my first thought - this would fit really well as a directive.  I didn't go that way because I didn't want to limit the use cases to Angular systems, but I'd love to see a fork like that!

Joe Wegner

unread,
May 7, 2013, 2:53:10 PM5/7/13
to keen-i...@googlegroups.com, Dali Kilani, Joe Wegner
@Jordan -

Mostly because I didn't know that the data- was officially part of the HTML5 spec.  I actually just thought it was a jQuery convention.  I'll make that change (or you can, in a fork.  Or, you can create an issue on Github so that I don't forget).

Thanks!
Joe Wegner

Jordan Feldstein

unread,
May 10, 2013, 10:00:04 PM5/10/13
to Joe Wegner, keen-i...@googlegroups.com, Dali Kilani
Pull requested. 




~ J
Reply all
Reply to author
Forward
0 new messages