Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createAreaChart() {
- flexmonster.fusioncharts.getData({
- type: "area2d",
- "slice": {
- "rows": [{
- "uniqueName": "Date.Year"
- }],
- "columns": [{
- "uniqueName": "[Measures]"
- }],
- "measures": [{
- "uniqueName": "Client Support Cost",
- "aggregation": "sum"
- }]
- }
- }, function(data) {
- data.chart.theme = "candy";
- data.chart.caption = "Costs per Client Support";
- data.chart.numberPrefix = "$";
- data.chart.showLegend = "1";
- var chartConfigs = {
- type: 'area2d',
- width: '500',
- height: '350',
- dataFormat: 'json',
- dataSource: data
- };
- ReactDOM.render( <
- ReactFC {
- …
- chartConfigs
- }
- />,
- document.getElementById('areachart-container')
- );
- }, function(data) {
- data.chart.theme = "candy";
- data.chart.caption = "Costs per Client Support";
- data.chart.numberPrefix = "$";
- data.chart.showLegend = "1";
- var chartConfigs = {
- type: 'area2d',
- width: '500',
- height: '350',
- dataFormat: 'json',
- dataSource: data
- };
- ReactDOM.render( <
- ReactFC {
- …
- chartConfigs
- }
- />,
- document.getElementById('areachart-container')
- );
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement