Skip to content

Instantly share code, notes, and snippets.

@Stiivi
Created November 9, 2012 02:43
Show Gist options
  • Save Stiivi/4043388 to your computer and use it in GitHub Desktop.
Save Stiivi/4043388 to your computer and use it in GitHub Desktop.
Rickshaw Presenter Example
# Drill down by two dimensions
result = browser.aggregate(cell, drilldown=["year", "item"])
# Get presenter
rickshaw = cubes.create_presenter("rickshaw_multi_series")
# Create Rickshaw series.
# You can use color_map to map series keys to colors or you can use color_palette to
# cycle through colors
series = rickshaw.present(result, "item", "year", "amount_sum")
# You can then use the jsonified series in your Ricshaw Javascript chart code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment