Unfortunately, at the moment you cannot use newlines in GeoChart tooltips
at the moment. However, we are working on it, and it will be included in
the next release (sometime within the next month-and-a-half).

- Sergey


On Mon, Jun 24, 2013 at 5:00 AM, siva kumar <[email protected]>wrote:

> Hi,
>
>            i want to breakup the line in geochart tooltip but it always
> displays in the single (like in the Attachment file), after  i am inserting
> '\n' character in the tooltip string also.
>
> My Code:
>
>  {
>          type: 'string',
>          label: valueColumn, // (get the column from user)
>          role: 'tooltip',
>          calc: function (dt, row) {
>              var combineColumn = "";
>              for (var i = 2; i <= aTooltip.length; i++) {
>                  var combineColumn = combineColumn + aTooltip[i - 1] + " "
> + dt.getFormattedValue(row, i) + ',';
>              }
>
>              combineColumn = combineColumn.substring(0,
> combineColumn.length - 1);
>              combineColumn = valueColumn + ":\n" +
> dt.getFormattedValue(row, 1) + "(\n" + combineColumn + ")";
>              return combineColumn;
>          }
>
> Thanks & Regards,
> Sivakumar
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to