Skip to content

Commit 6efed3b

Browse files
committed
Modified example for timeseries
1 parent aceb39c commit 6efed3b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

example/index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
FusionCharts will render here...
2323
</fusioncharts>
2424
<div v-show="displayChart">
25-
<fusioncharts :options="timeseriesOptions">
25+
<fusioncharts
26+
:width="width"
27+
:height="height"
28+
:type="type"
29+
:dataFormat="dataFormat"
30+
:dataSource="dataSource"
31+
>
2632
FusionCharts will render here...
2733
</fusioncharts>
2834
</div>

example/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ var chart = new Vue({
101101
// this.pieDataSource = dataSource;
102102
},
103103
changeSecondChartAttr: function() {
104-
let dataSource = Object.assign({}, this.timeseriesOptions.dataSource);
104+
let dataSource = Object.assign({}, this.dataSource);
105105
dataSource.caption.text = 'Changed to something else';
106-
this.timeseriesOptions.dataSource = dataSource;
106+
this.dataSource = dataSource;
107107
},
108108
getRandomNumber: function() {
109109
var max = 5,
@@ -119,7 +119,7 @@ var chart = new Vue({
119119
data,
120120
schema
121121
);
122-
this.timeseriesOptions.dataSource.data = fusionTable;
122+
this.dataSource.data = fusionTable;
123123
this.displayChart = true;
124124
});
125125
}

0 commit comments

Comments
 (0)