mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-12 00:06:43 -04:00
fixed qml example
This commit is contained in:
parent
5e1df29066
commit
d6c0899828
@ -1188,18 +1188,19 @@ void DnDTree::onItemDoubleClicked( QTreeWidgetItem *item, int column )
|
|||||||
"import QtCharts 2.0\n"
|
"import QtCharts 2.0\n"
|
||||||
"\n"
|
"\n"
|
||||||
"ChartView {\n"
|
"ChartView {\n"
|
||||||
"title: \"Bar series\"\n"
|
" title: \"Bar series\"\n"
|
||||||
"width: 600\n"
|
" width: 600\n"
|
||||||
"height:400\n"
|
" height:400\n"
|
||||||
"legend.alignment: Qt.AlignBottom\n"
|
" legend.alignment: Qt.AlignBottom\n"
|
||||||
"antialiasing: true\n"
|
" antialiasing: true\n"
|
||||||
"\n"
|
"\n"
|
||||||
"BarSeries {\n"
|
" BarSeries {\n"
|
||||||
"id: mySeries\n"
|
" id: mySeries\n"
|
||||||
"axisX: BarCategoryAxis { categories: [\"2007\", \"2008\", \"2009\", \"2010\", \"2011\", \"2012\" ] }\n"
|
" axisX: BarCategoryAxis { categories: [\"2007\", \"2008\", \"2009\", \"2010\", \"2011\", \"2012\" ] }\n"
|
||||||
"BarSet { label: \"Bob\"; values: [2, 2, 3, 4, 5, 6] }\n"
|
" BarSet { label: \"Bob\"; values: [2, 2, 3, 4, 5, 6] }\n"
|
||||||
"BarSet { label: \"Susan\"; values: [5, 1, 2, 4, 1, 7] }\n"
|
" BarSet { label: \"Susan\"; values: [5, 1, 2, 4, 1, 7] }\n"
|
||||||
"BarSet { label: \"James\"; values: [3, 5, 8, 13, 5, 8] }\n"
|
" BarSet { label: \"James\"; values: [3, 5, 8, 13, 5, 8] }\n"
|
||||||
|
" }\n"
|
||||||
"}\n" ) );
|
"}\n" ) );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user