Skip to content

Commit

Permalink
driver step element uses viz id in addition to geom class
Browse files Browse the repository at this point in the history
  • Loading branch information
tdhock committed Jan 26, 2025
1 parent 81e230d commit 78c1b9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inst/htmljs/animint.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ var animint = function (to_select, json_file) {
var add_geom = function (g_name, g_info) {
// Determine if data will be an object or an array.
// added geom properties in steps array
console.log(g_info);
var geom = g_info.classed;
var title = g_info.params.title || g_info.classed;
var helpText = g_info.params.help || '';
Expand All @@ -205,7 +204,7 @@ var animint = function (to_select, json_file) {
description = "No interactions available";
}
steps.push({ // this add the geom to the steps array for guided tour
element: '.' + geom,
element: '#' + viz_id + ' .' + geom,
popover: {
title: title,
description: description
Expand Down

0 comments on commit 78c1b9c

Please sign in to comment.