@@ -24,6 +24,10 import QtCommercial.Chart 1.1 | |||||
24 | Rectangle { |
|
24 | Rectangle { | |
25 | width: 360 |
|
25 | width: 360 | |
26 | height: 360 |
|
26 | height: 360 | |
|
27 | gradient: Gradient { | |||
|
28 | GradientStop { position: 0.0; color: "lightblue" } | |||
|
29 | GradientStop { position: 1.0; color: "white" } | |||
|
30 | } | |||
27 |
|
31 | |||
28 | //![1] |
|
32 | //![1] | |
29 | ChartView { |
|
33 | ChartView { | |
@@ -157,7 +161,10 Rectangle { | |||||
157 | //![4] |
|
161 | //![4] | |
158 |
|
162 | |||
159 | //![5] |
|
163 | //![5] | |
160 | // Store temperature values, rainfall and weather icon |
|
164 | // Store temperature values, rainfall and weather icon. | |
|
165 | // The temperature values begin from 0.5 instead of 0.0 to make the start from the | |||
|
166 | // middle of the rainfall bars. This makes the temperature lines visually better | |||
|
167 | // synchronized with the rainfall bars. | |||
161 | maxTempSeries.append(Number(i) + 0.5, weatherObj.tempMaxC); |
|
168 | maxTempSeries.append(Number(i) + 0.5, weatherObj.tempMaxC); | |
162 | minTempSeries.append(Number(i) + 0.5, weatherObj.tempMinC); |
|
169 | minTempSeries.append(Number(i) + 0.5, weatherObj.tempMinC); | |
163 | rainfallSet.append(i, weatherObj.precipMM); |
|
170 | rainfallSet.append(i, weatherObj.precipMM); |
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
General Comments 0
You need to be logged in to leave comments.
Login now