Discussion:
[visualization-api] Showing a hidden column in tooltips
d***@gmail.com
2016-09-01 15:03:48 UTC
Permalink
Hi,

I am using a line chart with multiple series, and am using the last column
of the dataTable to store the totals at each time point. I use a dataView
to stop the totals column from displaying with the rest of the data.

What I would like is to show the total for each time point in the tooltip,
at the top of the panel of values that you get with the chart option
focusTarget: "category", crosshair: { trigger: "focus" }

How do I go about doing this?

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 google-visualization-api+***@googlegroups.com.
To post to this group, send email to google-visualization-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/28176abb-33fa-4288-a8ac-2292100d7f21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Daniel LaLiberte' via Google Visualization API
2016-09-01 15:09:13 UTC
Permalink
There is no direct support for such a display, but you could probably
create it with sufficient hacking. Here are a couple hints if you want to
pursue it. You'll have to create your own html overlay at the right
position based on where the mouse is (and thus the crosshair would be). You
would need access to the corresponding total value, which you could look up
in your original data table.
Post by d***@gmail.com
Hi,
I am using a line chart with multiple series, and am using the last column
of the dataTable to store the totals at each time point. I use a dataView
to stop the totals column from displaying with the rest of the data.
What I would like is to show the total for each time point in the tooltip,
at the top of the panel of values that you get with the chart option
focusTarget: "category", crosshair: { trigger: "focus" }
How do I go about doing this?
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
googlegroups.com.
Visit this group at https://groups.google.com/
group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/
msgid/google-visualization-api/28176abb-33fa-4288-a8ac-
2292100d7f21%40googlegroups.com
<https://groups.google.com/d/msgid/google-visualization-api/28176abb-33fa-4288-a8ac-2292100d7f21%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
***@Google.com <***@google.com> 5CC, Cambridge MA
--
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 google-visualization-api+***@googlegroups.com.
To post to this group, send email to google-visualization-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO%3DpnaUgkL2GNfYvq3JiURYnNVM%2BiFB4n-eT%3DQXDvwQqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Nick Dunbar
2016-09-01 15:30:22 UTC
Permalink
Hi Dan,

Thanks for getting back to me.

Do you think I could do it using a showFullTooltip() function, in the same
way that can be done in Treemaps?

The trouble with the Overlay approach is that I have to create DIV classes
for the elements, and I already have a page with a lot of containers
carefully balanced together which I would prefer to leave untouched.

Regards,
Nick

On Thu, Sep 1, 2016 at 4:09 PM, 'Daniel LaLiberte' via Google Visualization
Post by 'Daniel LaLiberte' via Google Visualization API
There is no direct support for such a display, but you could probably
create it with sufficient hacking. Here are a couple hints if you want to
pursue it. You'll have to create your own html overlay at the right
position based on where the mouse is (and thus the crosshair would be). You
would need access to the corresponding total value, which you could look up
in your original data table.
Post by d***@gmail.com
Hi,
I am using a line chart with multiple series, and am using the last
column of the dataTable to store the totals at each time point. I use a
dataView to stop the totals column from displaying with the rest of the
data.
What I would like is to show the total for each time point in the
tooltip, at the top of the panel of values that you get with the chart
option focusTarget: "category", crosshair: { trigger: "focus" }
How do I go about doing this?
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
egroups.com.
Visit this group at https://groups.google.com/grou
p/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/google-visualization-api/28176abb-33fa-4288-a8ac-229210
0d7f21%40googlegroups.com
<https://groups.google.com/d/msgid/google-visualization-api/28176abb-33fa-4288-a8ac-2292100d7f21%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
--
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/RZHejDirU8s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
googlegroups.com.
Visit this group at https://groups.google.com/
group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/
msgid/google-visualization-api/CAOtcSJO%3DpnaUgkL2GNfYvq3JiURYnNVM%
2BiFB4n-eT%3DQXDvwQqw%40mail.gmail.com
<https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO%3DpnaUgkL2GNfYvq3JiURYnNVM%2BiFB4n-eT%3DQXDvwQqw%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 google-visualization-api+***@googlegroups.com.
To post to this group, send email to google-visualization-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAO5F7ctymv_enFiXncVFoKWy_Q5pvM%3D%3Dbe7OdfgALR3AkYyn8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
'Daniel LaLiberte' via Google Visualization API
2016-09-01 17:00:23 UTC
Permalink
The undocumented generateTooltip option (which you could use with a
showTooltip function) is only available for the Treemap so far, but it
would be a good idea to support something similar elsewhere.
Post by Nick Dunbar
Hi Dan,
Thanks for getting back to me.
Do you think I could do it using a showFullTooltip() function, in the same
way that can be done in Treemaps?
The trouble with the Overlay approach is that I have to create DIV classes
for the elements, and I already have a page with a lot of containers
carefully balanced together which I would prefer to leave untouched.
Regards,
Nick
On Thu, Sep 1, 2016 at 4:09 PM, 'Daniel LaLiberte' via Google
Post by 'Daniel LaLiberte' via Google Visualization API
There is no direct support for such a display, but you could probably
create it with sufficient hacking. Here are a couple hints if you want to
pursue it. You'll have to create your own html overlay at the right
position based on where the mouse is (and thus the crosshair would be). You
would need access to the corresponding total value, which you could look up
in your original data table.
Post by d***@gmail.com
Hi,
I am using a line chart with multiple series, and am using the last
column of the dataTable to store the totals at each time point. I use a
dataView to stop the totals column from displaying with the rest of the
data.
What I would like is to show the total for each time point in the
tooltip, at the top of the panel of values that you get with the chart
option focusTarget: "category", crosshair: { trigger: "focus" }
How do I go about doing this?
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
egroups.com.
Visit this group at https://groups.google.com/grou
p/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/google-visualization-api/28176abb-33fa-4288-a8ac-2292100
d7f21%40googlegroups.com
<https://groups.google.com/d/msgid/google-visualization-api/28176abb-33fa-4288-a8ac-2292100d7f21%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
--
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/to
pic/google-visualization-api/RZHejDirU8s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
egroups.com.
Visit this group at https://groups.google.com/grou
p/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/google-visualization-api/CAOtcSJO%3DpnaUgkL2GNfYvq3JiUR
YnNVM%2BiFB4n-eT%3DQXDvwQqw%40mail.gmail.com
<https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO%3DpnaUgkL2GNfYvq3JiURYnNVM%2BiFB4n-eT%3DQXDvwQqw%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
googlegroups.com.
Visit this group at https://groups.google.com/
group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/
msgid/google-visualization-api/CAO5F7ctymv_enFiXncVFoKWy_
Q5pvM%3D%3Dbe7OdfgALR3AkYyn8A%40mail.gmail.com
<https://groups.google.com/d/msgid/google-visualization-api/CAO5F7ctymv_enFiXncVFoKWy_Q5pvM%3D%3Dbe7OdfgALR3AkYyn8A%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
***@Google.com <***@google.com> 5CC, Cambridge MA
--
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 google-visualization-api+***@googlegroups.com.
To post to this group, send email to google-visualization-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOTETtYHm7F4_wM39F%3DW4k%3D7dzbiPk1874Fw9AtTGkrMw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Nick Dunbar
2016-09-01 17:17:26 UTC
Permalink
That would be great. But I know you have a lot things on your to do list.

Regards,
Nick

On Thu, Sep 1, 2016 at 6:00 PM, 'Daniel LaLiberte' via Google Visualization
Post by 'Daniel LaLiberte' via Google Visualization API
The undocumented generateTooltip option (which you could use with a
showTooltip function) is only available for the Treemap so far, but it
would be a good idea to support something similar elsewhere.
Post by Nick Dunbar
Hi Dan,
Thanks for getting back to me.
Do you think I could do it using a showFullTooltip() function, in the
same way that can be done in Treemaps?
The trouble with the Overlay approach is that I have to create DIV
classes for the elements, and I already have a page with a lot of
containers carefully balanced together which I would prefer to leave
untouched.
Regards,
Nick
On Thu, Sep 1, 2016 at 4:09 PM, 'Daniel LaLiberte' via Google
Post by 'Daniel LaLiberte' via Google Visualization API
There is no direct support for such a display, but you could probably
create it with sufficient hacking. Here are a couple hints if you want to
pursue it. You'll have to create your own html overlay at the right
position based on where the mouse is (and thus the crosshair would be). You
would need access to the corresponding total value, which you could look up
in your original data table.
Post by d***@gmail.com
Hi,
I am using a line chart with multiple series, and am using the last
column of the dataTable to store the totals at each time point. I use a
dataView to stop the totals column from displaying with the rest of the
data.
What I would like is to show the total for each time point in the
tooltip, at the top of the panel of values that you get with the chart
option focusTarget: "category", crosshair: { trigger: "focus" }
How do I go about doing this?
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
egroups.com.
Visit this group at https://groups.google.com/grou
p/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/google-visualization-api/28176abb-33fa-4288-a8ac-2292100
d7f21%40googlegroups.com
<https://groups.google.com/d/msgid/google-visualization-api/28176abb-33fa-4288-a8ac-2292100d7f21%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
--
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/to
pic/google-visualization-api/RZHejDirU8s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
egroups.com.
Visit this group at https://groups.google.com/grou
p/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/google-visualization-api/CAOtcSJO%3DpnaUgkL2GNfYvq3JiURY
nNVM%2BiFB4n-eT%3DQXDvwQqw%40mail.gmail.com
<https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO%3DpnaUgkL2GNfYvq3JiURYnNVM%2BiFB4n-eT%3DQXDvwQqw%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
egroups.com.
Visit this group at https://groups.google.com/grou
p/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/google-visualization-api/CAO5F7ctymv_enFiXncVFoKWy_Q5pv
M%3D%3Dbe7OdfgALR3AkYyn8A%40mail.gmail.com
<https://groups.google.com/d/msgid/google-visualization-api/CAO5F7ctymv_enFiXncVFoKWy_Q5pvM%3D%3Dbe7OdfgALR3AkYyn8A%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
--
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/RZHejDirU8s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
googlegroups.com.
Visit this group at https://groups.google.com/
group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/
msgid/google-visualization-api/CAOtcSJOTETtYHm7F4_wM39F%3DW4k%
3D7dzbiPk1874Fw9AtTGkrMw%40mail.gmail.com
<https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOTETtYHm7F4_wM39F%3DW4k%3D7dzbiPk1874Fw9AtTGkrMw%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 google-visualization-api+***@googlegroups.com.
To post to this group, send email to google-visualization-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAO5F7cuk4Men2wJgwht%2BzAbkJSSajTRX3wEd3rowgZrzTaLmzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...