Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.53 KB | None | 0 0
  1. import QtQuick 2.0
  2. import QtCharts 2.2
  3.  
  4. ChartView {
  5.     id: chart
  6.     property string barTitle: "chart.title"
  7.     property var barCategories: []
  8.     property string barColor: "#000000"
  9.     property var barValues: []
  10.     title: barTitle
  11.     antialiasing: true
  12.     height: 300
  13.     BarSeries {
  14.         axisX: BarCategoryAxis { id: axis; labelsFont.pixelSize: 11; labelsAngle: 270; categories: barCategories }
  15.         BarSet { id: set; color: barColor; values: barValues }
  16.     }
  17.     Component.onCompleted: {
  18.         legend.visible = false;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement