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

Histogram #888

Merged
merged 10 commits into from
Aug 10, 2016
Merged

Histogram #888

merged 10 commits into from
Aug 10, 2016

Conversation

shkr
Copy link
Contributor

@shkr shkr commented Aug 6, 2016

I have implemented a Histogram chart using design from http://bl.ocks.org/mbostock/1933560.
It extends BaseViz. It draws a histogram using d3.layout.histogram method after querying a given numeric column from the db. It changes color for different bar lengths in the histogram. It takes as input the no of bins for the histogram.

histogram
(Updated Thumbnail!)

@shkr
Copy link
Contributor Author

shkr commented Aug 6, 2016

In response to Issue #714 posted and commented on earlier

@coveralls
Copy link

coveralls commented Aug 6, 2016

Coverage Status

Coverage decreased (-0.7%) to 80.794% when pulling be55235e2e05630391cd4a6ee65d42154a9d1cf6 on shkr:histogram into 7c810db on airbnb:master.

@coveralls
Copy link

coveralls commented Aug 7, 2016

Coverage Status

Coverage decreased (-0.6%) to 80.842% when pulling 65f88bdd2edd2b4ed8a9c6793a2e10dea6782628 on shkr:histogram into 7c810db on airbnb:master.

@@ -7,7 +7,6 @@
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated change

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.8%) to 80.724% when pulling 04e7eac8c4426e1c47e09f7cda91eabb7045f4fb on shkr:histogram into 7c810db on airbnb:master.

@coveralls
Copy link

coveralls commented Aug 7, 2016

Coverage Status

Coverage decreased (-0.6%) to 80.842% when pulling 04e7eac8c4426e1c47e09f7cda91eabb7045f4fb on shkr:histogram into 7c810db on airbnb:master.

@coveralls
Copy link

coveralls commented Aug 8, 2016

Coverage Status

Coverage decreased (-0.6%) to 80.842% when pulling 1ffd4e789b56d35af7ad5d711b50cf7ddd2c4c16 on shkr:histogram into 7c810db on airbnb:master.

@coveralls
Copy link

coveralls commented Aug 8, 2016

Coverage Status

Coverage decreased (-0.5%) to 80.962% when pulling 0c0f146038de324be26fffd860b015dba0d30e51 on shkr:histogram into 7c810db on airbnb:master.

It takes as input no of bins. The histogram cycles through
a set of colors for different lengths of the bar. It places a
y axis coordinate on top or on the upper end of the bar
whichever is suitable.
@coveralls
Copy link

coveralls commented Aug 8, 2016

Coverage Status

Coverage decreased (-0.8%) to 80.704% when pulling 57461ae on shkr:histogram into cb23362 on airbnb:master.

@coveralls
Copy link

coveralls commented Aug 8, 2016

Coverage Status

Coverage decreased (-0.5%) to 80.95% when pulling 57461ae on shkr:histogram into cb23362 on airbnb:master.

@coveralls
Copy link

coveralls commented Aug 8, 2016

Coverage Status

Coverage decreased (-0.5%) to 80.95% when pulling 57461ae on shkr:histogram into cb23362 on airbnb:master.

@shkr
Copy link
Contributor Author

shkr commented Aug 8, 2016

@xrmx i have fixed the issues you posted

@@ -0,0 +1,24 @@
.bars rect {}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused style rule, let's delete this

@coveralls
Copy link

coveralls commented Aug 9, 2016

Coverage Status

Coverage decreased (-0.5%) to 80.95% when pulling 6f6bec3a10ba1f73dc920c80978929db7ff4d268 on shkr:histogram into b0a1f07 on airbnb:master.

@coveralls
Copy link

coveralls commented Aug 9, 2016

Coverage Status

Coverage decreased (-0.5%) to 80.95% when pulling c27c4e9bf572061c15a8faef5b533980063b3646 on shkr:histogram into b0a1f07 on airbnb:master.

@shkr shkr force-pushed the histogram branch 2 times, most recently from 49fad96 to 017732e Compare August 9, 2016 13:42
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 80.95% when pulling 017732ecca8501e52a6ae21a1e727198ea32340c on shkr:histogram into b0a1f07 on airbnb:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 80.95% when pulling 017732ecca8501e52a6ae21a1e727198ea32340c on shkr:histogram into b0a1f07 on airbnb:master.

@coveralls
Copy link

coveralls commented Aug 9, 2016

Coverage Status

Coverage decreased (-0.5%) to 80.95% when pulling 017732ecca8501e52a6ae21a1e727198ea32340c on shkr:histogram into b0a1f07 on airbnb:master.

@coveralls
Copy link

coveralls commented Aug 9, 2016

Coverage Status

Coverage decreased (-0.5%) to 80.95% when pulling 017732ecca8501e52a6ae21a1e727198ea32340c on shkr:histogram into b0a1f07 on airbnb:master.

@shkr
Copy link
Contributor Author

shkr commented Aug 9, 2016

@mistercrunch I checked out the details for the code-quality all the changes recommended except 1 PEP302 violation, are out of scope for this PR

@@ -1200,6 +1200,78 @@ def get_data(self):
df.columns = ['x', 'y']
return df.to_dict(orient="records")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one more empty line here

@shkr
Copy link
Contributor Author

shkr commented Aug 10, 2016

@xrmx Changes made as recommended

@xrmx
Copy link
Contributor

xrmx commented Aug 10, 2016

@shkr thanks, python side looks good to me!

@coveralls
Copy link

coveralls commented Aug 10, 2016

Coverage Status

Coverage decreased (-0.4%) to 81.002% when pulling 1f52595 on shkr:histogram into baf22c3 on airbnb:master.

@coveralls
Copy link

coveralls commented Aug 10, 2016

Coverage Status

Coverage decreased (-0.4%) to 81.002% when pulling 1f52595 on shkr:histogram into baf22c3 on airbnb:master.

@mistercrunch
Copy link
Member

LGTM mergin'

@mistercrunch mistercrunch merged commit 15ee6d8 into apache:master Aug 10, 2016
@ascott
Copy link

ascott commented Aug 11, 2016

nice work, thx @shkr!

@ascott ascott mentioned this pull request Aug 15, 2016
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants