don't include highcharts in source code

This commit is contained in:
Lee Lawlor
2014-06-26 22:45:44 -04:00
parent 91a4850525
commit 5c0203e7c3
77 changed files with 24 additions and 12969 deletions

View File

@ -2,6 +2,9 @@
<html style="height: 100%;">
<head>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="//thingspeak.com/highcharts-3.0.8.js"></script>
<script type="text/javascript" src="//thingspeak.com/exporting.js"></script>
<%= javascript_include_tag 'application' %>
<script type="text/javascript">
@ -161,10 +164,15 @@
legend: {
enabled: false
},
series: [{
name: data.channel.field<%= params[:id] %>
}]
};
series: [
{ name: data.channel.field<%= params[:id] %> }
],
credits: {
text: 'ThingSpeak.com',
href: 'https://thingspeak.com/',
style: { color: '#D62020' }
}
};
// add the data to the chart
chartOptions.series[0].data = chartData;