File "interactive-event.html"
Full Path: /home/analogde/www/php/integrations/django/samples/fusioncharts/templates/interactive-event.html
File size: 1.19 KB
MIME-type: text/html
Charset: utf-8
<!DOCTYPE html>
<html>
<head>
<title>FC-python wrapper</title>
<!-- If you are using downloaded FusionCharts libraries, uncomment the below code -->
<!--
{% load static %}
<script type="text/javascript" src="{% static "fusioncharts/fusioncharts.js" %}"></script>
<script type="text/javascript" src="{% static "fusioncharts/themes/fusioncharts.theme.fusion.js" %}"></script>
-->
<script type="text/javascript" src="//cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script type="text/javascript" src="//cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
<script>
function onDataplotClick(eventObj) {
var dataValue = eventObj.data.dataValue;
var categoryLabel = eventObj.data.categoryLabel;
document.getElementById("plotclick").innerHTML = "category: " + categoryLabel + "\n" + "value: " + dataValue;
}
</script>
</head>
<body style="font-family:'Helvetica Neue', Arial; font-size: 16px;">
<h3>{{ chartTitle|safe }}</h3>
<div id="chart-1">{{ output|safe }}</div>
<br/>
<div>
<p id ="plotclick"></p>
</div>
<br/>
<a href="/">Back</a>
</body>
</html>