Dear all,

I only realised this one after a big refactoring but it would appear that 
the 'tooltip' role doesn't do anything for domains. i.e. you can't manually 
set the tooltip for the x axis values (changing the FormattedValue will 
change the axis which isn't what I want). e.g. http://jsfiddle.net/UqcjT/1/

On a side note, I find the roles to be very confusing - introducing a new 
role can mess up the column indexing of an entire codebase. I can see that 
roles permit continual extension which would otherwise clog up the base 
API, but It seems to me that a cleaner API would have two types of 
getters/setters. The base get/setValue would affect 'data' and 'domain' 
roles and get/setRole(role, ...) would be able to change the other roles 
associated to a (row, column). (This might result in the deprecation of 
get/setFormattedValue) Any chance of such a change in future APIs?

e.g. for one cell

data.setValue(1, 2, 5.0);
data.setRole(1, 2, 'type', 'data'); // e.g. to switch between data and 
domain
data.setRole(1, 2, 'formatted', "Five");
data.setRole(1, 2, 'tooltip', "5 lovely bananas");
data.setRole(1, 2, 'upper', 6.0);
data.setRole(1, 2, 'lower', 4.5);
data.setRole(1, 2, 'certainty', false);

-- 
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/-/0vjqJRrdk_sJ.
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