zhuzichu520 / FluentUI

FluentUI for QML
MIT License
3.14k stars 419 forks source link

请问FluChart如何添加横坐标和纵坐标 标题 #438

Open swjqq opened 4 months ago

swjqq commented 4 months ago

按照Chart.js最新版文档设置不生效 scales: { x: { title: { color: 'red', display: true, text: 'Month' } } }

Chart.js 2.94版本也没有找到坐标轴标题设置相关的, x改为xAxes不生效

zhuzichu520 commented 4 months ago

标题没有横坐标与中纵坐标之分,但是可以设置top、left、bottom、right位置,例:

scales: { x: { title: { color: 'red', display: true, text: 'Month' ,position: "left"} } }