Wish I could edit this post... I figured out some script and it works to add the % labels, but its ignoring that I only want it done to numbers with the data_bars paragraph style. Any help would be appreciated!
var myDoc = app.activeDocument;
var frames = myDoc.textFrames;
var myStyle = myDoc.paragraphStyles.getByName("data_bars_right");
//add percentage to numbers with data style
for (var i = 0; i < frames.length; i++) {
var text = frames[i].contents;
if (!isNaN(text) && myStyle){
frames[i].contents += "%";
}}
// Done
alert("Percentage labels added!");
Try the following
var myDoc = app.activeDocument;
var frames = myDoc.textFrames;
//add percentage to numbers with data style
for (var i = 0; i < frames.length; i++) {
var text = frames[i].contents;
if (!isNaN(text) && frames[i].paragraphs[0].paragraphStyles[0].name == "data_bars_right"){
frames[i].contents += "%";
}}
// Done
alert("Percentage labels added!")
-Manan