javascript - 在 vue-chartJS 中更改图例的位置
解决方案
在您的图表选项对象中使用:
const chartOptions = {
// other options...
legend: {
position: 'bottom'
}
}
推荐阅读
- testing - 我正在努力测试这个 redux 传奇
- php - openssl_decrypt 和 aes-256-gcm 似乎不起作用
- reactjs - 配置 Cypress、cypress-react-unit-test 和 React
- css - CSS。根据设备屏幕宽度(而不是窗口)调整 div
- r - 如果匹配给定值,如何从字符串列中提取子字符串?
- sql - 将 SQL Server .bak 备份文件连接到 Visual Studio
- excel - 如何生成带有轴标题的图形而不会出现运行时 424 错误
- python - 使用 long_running_recognize() 时出现超时错误
- jquery - Bootstrap 多选 CSS 显示不正确
- sql - 有没有办法结合 SELECT 和 ALTER 语句(结合 DML 和 DDL)?