@@ -30,11 +30,10 ChartView { | |||||
30 |
|
30 | |||
31 | property variant series: mySeries |
|
31 | property variant series: mySeries | |
32 |
|
32 | |||
33 |
|
||||
34 | HorizontalBarSeries { |
|
33 | HorizontalBarSeries { | |
35 | id: mySeries |
|
34 | id: mySeries | |
36 | name: "bar" |
|
35 | name: "bar" | |
37 |
axis |
|
36 | axisY: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] } | |
38 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] |
|
37 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] | |
39 | onClicked: console.log("barset.onClicked: " + index); |
|
38 | onClicked: console.log("barset.onClicked: " + index); | |
40 | onHovered: console.log("barset.onHovered: " + status); |
|
39 | onHovered: console.log("barset.onHovered: " + status); |
@@ -33,8 +33,7 ChartView { | |||||
33 | HorizontalPercentBarSeries { |
|
33 | HorizontalPercentBarSeries { | |
34 | id: mySeries |
|
34 | id: mySeries | |
35 | name: "bar" |
|
35 | name: "bar" | |
36 |
axis |
|
36 | axisY: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] } | |
37 |
|
||||
38 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] |
|
37 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] | |
39 | onClicked: console.log("barset.onClicked: " + index); |
|
38 | onClicked: console.log("barset.onClicked: " + index); | |
40 | onHovered: console.log("barset.onHovered: " + status); |
|
39 | onHovered: console.log("barset.onHovered: " + status); |
@@ -33,7 +33,7 ChartView { | |||||
33 | HorizontalStackedBarSeries { |
|
33 | HorizontalStackedBarSeries { | |
34 | id: mySeries |
|
34 | id: mySeries | |
35 | name: "bar" |
|
35 | name: "bar" | |
36 |
axis |
|
36 | axisY: BarCategoryAxis { categories: ["2007", "2008", "2009", "2010", "2011", "2012" ] } | |
37 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] |
|
37 | BarSet { label: "Bob"; values: [2, 2, 3, 4, 5, 6] | |
38 | onClicked: console.log("barset.onClicked: " + index); |
|
38 | onClicked: console.log("barset.onClicked: " + index); | |
39 | onHovered: console.log("barset.onHovered: " + status); |
|
39 | onHovered: console.log("barset.onHovered: " + status); |
General Comments 0
You need to be logged in to leave comments.
Login now