Context Menu

322 views
Skip to first unread message

Ela Falkowska (falki)

unread,
Jan 19, 2012, 11:30:10 AM1/19/12
to Google Visualization API
Hi,
Is it possible to add context menu to chart? How can I do it? Any help
is appreciated. Thank you all.

visigoth

unread,
Jan 23, 2012, 3:26:14 AM1/23/12
to google-visua...@googlegroups.com
Are you interested in having the default context menu the browsers opens, or in implementing your own?
Do you want right click to trigger it?

The reason we disable the default context menu is we believe most users don't want it, as it is mostly irrelevant in the context of charts.

Could you please elaborate on what you'd like to put in the context menu? Maybe other features may supply the same functionality.

Renato Beserra

unread,
Jan 23, 2012, 5:10:24 AM1/23/12
to google-visua...@googlegroups.com
I don't know what is his use case, but I had to implement my own for BarChart/ColumnChart. In my application there are several charts, and the user is able to to interact with them using context menus. 

If you are looking for suggestions it would be of great help to expose the right click event, with the associated row and column in the data table. Given this, it is easy to implement a specific context menu.


2012/1/23 visigoth <visi...@google.com>

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/wJuvaexkyUMJ.

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.



--
Renato Beserra Sousa

Ela Falkowska (falki)

unread,
Jan 23, 2012, 8:17:01 AM1/23/12
to Google Visualization API
> Are you interested in having the default context menu the browsers opens,
> or in implementing your own?
> Do you want right click to trigger it?
I want to implement my own.

> The reason we disable the default context menu is we believe most users
> don't want it, as it is mostly irrelevant in the context of charts.
>
> Could you please elaborate on what you'd like to put in the context menu?
> Maybe other features may supply the same functionality.
Now I would like to have 2 options in menu. One will show dialog with
information about the chart cell I chose. The second that show
different chart that depend on the chart cell I chose.
For the first I can use tooltip column and I can create the chart from
the second option using left click and selection but I think that
context menu is better way especially for the second option (customer
know what happen).

visigoth

unread,
Jan 29, 2012, 8:51:24 AM1/29/12
to google-visua...@googlegroups.com
Thank you Renato, we will consider it.
We are currently playing with similar ideas on exposing the identity and screen coordinates of clicked elements (not necessarily ones that correspond to data table entities), and if we decide to pursue this direction your suggestion would fit in very nicely.

visigoth

unread,
Jan 29, 2012, 9:00:48 AM1/29/12
to google-visua...@googlegroups.com
Would it make sense to have these in the tooltip instead? After all, the tooltip is there to show more information on the focused element. Context menus are usually used for less frequently used operations.

We are working on implementing HTML tooltips. These will enable extensive customizations, and ideally let you embed charts and place 2 clickable options for the user to choose from.
There is still a lot to do so this is not just around the corner, but still, would you consider this a better solution to context menus?

Renato Beserra

unread,
Jan 29, 2012, 12:40:40 PM1/29/12
to google-visua...@googlegroups.com
Visigoth, thanks for considering my suggestion.

Yes, it would make perfect sense to have these in the tooltip. The first option I considered was to put a button inside it, which is not possible.

I agree with you that expanding the tooltip is a better idea, the only reason I choose the context menu was that i couldn't modify the tooltip.

Actually, in the current version of the application, we are replacing the tooltip for one simple click, and showing a dialog when the user must provide more info.



2012/1/29 visigoth <visi...@google.com>
Would it make sense to have these in the tooltip instead? After all, the tooltip is there to show more information on the focused element. Context menus are usually used for less frequently used operations.

We are working on implementing HTML tooltips. These will enable extensive customizations, and ideally let you embed charts and place 2 clickable options for the user to choose from.
There is still a lot to do so this is not just around the corner, but still, would you consider this a better solution to context menus?

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.



--
Renato Beserra Sousa

Renato Beserra

unread,
Jan 29, 2012, 12:41:20 PM1/29/12
to google-visua...@googlegroups.com
I mean, we are replacing the context menus with the click + dialog.

2012/1/29 Renato Beserra <ren...@elabsis.com>



--
Renato Beserra Sousa
Reply all
Reply to author
Forward
0 new messages