mirror of
https://github.com/VisActor/VChart
synced 2024-11-22 17:26:19 +00:00
fix: fix options
can not work in lark-vchart, wx-vchart and tt-vchart
This commit is contained in:
parent
a575cfde02
commit
66337ebdb8
@ -99,7 +99,8 @@ Component({
|
||||
},
|
||||
// Get the dpr live as it will change at runtime due to dragging to different monitors
|
||||
dpr: tt.getSystemInfoSync().pixelRatio,
|
||||
renderCanvas: `${this.data.canvasId}_draw_canvas`
|
||||
renderCanvas: `${this.data.canvasId}_draw_canvas`,
|
||||
...this.data.options
|
||||
}
|
||||
);
|
||||
this.chart = chartInstance;
|
||||
|
@ -51,6 +51,9 @@ export default function (props: any) {
|
||||
borderRadius: '4px',
|
||||
border: '1px solid #eeeeee'
|
||||
}}
|
||||
options={{
|
||||
disableDirtyBounds: true
|
||||
}}
|
||||
onChartInit={() => {
|
||||
console.log(`init ${type}`);
|
||||
}}
|
||||
|
@ -95,7 +95,8 @@ Component({
|
||||
},
|
||||
// Get the dpr live as it will change at runtime due to dragging to different monitors
|
||||
dpr: tt.getSystemInfoSync().pixelRatio,
|
||||
renderCanvas: `${this.data.canvasId}_draw_canvas`
|
||||
renderCanvas: `${this.data.canvasId}_draw_canvas`,
|
||||
...this.data.options
|
||||
}
|
||||
);
|
||||
this.chart = chartInstance;
|
||||
|
@ -91,7 +91,8 @@ Component({
|
||||
},
|
||||
// Get the dpr live as it will change at runtime due to dragging to different monitors
|
||||
dpr: wx.getSystemInfoSync().pixelRatio,
|
||||
renderCanvas: `${this.data.canvasId}_draw_canvas`
|
||||
renderCanvas: `${this.data.canvasId}_draw_canvas`,
|
||||
...this.data.options
|
||||
}
|
||||
);
|
||||
this.chart = chartInstance;
|
||||
|
Loading…
Reference in New Issue
Block a user