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

Charts only support text values for X axis #101

Open
tf13 opened this issue Mar 16, 2017 · 0 comments
Open

Charts only support text values for X axis #101

tf13 opened this issue Mar 16, 2017 · 0 comments
Labels

Comments

@tf13
Copy link

tf13 commented Mar 16, 2017

I've run into this attempting to use dates or numbers for the X axis. I can work around it by computing a new column that turns a number or date value into a string ... but should that be necessary?

The error message:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Users/xxx/anaconda/lib/python3.5/site-packages/agate/table/bar_chart.py", line 41, in bar_chart
    chart.add_bars(self, x=value, y=label)
  File "/Users/xxx/anaconda/lib/python3.5/site-packages/leather/chart.py", line 148, in add_bars
    Bars(fill_color)
  File "/Users/xxx/anaconda/lib/python3.5/site-packages/leather/chart.py", line 130, in add_series
    shape.validate_series(series)
  File "/Users/xxx/anaconda/lib/python3.5/site-packages/leather/shapes/bars.py", line 36, in validate_series
    raise ValueError('Bars only support Text values for the X axis.')
ValueError: Bars only support Text values for the X axis.
@jpmckinney jpmckinney transferred this issue from wireservice/agate Jul 14, 2021
@jpmckinney jpmckinney added the bug label Oct 23, 2023
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

2 participants