feat: x,y轴标签偏移量

This commit is contained in:
蒋承 2022-10-14 17:09:26 +08:00
parent ffceed63ca
commit 362456bdea
2 changed files with 10 additions and 2 deletions

View File

@ -51,6 +51,9 @@
<setting-item name="大小">
<n-input-number v-model:value="xAxis.axisLabel.fontSize" :min="8" size="small"></n-input-number>
</setting-item>
<setting-item name="偏移量">
<n-input-number v-model:value="xAxis.axisLabel.rotate" :min="-90" :max="90" size="small"></n-input-number>
</setting-item>
</setting-item-box>
<setting-item-box name="轴线">
<setting-item name="展示">
@ -140,6 +143,9 @@
<setting-item name="大小">
<n-input-number v-model:value="yAxis.axisLabel.fontSize" :min="8" size="small"></n-input-number>
</setting-item>
<setting-item name="偏移量">
<n-input-number v-model:value="yAxis.axisLabel.rotate" :min="-90" :max="90" size="small"></n-input-number>
</setting-item>
</setting-item-box>
<setting-item-box name="轴线">
<setting-item name="展示">

View File

@ -22,7 +22,8 @@
"axisLabel": {
"show": true,
"fontSize": 12,
"color": "#B9B8CE"
"color": "#B9B8CE",
"rotate": 0
},
"position": "bottom",
"axisLine": {
@ -58,7 +59,8 @@
"axisLabel": {
"show": true,
"fontSize": 12,
"color": "#B9B8CE"
"color": "#B9B8CE",
"rotate": 0
},
"position": "left",
"axisLine": {