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

Add live samples back to docs for each chart type #4100

Merged
merged 1 commit into from
Apr 3, 2017

Conversation

etimberg
Copy link
Member

@etimberg etimberg commented Apr 2, 2017

Resolves #2068 and #3331

This just adds back the live charts for each type. I didn't add the two column layout for the pie/doughnut charts. Not sure what the best or most sustainable way to do that is.

@etimberg etimberg added this to the Version 2.6 milestone Apr 2, 2017
@etimberg etimberg requested a review from simonbrunel April 2, 2017 01:23
}
}
{% endchartjs %}
Copy link
Member

Choose a reason for hiding this comment

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

Missing EOL

package.json Outdated
@@ -16,6 +16,7 @@
"child-process-promise": "^2.2.0",
"coveralls": "^2.11.6",
"gitbook-cli": "^2.3.0",
"gitbook-plugin-chartjs": "^0.1.0",
Copy link
Member

Choose a reason for hiding this comment

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

GitBook dependencies are installed automatically when running gulp docs, so we can remove this line and avoid installing GitBook plugin(s) when not generating the doc.

Copy link
Member Author

Choose a reason for hiding this comment

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

ah, ok. sounds good 👍

{
"type": "doughnut",
"data": {
"labels": [
Copy link
Member

Choose a reason for hiding this comment

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

Could be better for consistency to format the labels array always the same way (inline vs one item per line).

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, will update that

@etimberg etimberg force-pushed the documentation-live-charts branch from c740f90 to 1121cbf Compare April 2, 2017 16:57
@etimberg
Copy link
Member Author

etimberg commented Apr 2, 2017

Updated per review comments

@etimberg etimberg merged commit 9ea1806 into master Apr 3, 2017
@etimberg etimberg deleted the documentation-live-charts branch April 3, 2017 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants