Guys, I need help.
I have a Protovis Graphical, and precise interaction he receives another chart when i Click on a graph I need the categories of the Protovis Graphical getting selected.
I do not know what event I should implement in Protovis and how to receive this data.
Graphs in CCC I do so: (and how I do in Protovis)
var Gerente = scene.vars.category.label; // get selection
var varChart = Dashboards.getComponent("render_Distribuicao_fat"); // get objets (other chart)
// Remove all selects
var datumsAll = varChart.chart.data.datums();
datumsAll.each(function(datum) { datum.setSelected(false); });
// Define select
datums = varChart.chart.data.datums([{category: Gerente }]);
datums.each(function(datum) { datum.setSelected(true); });
varChart.chart.render(/*bypassAnimation*/ false, /*recreate*/true, /*reload*/false)
I have a Protovis Graphical, and precise interaction he receives another chart when i Click on a graph I need the categories of the Protovis Graphical getting selected.
I do not know what event I should implement in Protovis and how to receive this data.
Graphs in CCC I do so: (and how I do in Protovis)
var Gerente = scene.vars.category.label; // get selection
var varChart = Dashboards.getComponent("render_Distribuicao_fat"); // get objets (other chart)
// Remove all selects
var datumsAll = varChart.chart.data.datums();
datumsAll.each(function(datum) { datum.setSelected(false); });
// Define select
datums = varChart.chart.data.datums([{category: Gerente }]);
datums.each(function(datum) { datum.setSelected(true); });
varChart.chart.render(/*bypassAnimation*/ false, /*recreate*/true, /*reload*/false)