Created
November 9, 2012 02:43
-
-
Save Stiivi/4043388 to your computer and use it in GitHub Desktop.
Rickshaw Presenter Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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