NodeModelChart Bug?

I am trying to use the Bar Chart Node in the NodeModelCharts package by @alfarok . It was giving me a wanring: Warning: DataBridge.BridgeData operation failed. Figured out that the values need to be a list of lists! Anyway, solved now with a small python script to convert the list of values into a list of lists of values.

Hi @jabiw3SXRW

Do you mind sharing python script? It will help others with similar issues.


1 Like

oh it is trivial, basically, you do something like this:

inputList = IN[0]
outputList = []
for anItem in inputList:
    outputList.append([anItem]) ## make a list of the item using square brackets and add it to the output list.

OUT = outputList

If you hover over the input ports there will be tooltips describing the format of the input data for each port. The values need to be a list of lists so that you can cluster groups of values (by index values) if desired. You shouldn’t need any python for this but may need to structure your data accordingly depending on the desired result. Check out these samples:

Samples for all node types can be found in the extra folder located in the following locations

in Revit
C:\Users\YOURUSERNAME\AppData\Roaming\Dynamo\Dynamo Revit\2.2\packages\NodeModelCharts\extra

in Sandbox/Studio
C:\Users\alfarok\AppData\Roaming\Dynamo\Dynamo Core\2.2\packages\NodeModelCharts\extra

1 Like

Additionally without DesignScript syntax:

Thanks for checking out the package and feel free to report any future bugs or feedback here:

1 Like