question

Mischa Spelt avatar image
2 Likes"
Mischa Spelt asked Mischa Spelt commented

Show a chart in a custom GUI

Hi, probably one of those "not-designed-to-do-this" questions, but maybe you can help me.

Is there a (dirty) trick where I can render a line chart directly in a custom GUI, given that I have the source data for the chart available e.g. in a treenode? E.g. can I add an HTML panel and make it render a graph from the library?

As a use-case consider a tabular input where the user will copy/paste a data series from an external source, and I would like them to review that series in a line chart inside the GUI. The input data is static (it will be saved in the object and will not change over a run) and it is only used for reviewing and validating the input so I'd rather not have it in a global dashboard.

FlexSim 22.0.5
chartscustom gui
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
4 Likes"
Jason Lightfoot answered Arun Kr edited

You can draw in the graph view of a custom GUI - example attached.

CustomGUI_graph.fsm


Perhaps @Jordan Johnson can describe the minimum attributes required to use callwebscriptmethod to create the chart in the webpanel so that it draws similar to the dashboard widgets.



customgui-graph.fsm (25.8 KiB)
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.