place a marker on a horizontal barchart

480 views
Skip to first unread message

kathb4

unread,
Aug 21, 2009, 11:58:11 AM8/21/09
to Google Visualization API
I want to place a mark/marker in the middle of a stacked horizontal
barchart. I keep seeing references to imagebarchart. So I got the
barchart up and working fine - now how do I add just a single marker
at some designated spot on that barchart?

thanks

ChartMan

unread,
Aug 22, 2009, 1:03:03 PM8/22/09
to google-visua...@googlegroups.com
The chart can display a tooltip when a bar is clicked. does this meet you requirement ? If not can you please describe your concrete need.

ChartMan

MC Get Vizzy

unread,
Aug 23, 2009, 3:02:39 AM8/23/09
to google-visua...@googlegroups.com
have a look at the following link:

http://code.google.com/apis/chart/styles.html#shape_markers

for a quick example, options.chm='o,FF9900,0,5,15' creates a circle marker on the 5th data point of the first data column.

if you have further questions, reply to this thread.

kathb4

unread,
Aug 24, 2009, 1:39:10 PM8/24/09
to Google Visualization API
Am am aware of of creating markers. I have that working somewhat
through google charts versus google visualization, but it is not
dynamic - it has to be placed "X" pixels from the left or whatever...

Also tooltip isn't what I want.

I am trying to do a graphic representation of a survey, and and where
a logged in user's answer sits within that survey.

Lets say the survey answers are
1. Steak
2. Chicken
3. Cheese

I fill out the survey and choose cheese.
I want then to view all the results as a horizontal stacked bar chart
of the total of all the answers with a stacked bar representing each
of the above.
This I am able to do quite easily.

Now what I want to do, is on top of that bar, place a marker which
represents where I, as the user who is logged in, falls.
So I picked cheese - I want a marker to be placed somewhere over the
bit of the bar which represents the cheese count.

Thoughts?
thanks
K


On 23 Aug, 08:02, MC Get Vizzy <getvi...@google.com> wrote:
> have a look at the following link:
>
> http://code.google.com/apis/chart/styles.html#shape_markers
>
> for a quick example, options.chm='o,FF9900,0,5,15' creates a circle marker
> on the 5th data point of the first data column.
>
> if you have further questions, reply to this thread.
>

mccomplete

unread,
Aug 25, 2009, 3:32:00 AM8/25/09
to Google Visualization API
Google Visualization API has a wrapper for Google Chart API:

http://code.google.com/apis/visualization/documentation/gallery/genericimagechart.html

use google.visualization.ImageChart with options.cht = 'bhs' (or bvs,
for a vertical bar chart) instead of
google.visualization.ImageBarChart. that might help with the dynamic
marker placement.

PASUPULETI SURESH

unread,
Aug 25, 2009, 2:16:42 PM8/25/09
to google-visua...@googlegroups.com
Hi,
would there be any data being sent to Google Server for the image
chart examples mentioned in below link. How does it work
architecturally.It would be great help for those who want to secure
data.
http://code.google.com/apis/visualization/documentation/gallery/genericimagechart.html

Thanks
Suresh
Reply all
Reply to author
Forward
0 new messages