change colum Y to the right

51 views
Skip to first unread message

alejandrodl

unread,
Oct 3, 2011, 4:18:21 AM10/3/11
to Google Visualization API
Hi people!

need to shift the column of values ​​(0,20,40,60,80) to the right of
the graph:

http://code.google.com/apis/ajax/playground/?type=visualization#candl...

Is it possible?
No? Is possible add another Y to the right, non change position?

Thanks, nice day!

asgallant

unread,
Oct 3, 2011, 8:25:03 AM10/3/11
to google-visua...@googlegroups.com
I don't think the candlestick charts support multiple vertical axes yet (if they do, I can't get them to work anyway).  If/when they do support it, you would use the series and vAxes options to configure them.

Jinji

unread,
Oct 3, 2011, 1:10:30 PM10/3/11
to google-visua...@googlegroups.com
CandlestickChart should support multiple vertical axes. Please post here your code if it doesn't work, so we could have a look.

On Mon, Oct 3, 2011 at 2:25 PM, asgallant <drew_g...@abtassoc.com> wrote:
I don't think the candlestick charts support multiple vertical axes yet (if they do, I can't get them to work anyway).  If/when they do support it, you would use the series and vAxes options to configure them.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/mEK5zMZVa40J.

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

asgallant

unread,
Oct 3, 2011, 1:52:57 PM10/3/11
to google-visua...@googlegroups.com
I haven't been able to get it working: http://jsfiddle.net/dZvH2/

Jinji

unread,
Oct 3, 2011, 2:04:06 PM10/3/11
to google-visua...@googlegroups.com
Ah, that's because the chart has only one series. For any chart (not only CandlestickChart), you can't have all series on the right axis. At least one series must be on the left axis.

On Mon, Oct 3, 2011 at 7:52 PM, asgallant <drew_g...@abtassoc.com> wrote:
I haven't been able to get it working: http://jsfiddle.net/dZvH2/

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

asgallant

unread,
Oct 3, 2011, 2:51:56 PM10/3/11
to google-visua...@googlegroups.com
That is what I thought.  There should probably be a caveat in the series/vAxes options for candlestick charts mentioning this.

Jinji

unread,
Oct 3, 2011, 3:41:21 PM10/3/11
to google-visua...@googlegroups.com
And for all other axis charts...

On Mon, Oct 3, 2011 at 8:51 PM, asgallant <drew_g...@abtassoc.com> wrote:
That is what I thought.  There should probably be a caveat in the series/vAxes options for candlestick charts mentioning this.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

asgallant

unread,
Oct 4, 2011, 10:20:41 AM10/4/11
to google-visua...@googlegroups.com
Specifically for the candlestick charts because you cannot have more than one series in them at this time, and their set up (with 5 columns) makes it look like you do.

Jinji

unread,
Oct 4, 2011, 11:17:24 AM10/4/11
to google-visua...@googlegroups.com
Oh, but you can have more than one series for candlestick charts... 4 columns for each series (plus 1 column for X values), so 9 columns for 2 series, and so on.

On Tue, Oct 4, 2011 at 4:20 PM, asgallant <drew_g...@abtassoc.com> wrote:
Specifically for the candlestick charts because you cannot have more than one series in them at this time, and their set up (with 5 columns) makes it look like you do.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

asgallant

unread,
Oct 4, 2011, 11:40:08 AM10/4/11
to google-visua...@googlegroups.com
Well, you learn something new every day.  That is missing from the documentation.

Jinji

unread,
Oct 4, 2011, 11:42:39 AM10/4/11
to google-visua...@googlegroups.com
Yes, right you are. Should be added.

On Tue, Oct 4, 2011 at 5:40 PM, asgallant <drew_g...@abtassoc.com> wrote:
Well, you learn something new every day.  That is missing from the documentation.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

Mandete

unread,
Oct 5, 2011, 5:37:50 AM10/5/11
to Google Visualization API
But in the graphics that are generated by url in gcharts its possible
to put the vAxes in right position. There's no way to do the same in
candlestik charts by google visualization?.

asgallant

unread,
Oct 5, 2011, 10:38:48 AM10/5/11
to google-visua...@googlegroups.com
You can, but only if you define multiple series.  Even then, you have to have at least one series using the left axis or the chart fails to render (see http://jsfiddle.net/dZvH2/1/, change one of the 'targetAxisIndex' options to 0 and the chart will draw, but with both a left and right axis).

Mandete

unread,
Oct 5, 2011, 11:51:20 AM10/5/11
to google-visua...@googlegroups.com
Yes, but its possible in a line graphics, with 2 lines with the same values, hidden one of them in the legend and overlap between lines and you only see one. But in candlestick they shows next to each other, not overlapped, and this solution is not viable.

i don't know if i'm doing understant...

Mandete

unread,
Oct 5, 2011, 11:53:45 AM10/5/11
to google-visua...@googlegroups.com

this, but only see one of series, its possible hidden one of them???

asgallant

unread,
Oct 5, 2011, 1:10:09 PM10/5/11
to google-visua...@googlegroups.com
Unfortunately, there is no way (that I know of) to hide the series without also losing the right-side axis.  The best you can do is set all values for one series to zero, map that series to the left axis, and set the viewWindow.min value for the left axis to 0.  The resulting candlesticks are off-center, but the zeroed-out series isn't visible: http://jsfiddle.net/dZvH2/2/

Jinji

unread,
Oct 5, 2011, 2:52:06 PM10/5/11
to google-visua...@googlegroups.com
- In addition to setting the values of the first series to zero, or instead of it, you can set its color to 'none'.
- You can also set vAxes: {0: {textPosition: 'none'}} to remove the left axis text.

Note that the Javascript visualization API has both advantages and disadvantages over the Image Charts (image from URL). There are things you can do with the Image Charts but not with the Javascript visualization API.

On Wed, Oct 5, 2011 at 7:10 PM, asgallant <drew_g...@abtassoc.com> wrote:
Unfortunately, there is no way (that I know of) to hide the series without also losing the right-side axis.  The best you can do is set all values for one series to zero, map that series to the left axis, and set the viewWindow.min value for the left axis to 0.  The resulting candlesticks are off-center, but the zeroed-out series isn't visible: http://jsfiddle.net/dZvH2/2/

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
Reply all
Reply to author
Forward
0 new messages