Page 1 of 1

Transparent annotations?

Posted: Tue Dec 02, 2014 4:28 pm
by 9347097
Can the background of an Annotation be made transparent?

Thanks.

Re: Transparent annotations?

Posted: Wed Dec 03, 2014 11:51 am
by yeray
Hi Jim,

Try setting an empty format.fill (""). Ie:

Code: Select all

  Chart1.legend.visible=false;
  
  series1 = Chart1.addSeries(new Tee.Area()).addRandom();
  
  var a1=new Tee.Annotation(Chart1);
  a1.format.fill="";
  a1.format.stroke.fill="darkgray";
  a1.format.font.style="14px Tahoma";
  a1.format.font.fill="black";
  a1.text="This is an\nannotation\nwith a long\ntext in it";
  a1.position.x=50;
  a1.position.y=100;
  Chart1.tools.add(a1);
  
  Chart1.draw();

Re: Transparent annotations?

Posted: Thu Dec 04, 2014 5:51 pm
by 9347097
Yes, that works. Thank you!