The following is the array data:
array = [{
humidity: 100
, max_temp: 289.48
, min_temp: 288.597
, pressure: 1005.27
, sea_level: 1030.68
}
, {
humidity: 84
, max_temp: 300.73
, min_temp: 298.697
, pressure: 1026.02
, sea_level: 1026.67
}]
This is the HTML code to display the data in a chart:
<div class="chart" ng-repeat="obj in array">
<div id="resizable">
<div zingchart zc-values="myValues" zc-json="myJson" zc-width="100%" zc-height="100%"></div>
</div>
<ul class="chartinfo">
<li>0 : Humidity {{obj.humidity}}</li>
<li>1 : Maximum Temperature {{obj.max_temp}}</li>
<li>2 : Minimum Temperature {{obj.min_temp}}</li>
<li>3 : Pressure {{obj.pressure}}</li>
<li>4 : Sea Level {{obj.sea_level}}</li>
</ul>
</div>
I want the data displayed in the ul li elements to appear on the chart. What steps should I take to achieve this and what changes are needed in the controller part?