| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 | <template>	<view class="charts-box">		<view class="charts-box-title">{{ title }}</view>		<qiun-data-charts type="column" :canvas2d="true" :ontouch="true" :chartData="chartData" :opts="opts" />	</view></template><script>	export default {		props: {			chartData: {				type: Object,				default: () => {					return {}				}			},			title: {				type: [String, Number],				default: ''			},			opts: {				type: Object,				default: () => {					return {						xAxis: {							rotateLabel: false,							labelCount: 12						},						yAxis: {							showTitle: true,							splitNumber: 5,							data: [{								title: '收益(元)',								titleOffsetY: -5							}]						},						legend: {							show: false						},						dataLabel: false,						extra: {							column: {								width: 20							}						}					}				}			}		}	}</script><style lang="scss" scoped>	.charts-box {		background-color: #fff;		border-radius: 5px;		padding: 18px 15px;		&-title {			text-align: center;			margin-bottom: 10px;		}	}</style>
 |