It worked for me with </br> instead of <br>

On Monday, November 30, 2015 at 12:32:20 PM UTC-5 Sergey Grabkovsky wrote:

> Oh I guess you're right. I thought we fixed that issue across all charts, 
> but I guess not. I suppose your only remaining solution is an HTML tooltip 
> with a <br> tag like you said.
>
> On Mon, Nov 30, 2015 at 12:06 PM Nick Dunbar <[email protected]> wrote:
>
>> You're right it only needs one column. But I can't get the newline to 
>> work. Putting '\n' inside the quote marks doesn't have any effect. I guess 
>> it could be done in HTML with a <br> tag. 
>>
>> On Mon, Nov 30, 2015 at 4:59 PM, 'Sergey Grabkovsky' via Google 
>> Visualization API <[email protected]> wrote:
>>
>>> I don't understand why you would need two tooltip columns. You can do it 
>>> with one, you just need a newline between the two things. You'd probably be 
>>> better off using a DataView and a calculated column than the exact solution 
>>> you got on stackoverflow, though there's no reason that you can't use that 
>>> method.
>>>
>>> On Mon, Nov 30, 2015 at 11:56 AM Nick Dunbar <[email protected]> wrote:
>>>
>>>> So could you do it with two tooltip columns - one for the tooltip text 
>>>> and one for the formatting? Would that reproduce the default while 
>>>> including the additional formatting? Something like this maybe (in 
>>>> pseudocode): 
>>>>
>>>> 1st column
>>>> data.getValue(source)+'->'+data.getValue(target)
>>>> 2nd column
>>>> formatter.formatValue(data.getValue)
>>>>
>>>> On Mon, Nov 30, 2015 at 4:49 PM, 'Sergey Grabkovsky' via Google 
>>>> Visualization API <[email protected]> wrote:
>>>>
>>>>> Right, so you can't do that automatically. That's one of the reasons 
>>>>> why this solution didn't come to mind; it replaces the entire tooltip, 
>>>>> instead of just formatting the value. You'd have to reproduce the 
>>>>> formatting yourself.
>>>>>
>>>>> On Mon, Nov 30, 2015 at 11:41 AM Nick Dunbar <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> One thing that would be helpful to know is how to reinstate the 
>>>>>> Google default tooltip for Sankey charts along with the customisation. 
>>>>>> At 
>>>>>> present, as soon as the custom tooltip is added, the default of 'source 
>>>>>> -> 
>>>>>> target' etc disappears. How can I get that back again? Thanks again, 
>>>>>> Nick 
>>>>>>
>>>>>> On Mon, Nov 30, 2015 at 3:29 PM, Nick Dunbar <[email protected]> 
>>>>>> wrote:
>>>>>>
>>>>>>> Not at all, I'm happy to share what I find out. You guys have done a 
>>>>>>> great service to the community. Keep up the good work. 
>>>>>>>
>>>>>>> On Mon, Nov 30, 2015 at 3:16 PM, 'Sergey Grabkovsky' via Google 
>>>>>>> Visualization API <[email protected]> wrote:
>>>>>>>
>>>>>>>> Oh that's true. I forgot about custom tooltips. Sorry about that; 
>>>>>>>> slipped my mind.
>>>>>>>>
>>>>>>>> If that's enough for your use case, then by all means use them.
>>>>>>>>
>>>>>>>> On Mon, Nov 30, 2015 at 9:59 AM Nick Dunbar <[email protected]> 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi Sergey, 
>>>>>>>>> Thanks for getting back to me. I got an answer to the problem on 
>>>>>>>>> Stackoverflow:
>>>>>>>>>  
>>>>>>>>> http://stackoverflow.com/questions/33996664/how-to-specify-number-formats-in-googles-sankey-charts-d3/33998420?noredirect=1#comment55755627_33998420
>>>>>>>>>  
>>>>>>>>> <http://stackoverflow.com/questions/33996664/how-to-specify-number-formats-in-googles-sankey-charts-d3/33998420?noredirect=1#comment55755627_33998420>
>>>>>>>>> What do you think? 
>>>>>>>>> Regards,
>>>>>>>>> Nick 
>>>>>>>>>
>>>>>>>>> On Mon, Nov 30, 2015 at 2:49 PM, 'Sergey Grabkovsky' via Google 
>>>>>>>>> Visualization API <[email protected]> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Nick,
>>>>>>>>>>
>>>>>>>>>> We don't have any options for controlling the formatting on the 
>>>>>>>>>> Sankey chart yet. We'll work on improving this for future versions, 
>>>>>>>>>> but you 
>>>>>>>>>> can file a feature request to help remind us.
>>>>>>>>>>
>>>>>>>>>> On Sun, Nov 29, 2015 at 1:06 PM <[email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi, 
>>>>>>>>>>>
>>>>>>>>>>> I've become a big fan of Google's sankey charts, but one thing 
>>>>>>>>>>> is bothering me - I can't figure out how to do number formatting so 
>>>>>>>>>>> that 
>>>>>>>>>>> the relevant units show up with the numbers in the third data table 
>>>>>>>>>>> column. 
>>>>>>>>>>> I've tried several approaches - trying to set 'pattern' options, 
>>>>>>>>>>> using 
>>>>>>>>>>> formatter, but for the life of me nothing seems to work - see this 
>>>>>>>>>>> JSFiddle 
>>>>>>>>>>> example: http://jsfiddle.net/nickdunbar/t9e3dcy3/1/
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Number formatting works so smoothly for the other Google chart 
>>>>>>>>>>> types I can't believe that there isn't an option available 
>>>>>>>>>>> somewhere. It 
>>>>>>>>>>> isn't in the Google documentation. I have looked at the D3 
>>>>>>>>>>> literature but 
>>>>>>>>>>> nothing obvious springs out there either. 
>>>>>>>>>>>
>>>>>>>>>>> All help appreciated. 
>>>>>>>>>>>
>>>>>>>>>>> NIck 
>>>>>>>>>>>
>>>>>>>>>>> -- 
>>>>>>>>>>> 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.
>>>>>>>>>>> To view this discussion on the web visit 
>>>>>>>>>>> https://groups.google.com/d/msgid/google-visualization-api/b813316e-b1f9-4fc5-b1de-b9099e27c60d%40googlegroups.com
>>>>>>>>>>>  
>>>>>>>>>>> <https://groups.google.com/d/msgid/google-visualization-api/b813316e-b1f9-4fc5-b1de-b9099e27c60d%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>>>> .
>>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>>>
>>>>>>>>>> -- 
>>>>>>>>>>
>>>>>>>>>> [image: unnamed.gif]
>>>>>>>>>>
>>>>>>>>>> •
>>>>>>>>>>
>>>>>>>>>> •
>>>>>>>>>>
>>>>>>>>>> •
>>>>>>>>>>
>>>>>>>>>> •
>>>>>>>>>>
>>>>>>>>>> Sergey Grabkovsky
>>>>>>>>>>
>>>>>>>>>> Software Engineer
>>>>>>>>>>
>>>>>>>>>> Google, Inc
>>>>>>>>>>
>>>>>>>>>> [email protected]
>>>>>>>>>>
>>>>>>>>> -- 
>>>>>>>>>> You received this message because you are subscribed to a topic 
>>>>>>>>>> in the Google Groups "Google Visualization API" group.
>>>>>>>>>> To unsubscribe from this topic, visit 
>>>>>>>>>> https://groups.google.com/d/topic/google-visualization-api/ax7ITGgcrQY/unsubscribe
>>>>>>>>>> .
>>>>>>>>>> To unsubscribe from this group and all its topics, 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.
>>>>>>>>>>
>>>>>>>>> To view this discussion on the web visit 
>>>>>>>>>> https://groups.google.com/d/msgid/google-visualization-api/CAEwwup6Tdc_p%3D5pZCvWc1JfEGmpTea_hnA7BJ72kPHsZTFBABw%40mail.gmail.com
>>>>>>>>>>  
>>>>>>>>>> <https://groups.google.com/d/msgid/google-visualization-api/CAEwwup6Tdc_p%3D5pZCvWc1JfEGmpTea_hnA7BJ72kPHsZTFBABw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>>>> .
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -- 
>>>>>>>>> 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.
>>>>>>>>> To view this discussion on the web visit 
>>>>>>>>> https://groups.google.com/d/msgid/google-visualization-api/CAO5F7csnJMohzQQuxa4g9-sHzf%3DQiED%2BzD%3D2qCku5N2%3DXoNLww%40mail.gmail.com
>>>>>>>>>  
>>>>>>>>> <https://groups.google.com/d/msgid/google-visualization-api/CAO5F7csnJMohzQQuxa4g9-sHzf%3DQiED%2BzD%3D2qCku5N2%3DXoNLww%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>>> .
>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>>
>>>>>>>> -- 
>>>>>>>>
>>>>>>>> [image: unnamed.gif]
>>>>>>>>
>>>>>>>> •
>>>>>>>>
>>>>>>>> •
>>>>>>>>
>>>>>>>> •
>>>>>>>>
>>>>>>>> •
>>>>>>>>
>>>>>>>> Sergey Grabkovsky
>>>>>>>>
>>>>>>>> Software Engineer
>>>>>>>>
>>>>>>>> Google, Inc
>>>>>>>>
>>>>>>>> [email protected]
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> You received this message because you are subscribed to a topic in 
>>>>>>>> the Google Groups "Google Visualization API" group.
>>>>>>>> To unsubscribe from this topic, visit 
>>>>>>>> https://groups.google.com/d/topic/google-visualization-api/ax7ITGgcrQY/unsubscribe
>>>>>>>> .
>>>>>>>> To unsubscribe from this group and all its topics, 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.
>>>>>>>> To view this discussion on the web visit 
>>>>>>>> https://groups.google.com/d/msgid/google-visualization-api/CAEwwup4Rse28D_EPuBemX7CpYn3g468tL0OSbcv892AwgutT3Q%40mail.gmail.com
>>>>>>>>  
>>>>>>>> <https://groups.google.com/d/msgid/google-visualization-api/CAEwwup4Rse28D_EPuBemX7CpYn3g468tL0OSbcv892AwgutT3Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> -- 
>>>>>> 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.
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/google-visualization-api/CAO5F7ct1m2pURcHX9U4XWQQUUxpK43c1OP_%3DeXRwMvP_dpwcbg%40mail.gmail.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/google-visualization-api/CAO5F7ct1m2pURcHX9U4XWQQUUxpK43c1OP_%3DeXRwMvP_dpwcbg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> -- 
>>>>>
>>>>> [image: unnamed.gif]
>>>>>
>>>>> •
>>>>>
>>>>> •
>>>>>
>>>>> •
>>>>>
>>>>> •
>>>>>
>>>>> Sergey Grabkovsky
>>>>>
>>>>> Software Engineer
>>>>>
>>>>> Google, Inc
>>>>>
>>>>> [email protected]
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to a topic in the 
>>>>> Google Groups "Google Visualization API" group.
>>>>> To unsubscribe from this topic, visit 
>>>>> https://groups.google.com/d/topic/google-visualization-api/ax7ITGgcrQY/unsubscribe
>>>>> .
>>>>> To unsubscribe from this group and all its topics, 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.
>>>>>
>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/google-visualization-api/CAEwwup7%3Du-VLiFa%3Dz%2BfXq40ydsM6%3DrbzQh-CWxEFxtfk_HkGhA%40mail.gmail.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/google-visualization-api/CAEwwup7%3Du-VLiFa%3Dz%2BfXq40ydsM6%3DrbzQh-CWxEFxtfk_HkGhA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>
>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> -- 
>>>> 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.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/google-visualization-api/CAO5F7csCh6YcD25KuQewrK7OyQy3RFXmLFi4GPPtz7pRH2YHRg%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/google-visualization-api/CAO5F7csCh6YcD25KuQewrK7OyQy3RFXmLFi4GPPtz7pRH2YHRg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> -- 
>>>
>>> [image: unnamed.gif]
>>>
>>> •
>>>
>>> •
>>>
>>> •
>>>
>>> •
>>>
>>> Sergey Grabkovsky
>>>
>>> Software Engineer
>>>
>>> Google, Inc
>>>
>>> [email protected]
>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "Google Visualization API" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/google-visualization-api/ax7ITGgcrQY/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, 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.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-visualization-api/CAEwwup4XNTBg6nJ9zRAmYSJBFZEvbS6DEMexAEPXxXYK6zchtQ%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/google-visualization-api/CAEwwup4XNTBg6nJ9zRAmYSJBFZEvbS6DEMexAEPXxXYK6zchtQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> 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.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-visualization-api/CAO5F7ctCxU-fvDDY-FsR7GASkRufGAWELuGRvAZaPw8bEHUKBg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/google-visualization-api/CAO5F7ctCxU-fvDDY-FsR7GASkRufGAWELuGRvAZaPw8bEHUKBg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>
>
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
>
> [image: unnamed.gif]
>
> •
>
> •
>
> •
>
> •
>
> Sergey Grabkovsky
>
> Software Engineer
>
> Google, Inc
>
> [email protected]
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/0a6f004e-4c12-4097-8d02-ee3a27138bd5n%40googlegroups.com.

Reply via email to