Skip to content

Commit a7ae246

Browse files
committed
Update docs sample
1 parent 8f08d30 commit a7ae246

File tree

23 files changed

+136
-111
lines changed

23 files changed

+136
-111
lines changed

example/src/index.html

Lines changed: 88 additions & 66 deletions
Large diffs are not rendered by default.

example/src/js/ex1.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ var myDataSource = {
4141

4242
revenueChartConfigs = {
4343
id: "revenue-chart",
44-
renderAt: "revenue-chart-container",
4544
type: "column2d",
4645
width:600,
4746
height: 400,

example/src/js/ex10.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,14 +602,13 @@ FusionCharts.ready(function () {
602602

603603
var fc_configs_object = {
604604
type: 'usa',
605-
renderAt: 'map-container',
606605
width: '600',
607606
height: '400',
608607
dataFormat: 'json',
609608
dataSource: myDataSource
610609
};
611610
ReactDOM.render(
612611
<ReactFC {...fc_configs_object} />,
613-
document.getElementById('fc_react_app')
612+
document.getElementById('map-container')
614613
);
615614
});

example/src/js/ex2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ FusionCharts.ready(function () {
4444
}
4545
var props_pie_chart = {
4646
id: "pie_chart",
47-
renderAt: "pie_chart_container",
4847
type: "pie3d",
4948
width:600,
5049
height: 400,
@@ -53,6 +52,6 @@ FusionCharts.ready(function () {
5352
};
5453
ReactDOM.render(
5554
<ReactFC {...props_pie_chart} />,
56-
document.getElementById('fc_react_app')
55+
document.getElementById('chart-container')
5756
);
5857
})

example/src/js/ex3.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ FusionCharts.ready(function () {
192192
}
193193
var props_multi_chart = {
194194
id: "multi_chart",
195-
renderAt: "multi_chart_container",
196195
type: "mscombi2d",
197196
width:600,
198197
height: 400,
@@ -201,6 +200,6 @@ FusionCharts.ready(function () {
201200
};
202201
ReactDOM.render(
203202
<ReactFC {...props_multi_chart} />,
204-
document.getElementById('fc_react_app')
203+
document.getElementById('chart-container')
205204
);
206205
})

example/src/js/ex4.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ charts(FusionCharts);
1111
FusionCharts.ready(function () {
1212
var props_column_chart = {
1313
id: "column_chart",
14-
renderAt: "column_chart_container",
1514
type: "column2d",
1615
width:600,
1716
height: 400,
@@ -20,6 +19,6 @@ FusionCharts.ready(function () {
2019
};
2120
ReactDOM.render(
2221
<ReactFC {...props_column_chart} />,
23-
document.getElementById('fc_react_app')
22+
document.getElementById('chart-container')
2423
);
2524
})

example/src/js/ex4a.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ charts(FusionCharts);
1111
FusionCharts.ready(function () {
1212
var props_column_chart = {
1313
id: "column_chart",
14-
renderAt: "column_chart_container",
1514
type: "column2d",
1615
width:600,
1716
height: 400,
@@ -20,6 +19,6 @@ FusionCharts.ready(function () {
2019
};
2120
ReactDOM.render(
2221
<ReactFC {...props_column_chart} />,
23-
document.getElementById('fc_react_app')
22+
document.getElementById('chart-container')
2423
);
2524
})

example/src/js/ex5.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ FusionCharts.ready(function () {
5454
render: function () {
5555
var props_col_chart = {
5656
id: "column_chart",
57-
renderAt: "column_chart_container",
5857
type: "column2d",
5958
width:600,
6059
height: 400,
@@ -89,6 +88,6 @@ FusionCharts.ready(function () {
8988

9089
ReactDOM.render(
9190
<FCDashboard />,
92-
document.getElementById('fc_react_app')
91+
document.getElementById('chart-container')
9392
);
9493
});

example/src/js/ex6.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ FusionCharts.ready(function () {
3939
};
4040
var props_column_chart = {
4141
id: "column_chart",
42-
renderAt: "column_chart_container",
4342
type: "column2d",
4443
width:600,
4544
height: 380,
@@ -53,6 +52,6 @@ FusionCharts.ready(function () {
5352
};
5453
ReactDOM.render(
5554
<ReactFC {...props_column_chart} />,
56-
document.getElementById('fc_react_app')
55+
document.getElementById('chart-container')
5756
);
5857
})

example/src/js/ex7.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ FusionCharts.ready(function () {
5757
render: function () {
5858
var props_col_chart = {
5959
id: "column_chart",
60-
renderAt: "column_chart_container",
6160
type: "column2d",
6261
width:600,
6362
height: 400,
@@ -95,6 +94,6 @@ FusionCharts.ready(function () {
9594

9695
ReactDOM.render(
9796
<FCDashboard />,
98-
document.getElementById('fc_react_app')
97+
document.getElementById('chart-container')
9998
);
10099
});

0 commit comments

Comments
 (0)