I am trying to give "data" within "drilldown" some values. But i keep getting an error message that "data.drilldown" is not defined". What am i doing wong? It has something to do with the syntax on the last row in the code below. I have tried a dozen different options to define data.drilldown.data but i dont find the right solution.
Plz give me some help :)
Br.
<script type="text/javascript">
$(document).ready(function() {
var colors = Highcharts.getOptions().colors,
categories = ['MSIE', 'Firefox', 'Chrome', 'Safari', 'Opera'],
name = 'Browser brands',
data = [
{
y: 55.11,
color: colors[0],
drilldown: {
name: 'MSIE versions',
categories: ['MSIE 6.0', 'MSIE 7.0', 'MSIE 8.0', 'MSIE 9.0'],
data: [{}],
color: colors[0]
}
},
{
y: 55.11,
color: colors[0],
drilldown: {
name: 'MSIE versions',
categories: ['MSIE 6.0', 'MSIE 7.0', 'MSIE 8.0', 'MSIE 9.0'],
data: [{}],
color: colors[0]
}
}
];
var url = "php/live-server-data.php?callback=?";
$.getJSON(url, function(data) {
*data.drilldown.data = data;*
});
..