Created
July 17, 2017 07:45
-
-
Save rubystar/a16beac083803a77a58c056380b6365e to your computer and use it in GitHub Desktop.
data as a report prop for rendering a report
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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