{{!
  Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.

  WSO2 Inc. licenses this file to you under the Apache License,
  Version 2.0 (the "License"); you may not use this file except
  in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied. See the License for the
  specific language governing permissions and limitations
  under the License.
}}

{{#zone "topCss"}}
    {{css "css/custom.css"}}
{{/zone}}

<span id="android_sense-details"  data-devicename="{{device.name}}" data-deviceid="{{device.deviceIdentifier}}"
      data-appcontext="{{@app.context}}"></span>
<div id="android_sense-div-chart" data-backend-api-url= "{{backendApiUrl}}">
    {{#each graphData}}
            {{#each this}}
                <div class="chartWrapper " id="chartWrapper-{{this}}">
                    <div class="custom_y_axis">
                        <div class="y-axis-label">{{this}}</div>
                        <div id="y-axis-{{this}}"></div>
                    </div>
                    <div class="legend_container">
                        <div id="smoother-{{this}}" title="Smoothing"></div>
                        <div id="legend-{{this}}"></div>
                        <div class="chart-type-toggle">
                            <input type="radio" name="offset"  value="lines" class="{{this}}" >
                            <label class="lines" for="lines">lines</label><br>
                            <input type="radio" name="offset" value="zero" class="{{this}}" checked>
                            <label class="stack" for="stack">stack</label>
                        </div>
                    </div>
                    <div id="chart-{{this}}" class="custom_rickshaw_graph"></div>
                    <div class="custom_x_axis">
                        <div class="x-axis-label">Time</div>
                        <div id="x_axis-{{this}}"></div>
                    </div>
                </div>
            {{/each}}
    {{/each}}
</div>

{{#zone "bottomJs"}}
    {{js "js/android_sense.js"}}
{{/zone}}