Accessing a Javascript datasource object via Cocoa
Accessing a Javascript datasource object via Cocoa
- Subject: Accessing a Javascript datasource object via Cocoa
- From: Tito Ciuro <email@hidden>
- Date: Sun, 11 Sep 2011 11:49:25 -0700
Hello,
Is there a way to manipulate a Javascript datasource object via Cocoa? For example, given the following snippet (edited for brevity):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Highcharts Example</title>
<script type="text/javascript">
var chart;
$(document).ready(function() {
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
defaultSeriesType: 'bar',
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
title: {
text: null
}
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]}]
});
});
</script>
</head>
<body>
<!-- 3. Add the container -->
<div id="container" style="width: 800px; height: 400px; margin: 0 auto"></div>
</body>
</html>
Is there a way to access the chart.series[0].data element in order to manipulate it? I'm not sure if it's OK to post this question here... it's about Cocoa, but probably involves WebKit, so I don't know if this is the right place.
Thanks in advance,
-- Tito
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden