You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to display Donut Graph using Custom Data Object Defined in Module Function

Received Response
24
Views
1
Comments
edited Mar 7, 2019 5:53AM in Visual Builder 1 comment

Summary

How to display Donut Graph using Custom Data Object Defined in Module Function

Content

Hi Wizards,
 
I am trying to display VBCS donut graph using custom data object I created in module function.
 
To achieve the above task --> I created a PageModule.prototype.graph function with custom object defined below
 
var pieSeries = [{
        name: "Series 1",
        items: [42]
      },
      {
        name: "Series 2",
        items: [55]
      }];  
  
return pieSeries;
 
 
Then I am assigning this variabe (returned by above func) in action chain to a variable lets say graph_data_array of type array.
 
In UI I dragged the donut graph & assigned the data to graph_data_array

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!