- Code: Select all
document.getElementById('DivChart').innerHTML = "";
More intelligent updating functions are coming soon.
Instead of continuing the battle against spammers, we decided to close the forum for new users and topics. But don't worry, there are still plenty of ways to reach us. Most notably, we will move our attention to Stack Overflow, where we will monitor questions under the tags [highcharts], [highstock] and [highslide].
For other ways of getting in touch with us, see Highcharts Support or Highslide Support.
Torstein Hønsi, CTO, 2013-01-29document.getElementById('DivChart').innerHTML = "";If not, maybe i could set up a test htm-file to show what i mean.
Highcharts.setOptions({
colors: [
'#bbbbbb',
'#cccccc',
'#eeeeee'
]
}); dataParser: function(data) {
// The real data are in the Results member
data = data.Results;
// Highcharts needs y, not qty
for (var i = 0; i < data.length; i++) {
data[i].y = parseFloat(data[i].qty);
}
return data;
}admin wrote:@gibson:
I think it was the shorthand color notation that messed it up for you. Currently Highcharts needs 6-digit HEX codes. See http://www.highcharts.com/cases/smartkalkyl.htm.
- Code: Select all
Highcharts.setOptions({
colors: [
'#bbbbbb',
'#cccccc',
'#eeeeee'
]
});
dataParser: function(data) {
result = [],
jQuery.each(data, function(i, val) {
result[i] = [val.name, parseInt(val.qte)];
});
return result;
},
formatter: function() {
if (this.series.name == 'Something') return false;
}Users browsing this forum: No registered users and 1 guest