Hi Viz Kid,

great. It works now.

I have another question. Is it possible to create 2 line which will
separate the x and y axis in some point, thus the chart will display 4
quadrant?

Thanks a lot in advance.
Hendrik


On Jan 12, 2:36 pm, Viz Kid <[email protected]> wrote:
> Sure.
>
> The tooltip text for a specific cell (row, column) is formatted as "A \n B"
> where A is the formatted value of the x point (i.e. the table cells at (row,
> 0)) and B is the formatted value of the y point (i.e. the table cells at
> (row, column)).
>
> You can see the documentation of DataTable 
> here:http://code.google.com/apis/visualization/documentation/reference.htm...
> The method 
> setCell<http://code.google.com/apis/visualization/documentation/reference.htm...>for
> example accepts the formatted value as one of the parameters (if none
> given, the formatted value would be the string representation of the value).
> setCell(rowIndex, columnIndex [, value [, formattedValue [, properties]]])
>
> When you fill the table with values, you can set the formatted value of the
> y-value cells to be "B \n C \n D" or whatever you prefer where B can be the
> string representation of the original value that was there (this way, you
> will still see that value in the tooltip).
>
> Hope this is clearer now,
>   Viz Kid
>
> On Tue, Jan 12, 2010 at 3:21 AM, Hendrik <[email protected]> wrote:
> > Hi Viz Kid,
>
> > I'm sorry, I have no idea how to format the y-value so it can display
> > as you suggested : "y \n Country: A \n Population: Y". I did not find
> > any options in the API to set the tooltip text. Could you give more
> > explanation?
>
> > Thanks.
>
> > On Jan 11, 10:25 pm, Viz Kid <[email protected]> wrote:
> > > Hi Hendrik.
>
> > > The tooltip's content is given by "<x-formatted-value> \n
> > > <y-formatted-value>".
> > > If you want to still see the x value in the tooltip, then leave its
> > > formatted value as is.
> > > The formatted value of the y value cell is unique per point in the chart
> > and
> > > you can set it to be "y \n Country: A \n Population: Y" ans so on. This
> > way
> > > you can (almost) completely choose which text should appear in each
> > tooltip.
>
> > > Although this might not be the most convenient way to do things, I think
> > > this would get the job done.
> > > Hope this helps,
> > >   Viz Kid
>
> > > On Mon, Jan 11, 2010 at 9:37 AM, Hendrik <[email protected]> wrote:
> > > > Hi All,
>
> > > > I want to create a share-growth matrix (BCG matrix) using scatter
> > > > plot. The pair values represent a single country, thus each point in
> > > > the chart actually represent the country. How I can display the
> > > > information for the country as well as the numeric data? I have
> > > > displayed the matrix with the tooltip. However, I can not give detail
> > > > information regarding the country for the pair value. Is it possible
> > > > to do my requirements?
>
> > > > Thanks in advance for your consideration.
>
> > > > best regards.
> > > > Hendrik
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Visualization API" group.
> > > > To post to this group, send email to
> > > > [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<google-visualization-api%[email protected]>
> > <google-visualization-api%[email protected]<google-visualization-api%[email protected]>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-visualization-api?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Visualization API" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-visualization-api%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-visualization-api?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.


Reply via email to