ColorEach

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
Microsolutions
Newbie
Newbie
Posts: 10
Joined: Tue May 10, 2016 12:00 am

ColorEach

Post by Microsolutions » Tue May 10, 2016 3:42 pm

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

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: ColorEach

Post by Yeray » Thu May 12, 2016 10:55 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Microsolutions
Newbie
Newbie
Posts: 10
Joined: Tue May 10, 2016 12:00 am

Re: ColorEach

Post by Microsolutions » Thu May 12, 2016 1:01 pm

Hello,

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

Best regards,
MS

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: ColorEach

Post by Yeray » Thu May 12, 2016 2:52 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply