setInterval and setLabel don't work together.

Posted by resonator 
setInterval and setLabel don't work together.
March 10, 2009 12:47AM
Setting labels doesn't work after you enable setIntervalStartX or setIntervalEndX. I haven't tested the Y axies.

<script type="text/javascript">
	var myData = new Array([1233532982, 1000],[1234137782, 960],[1234742582, 920],[1235347382, 880],[1235952182, 840],[1236556982, 800],[1237161782, 760],[1237766582, 720],[1238371382, 680],[1238976182, 640],[1239580982, 600],[1240185782, 560],[1240790582, 520],[1241395382, 480],[1242000182, 440],[1242604982, 400],[1243209782, 360],[1243814582, 320],[1244419382, 280],[1245024182, 240],[1245628982, 200],[1246233782, 160],[1246838582, 120],[1247443382, 80],[1248048182, 40],[1248652982, 0],[1249257782, -40],[1249862582, -80],[1250467382, -120],[1251072182, -160],[1251676982, -200],[1252281782, -240],[1252886582, -280],[1253491382, -320],[1254096182, -360],[1254700982, -400],[1255305782, -440],[1255910582, -480],[1256515382, -520],[1257120182, -560],[1257724982, -600],[1258329782, -640],[1258934582, -680],[1259539382, -720],[1260144182, -760],[1260748982, -800],[1261353782, -840],[1261958582, -880],[1262563382, -920],[1263168182, -960],[1263772982, -1000],[1264377782, -1040],[1264982582, -1080],[1265587382, -1120],[1266192182, -1160],[1266796982, -1200],[1267401782, -1240],[1268006582, -1280]);
	var myaccount8 = new JSChart('account8', 'line');

	myaccount8.setTitle('');
	myaccount8.setSize(650,300);
	myaccount8.setTextPaddingTop(0);
	myaccount8.setTextPaddingBottom(0);
	myaccount8.setTextPaddingLeft(0);
	myaccount8.setLineColor('#c60d0d');
	myaccount8.setAxisNamehot smiley'');
	myaccount8.setAxisValuesNumberhot smiley5);
	myaccount8.setAxisNameY('$');
	myaccount8.setAxisWidth(4);
	myaccount8.setAxisColor('#000');
	myaccount8.setAxisNameColor('#000');
	myaccount8.setAxisNameFontSize(12);
			
	myaccount8.setIntervalStarthot smiley1236643200);
	myaccount8.setIntervalEndhot smiley1268179200);
	myaccount8.setShowXValues(false);
	myaccount8.setLabelhot smiley[1236643200, 'test']);
	
	myaccount8.setDataArray(myData);
	myaccount8.draw();
</script>
Sorry, you do not have permission to post/reply in this forum.