so i created a function that gets input of a long string, subtracting from that a tool name (which are column names in my dt) and then chart with specific legend each For iteration.
somehow, all worked, but few charts were missing data.
attaching the JSL code for review