Page 1 of 1

ColorEach

Posted: Tue May 10, 2016 3:42 pm
by 17778248
Hello,

using the following HTML5 code the "ColorEach" does not work as expected:

Code: Select all

	<!DOCTYPE html>
	<head>
	<title>ColorEach</title>
	<script type="text/javascript" src="https://www.steema.com/files/public/teechart/html5/latest/src/teechart.js"></script>
	<script type="text/javascript">
	function draw() {
	  var Chart1=new Tee.Chart("Canvas1");
	  Chart1.title.text="ColorEach";
	  var Series1=Chart1.addSeries(new Tee.Bar());
	  Series1.title="Products";
	  Series1.colorEach="yes";
	  Series1.data.values=[192,120,48,24];
	  Series1.data.x=[1,2,3,4];
	  Series1.palette.colors=["#F56000","#06BA00","#FFFF00","#00A9D1"];
	  Series1.data.labels=["Product A","Product B","Product C","Product D"];
	  Series1.marks.visible=false;
	  Series1.format.gradient.visible=false;
	  Chart1.draw();
	}
	</script>
	</HEAD>
	<BODY onload="draw()">
	<canvas id="Canvas1" width="800" height="600">
	This browser does not seem to support HTML5 Canvas.
	</canvas>
	</BODY>
	</HTML>
Comments:
- it is important to disable the gradient property of the series,
- moving the mouse pointer over the bars, the highligting works with the correct colors,
- using the v2014.04.28.1.6 teechart.js script it works fine.

Would you be so kind as to check the latest version?

Thanks in advance,
MS

Re: ColorEach

Posted: Thu May 12, 2016 10:55 am
by yeray
Hello,

I could reproduce the problem so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1537

I've fixed it; that's why it's already closed.

Thanks for reporting it.

Re: ColorEach

Posted: Thu May 12, 2016 1:01 pm
by 17778248
Hello,

many thanks for the quick bugfix. How can I get the fixed JS file?

Best regards,
MS

Re: ColorEach

Posted: Thu May 12, 2016 2:52 pm
by yeray
Hello,
Microsolutions wrote:How can I get the fixed JS file?
I'll send the file (correcting also the issue here) to the mail account you have registered in this forum.