File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -139,11 +139,12 @@ export default Vue.extend({
139
139
this .setData (this .count , this .range );
140
140
},
141
141
setData(count , range ) {
142
+ const start = ImageSource .fromFileOrResourceSync (' ~/assets/star.png' );
142
143
const chart = this .$refs .chart [' nativeView' ] as LineChart ;
143
144
console .log (' setData' , count , range );
144
145
const values = new Array (Math .round (count )).fill (0 ).map ((v , i ) => ({
145
146
y: Math .random () * range - 30 ,
146
- icon: ' ~/assets/star.png '
147
+ icon: start
147
148
}));
148
149
let set1: LineDataSet ;
149
150
if (chart .getData () !== null && chart .getData ().getDataSetCount () > 0 ) {
@@ -156,7 +157,7 @@ export default Vue.extend({
156
157
// create a dataset and give it a type
157
158
set1 = new LineDataSet (values , ' DataSet 1' );
158
159
159
- set1 .setDrawIcons (false );
160
+ set1 .setDrawIcons (true );
160
161
161
162
// draw dashed line
162
163
set1 .enableDashedLine (10 , 5 , 0 );
You can’t perform that action at this time.
0 commit comments