Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.0
- import QtCharts 2.2
- ChartView {
- id: chart
- property string barTitle: "chart.title"
- property var barCategories: []
- property string barColor: "#000000"
- property var barValues: []
- title: barTitle
- antialiasing: true
- height: 300
- BarSeries {
- axisX: BarCategoryAxis { id: axis; labelsFont.pixelSize: 11; labelsAngle: 270; categories: barCategories }
- BarSet { id: set; color: barColor; values: barValues }
- }
- Component.onCompleted: {
- legend.visible = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement