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

Bug: Unexpected error message for ColumnChart with Date column: "Bars series with value domain axis is not supported" #795

Closed
orwant opened this issue May 9, 2015 · 6 comments

Comments

@orwant
Copy link
Collaborator

orwant commented May 9, 2015

What steps will reproduce the problem? Please provide a link to a
demonstration page if at all possible, or attach code.
1. Write a Column chart with a date column
2. Expected to see a regular chart
3. Instead got this message: "Bars series with value domain axis is not supported"

As a workaround, I converted the date to a string.

What component is this issue related to (PieChart, LineChart, DataTable,
Query, etc)?
ColumnChart

Are you using the test environment (version 1.1)?
(If you are not sure, answer NO)
No

What operating system and browser are you using?
Linux, Chrome latest


*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by miguel.ping on 2012-01-18 20:10:31

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

This is part of the changes of the latest release as we mentioned in previous emails.

For more details, see the documentation pages:
http://code.google.com/apis/chart/interactive/docs/release_notes.html#whatsnew

and specifically for this issue:
http://code.google.com/apis/chart/interactive/docs/customizing_axes.html#Help

Converting the column into string is indeed the proper solution (and not a temporary
workaround).

Original issue reported on code.google.com by metula on 2012-01-18 20:16:51

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

Did you convert Date to String in your input data or did you cast it later?

Original issue reported on code.google.com by prash1784 on 2012-01-18 21:18:15

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

After converting to string via changing addColumn to use a string and changing the addrow
calls to use String rather than date i do get my stacked column back.
But there are no labels on the x axis for the dates.

Original issue reported on code.google.com by bquirion on 2012-01-19 00:57:32

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

taking the second example and plugging it into the playground produces emptiness.
How do i get the xaxis labels back now that its been converted to a string?

Original issue reported on code.google.com by bquirion on 2012-01-19 01:05:57

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

I got the same error on a column chart (not stacked or grouped). I fixed it by adding
an empty first column as outlined under "I do not want domain axis values" here:
http://code.google.com/apis/chart/interactive/docs/customizing_axes.html#Help

I have no idea what "domain axis values" are, and it seems weird that adding an unlabeled
empty column is the recommended fix, but at least it worked :)

It's very frustrating that a perfectly good column chart that was working yesterday
is broken today...

Original issue reported on code.google.com by rick.terrill on 2012-01-19 02:12:33

@orwant
Copy link
Collaborator Author

orwant commented May 9, 2015

bquirion:
We'll need an example to see what you mean.

rick.terrill:
"domain axis" is explained in that page you linked: http://code.google.com/apis/chart/interactive/docs/customizing_axes.html.
The changes introduced in this released (a) are considered required by the team in
order to provide consistent and coherent API across all charts, and (b) were communicated
several times during the past 3 months.

Look at the Data Format section of the column chart documentation for the required
data format.

Original issue reported on code.google.com by jinji.viz on 2012-01-19 10:21:40

@orwant orwant closed this as completed May 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant