Skip to content

Instantly share code, notes, and snippets.

@rubystar
Created July 17, 2017 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubystar/a16beac083803a77a58c056380b6365e to your computer and use it in GitHub Desktop.
Save rubystar/a16beac083803a77a58c056380b6365e to your computer and use it in GitHub Desktop.
data as a report prop for rendering a report
// prepare this inside the container component
report: {
id: 1,
allOtherKeys: "values", // keep all the required report(widget) data at first level
charts: [
{
id: 11,
settings: {
},
data: { // holds the api result to draw the chart
}
},
{
id: 12,
settings: {
},
data: { // holds the api result to draw the chart
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment