feat:调整体重趋势图刻度
This commit is contained in:
@@ -60,6 +60,12 @@ const updateChart = () => {
|
|||||||
const weightXAxis = healthStore.healthRecordList.map((item) => item.date).reverse()
|
const weightXAxis = healthStore.healthRecordList.map((item) => item.date).reverse()
|
||||||
const weightYAxis = healthStore.healthRecordList.map((item) => item.weight).reverse()
|
const weightYAxis = healthStore.healthRecordList.map((item) => item.weight).reverse()
|
||||||
weightDailyChart.setOption(lineChartOptions('日期', weightXAxis, '体重(千克)', weightYAxis))
|
weightDailyChart.setOption(lineChartOptions('日期', weightXAxis, '体重(千克)', weightYAxis))
|
||||||
|
weightDailyChart.setOption({
|
||||||
|
yAxis: {
|
||||||
|
min: 60,
|
||||||
|
max: 90
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
// 运动量统计图
|
// 运动量统计图
|
||||||
const sportRecordList = healthStore.healthRecordList.filter((item) => item.sportProject !== '')
|
const sportRecordList = healthStore.healthRecordList.filter((item) => item.sportProject !== '')
|
||||||
|
|||||||
Reference in New Issue
Block a user