Embeddable Charts and a Uladoo Chart Domain Specific Language
First Things First - Embeddable Charts Now Available and other new features!
You can now embed your uladoo charts on your web site for your readers to check out. It’s really easy to do - just put your user name and chart name in the following script and paste it on a web page. Piece of cake.
<script type=”text/javascript” src=”http://uladoo.com/javascripts/embed_uladoo_chart.js?username=USER_NAME_HERE&chartname=CHART_NAME_HERE”>
This is still a beta feature - please let us know if you have any troubles.
Also, you may have noticed you can now choose to display 10, 30, or 60 days of data in your chart.
Finally, Shawn’s working on a little widget you can use to put your chart on your Facebook page. That should be ready soon.
Moving Uladoo Charts to a DSL?
I had a fun and interesting breakfast with Patrick Foley (@patrickfoley) a few weeks ago. Among the many things we talked about, one of the recurring themes was about introducing a DSL to uladoo.com allowing users to control more aspects of their charts from twitter.
I really like this idea, and I’ve been thinking it over ever since. Now I’m getting sick of just thinking it through - I want to get something out there and have people slap it around a bit.
So here’s a first cut at a DSL. It’s not complete by a long shot, nor is it implemented (so don’t start sending messages to uladoo trying to change your chart type just yet). I’m just putting the draft DSL here so people can suggest changes to it. Right off the bat, let me acknowledge Stephen Bailey’s help in creating this draft - he supplied me some suggestions for commands.
All of these commands would work whether you used “D uladoo” or “@uladoo” to post them. For simplicity’s sake, I’m gonna use @uladoo here.
Interactive Commands
Any commands that result in a reply from uladoo being sent will include a “?”.
@uladoo chart_name ? Get last value tweeted - uladoo will reply back with the last value posted to your chart
@uladoo ? Regular old tweet - for sending tweets to us that you don’t want to add to a chart, like for asking a question. Example: @uladoo ? How do I embed a chart on my site?
@uladoo ?help Usage options - replies back with a list of all the commands included in the DSL
@uladoo chart_name ?history:X Send me the last X values I tweeted
@uladoo chart_name ?delta Send me the delta between this tweet and the one before it
@uladoo chart_name ?stats Send me statistics about my chart (average, mean, standard deviation, etc).
@uladoo chart_name ?embed Send me the code for embedding my chart.
You would be able to combine commands with each other and with posting values, like this:
@uladoo weight 255.6 ?delta would post a new value of 255.6 to my weight chart and then reply back with the delta between 255.6 and the previous value in my chart.
@ualdoo weight 243 ?history:10 | ?stats would post a new value of 243 and reply back with statistics for the last 10 tweets.
Commands for Configuring Your Chart
@uladoo chart_name goal=X Terminates the right end of the previous goal line (if it exists) and creates a horizontal line starting from the day it was tweeted and extending to +infinity.
@uladoo chart_name range=X Sets the default range of the chart to X days
@uladoo chart_name type=TYPE Sets the default type of the chart (line, bar, pie, etc)
@uladoo chart_name delete_chart Deletes the chart
@uladoo chart_name +series SERIES_NAME Adds a series called SERIES_NAME to your chart
@uladoo chart_name -series SERIES_NAME Deletes a series called SERIES_NAME from your chart
@uladoo chart_name series_name value Adds a value to a series in your chart
@uladoo chart_name +user USER_NAME Allows twitter user USER_NAME to post values to your chart
@uladoo chart_name -user USER_NAME Stops twitter user USER_NAME from posting values to your chart
@uladoo chart_name +public Allows anyone to post values to your chart
@uladoo chart_name -public Removes public posting from your chart
@uladoo user_name:chart_name value Posts a value to another user’s chart
@uladoo chart_name +user_series Each users values will be in a separate series.
@uladoo chart_name -user_series Each users values will be in a single combined series.
@uladoo ?mash chart_name chart_name chart_name … Replies with a url of a mashup of all the charts listed.
@uladoo ?mash user_name:chart_name user_name:chart_name user_name:chart_name … Replies with a url of a mashup of all the charts listed.
11 months ago