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
Chart data files #3130
Chart data files #3130
Conversation
docs/manual.rst
Outdated
'Firefox', [None, None, 0, 16.6, 25, 31] | ||
'Chrome', [None, None, None, None, None, None] | ||
'IE', [85.8, 84.6, 84.7, 74.5, 66, 58.6] | ||
'Others', [14.2, 15.4, 15.3, 8.9, 9, 10.4] | ||
{{% /chart %}}{{% /raw %}} | ||
{{% /chart %}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they need to be on the same line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sigh. Fixing.
{{% raw %}}{{% chart Bar title='Browser usage evolution (in %)' %}} | ||
x_labels='["2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012"]'%}} | ||
{{% raw %}}{{% chart Bar title='Browser usage evolution (in %)' | ||
x_labels='["2002","2003","2004","2005","2006","2007"]' %}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a syntax change or a fix to the docs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a fix for the docs, things were different lengths
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You moved x_labels from “inside” the shortcode to its arguments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm that was broken, I think.
nikola/plugins/shortcode/chart.py
Outdated
try: | ||
options[k] = literal_eval(v) | ||
for k, v in options.items(): | ||
try: options[k] = literal_eval(v) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this on one line?
Add a data_file option to chart shortcode and directive as sort-of-per #3129