What JavaScript code is required to let a user dynamically switch a Stacked 
Bar Chart from

isStacked: true

to

isStacked: 'percent'

(and vice-versa) and having the Stacked Bar Chart automatically redraw 
itself with the new format?

My current options are:

var options = {
    height: 500,
    width: "100%",
    legend: { position: 'top', maxLines: 4 },
    bar:    { groupWidth: '50%' },
    isStacked: 'percent',
    title: 'Categories by Company'
};


I'm envisioning a UI component (e.g., button) with alternating text e.g., 
"Show as Percent" and "Show as Absolute".

-- 
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/7f6cfd19-0a93-40c0-bb73-2765a2d43a9b%40googlegroups.com.

Reply via email to