Skip to content

Pyramid chart #1062

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

Merged
merged 10 commits into from
Sep 26, 2018
Merged

Pyramid chart #1062

merged 10 commits into from
Sep 26, 2018

Conversation

michaelbabyn
Copy link
Contributor

create doc for pyramid charts solving this issue

@michaelbabyn michaelbabyn added the ReviewReady This PR is ready for review label Aug 31, 2018
@michaelbabyn michaelbabyn requested a review from bcdunbar August 31, 2018 14:55
"metadata": {},
"source": [
"#### Population Pyramid Chart Using go.Bar\n",
"If your starting with binned data, use a `go.Bar` trace."
Copy link
Contributor

Choose a reason for hiding this comment

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

your => you're

"metadata": {},
"source": [
"#### Population Pyramid Using go.Histogram\n",
"If you want to quickly create a Population Pyramid from raw data, try `go.Histogram`"
Copy link
Contributor

Choose a reason for hiding this comment

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

add a period at the end of this line.

],
"source": [
"import plotly.plotly as py\n",
"import plotly.graph_objs as go\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

insert space between plotly and non-plotly packages to be consistent with style guide

],
"source": [
"import plotly.plotly as py\n",
"import plotly.graph_objs as go\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

insert space between plotly and non-plotly packages to be consistent with style guide

],
"source": [
"import plotly.plotly as py\n",
"import plotly.graph_objs as go\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

insert space between plotly and non-plotly packages to be consistent with style guide

"! pip install git+https://github.com/plotly/publisher.git --upgrade\n",
"import publisher\n",
"publisher.publish(\n",
" 'pyramid-charts.ipynb', 'python/population-pyramid/', 'Python Population Pyramid Charts | plotly',\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

plotly => Plotly

"publisher.publish(\n",
" 'pyramid-charts.ipynb', 'python/population-pyramid/', 'Python Population Pyramid Charts | plotly',\n",
" 'How to make Population Pyramid Charts in Python with Plotly.',\n",
" title = 'Population Pyramid Charts | plotly',\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

plotly => Plotly

@jdamiba
Copy link
Contributor

jdamiba commented Sep 5, 2018

Changes look good to me, just need to also add a space between plotly and non-plotly imports. That's all this needs for a 💃 from me.

@@ -0,0 +1,292 @@
---
permalink: python/population-pyramid/
Copy link
Member

@cldougl cldougl Sep 6, 2018

Choose a reason for hiding this comment

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

population-pyramid -> population-pyramid-charts in the permalink

@cldougl cldougl removed the request for review from bcdunbar September 6, 2018 14:38
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Population Pyramid Chart Using go.Bar\n",
Copy link
Member

Choose a reason for hiding this comment

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

I'd suggest making this title 'Basic Population Pyramid Chart', I don't think you need the go.Bar as you have the explanation line beneath of using go.Bar for binned data and it may look the side bar look a bit cleaner

"cell_type": "markdown",
"metadata": {},
"source": [
"#### Population Pyramid Using go.Histogram\n",
Copy link
Member

Choose a reason for hiding this comment

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

instead of Using go.Histogram it may be more helpful for users to see a title such as: Population Pyramid Binning (ie use binning/bins in the title)



<div class="output_html rendered_html output_subarea output_execute_result">
<iframe id="igraph" scrolling="no" style="border:none;" seamless="seamless" src="https://plot.ly/~michaelbabyn/154.embed" height="525px" width="100%"></iframe>
Copy link
Member

@cldougl cldougl Sep 6, 2018

Choose a reason for hiding this comment

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

@michaelbabyn can you run this notebook using the PythonPlotBot user so these charts are saved to that account (credentials pinned in the #documentation slack channel)

@michaelbabyn
Copy link
Contributor Author

@cldougl , After those last changes is this good to merge?

Copy link
Member

@cldougl cldougl left a comment

Choose a reason for hiding this comment

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

💃

@cldougl cldougl removed the ReviewReady This PR is ready for review label Sep 26, 2018
@michaelbabyn michaelbabyn merged commit 8e89e9b into source-design-merge Sep 26, 2018
@michaelbabyn michaelbabyn deleted the pyramid_chart branch September 26, 2018 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants