Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pesent single result as both: a chart and as a table #7

Open
Stiivi opened this issue Feb 18, 2013 · 0 comments
Open

Pesent single result as both: a chart and as a table #7

Stiivi opened this issue Feb 18, 2013 · 0 comments
Labels

Comments

@Stiivi
Copy link
Member

Stiivi commented Feb 18, 2013

Retrieve one drill-down result, say drill down-by year and present it as a table and as a chart (no library choice preference, might be a Google Chart).

Required new objects:

  • HTMLTablePresenter
  • GooglePieChartPresenter

Suggested use:

// we have result here
table_presenter = HTMLTablePresenter(class="table", measures=["amount_sum", "record_count"])
chart_presenter = GooglePieChartPresenter(measure="amount_sum")

table = table_presenter.present(result)
chart = chart_presenter.present(result)

Note that there will be simpler presenter creation process in the future similar to Python version: create_presenter(type).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant