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-29/**
* Translate from axis value to pixel position on the chart, or back
*
*/
translate = function (val, backwards, cvsCoord, old, handleLog)
var xpos = getPixels(this.x);
function getPixels(axis){
return options.xAxis[0].translate(axis);
}
var group = this.chart.renderer.g().add();
chart.renderer.rect(100, 100, 100, 100, 5)
.attr({
'stroke-width': 2,
stroke: 'red',
fill: 'yellow',
zIndex: 3,
})
.add(group);
// some code
group.destroy();
chart = new Highcharts.Chart(options, function(options){
...
},function(){
...
group_init = options.renderer.g().add();
options.renderer.path(['M', xpos+105, ypos+5, 'L', xpos+105, my+5]).attr({'stroke-width': 1, stroke: '#ad2b2b'}).add(group_init);
});dataLabels: {
formatter: function(){
var e = this.series.yAxis.getExtremes();
if (e.max - e.min < 2500000000){
group_init.destroy();
...
}
}
}Users browsing this forum: Google [Bot] and 2 guests