• 3560阅读
  • 1回复

zhengtianzuo系列-Qml饼状图 [复制链接]

上一主题 下一主题
离线zhengtianzuo
 

只看楼主 正序阅读 楼主  发表于: 2017-12-16
```
ChartView {
        anchors.fill: parent
        theme: ChartView.ChartThemeQt
        antialiasing: true
        legend.visible: false
        animationOptions: ChartView.AllAnimations

        PieSeries {
            id: pieSeries
            PieSlice {
                borderColor: "#AAAAAA"
                color: "#804040"
                label: qsTr("整形")
                labelVisible: true
                value: 66.6
            }
            PieSlice {
                borderColor: "#AAAAAA"
                color: "#408040"
                label: qsTr("字符串")
                labelVisible: true
                value: 30
            }
            PieSlice {
                borderColor: "#AAAAAA"
                color: "#404080"
                label: qsTr("文件")
                labelVisible: true
                value: 3.4
            }
        }
```



需要完整代码请访问 QtQuickExamples
博客地址: https://blog.csdn.net/zhengtianzuo06
Github: https://github.com/zhengtianzuo
个人产品: https://github.com/zhengtianzuo/Silk
产品网站: http://www.camelstudio.cn
离线big_mouse

只看该作者 1楼 发表于: 2020-04-23
快速回复
限100 字节
 
上一个 下一个