Rank: Member
Groups: jQueryChart, Registered Joined: 6/3/2013(UTC) Posts: 13
Thanks: 1 times Was thanked: 0 time(s) in 0 post(s)
|
Hi, When the data count is over 501 points, even if I specifies lineWidth of series as zero, a chart line does not disappear. Is this a jqChart's bug ? Can I avoid this phenomenon ? Code: <script lang="javascript" type="text/javascript">
function round(d) { return Math.round(100 * d) / 100; }
var data1 = []; var data2 = [];
var yValue1 = 50; var yValue2 = 50;
for (var i = 0; i < 500; i++) { yValue1 += Math.random() * 10 - 5; data1.push([i, round(yValue1)]); }
for (var i = 0; i < 501; i++) { yValue2 += Math.random() * 10 - 5; data2.push([i, round(yValue2)]); }
$(document).ready(function () {
$('#jqChart1').jqChart({ title: { text: '500 points', font: '18px sans-serif' }, axes: [ { type: 'linear', location: 'bottom' } ], legend: { visible: false }, series: [ { title: 'Series 1', type: 'line', data: data1, lineWidth : 0, markers: { type: 'circle', size: 0 } } ] });
$('#jqChart2').jqChart({ title: { text: '501 points', font: '18px sans-serif' }, axes: [ { type: 'linear', location: 'bottom' } ], legend: { visible: false }, series: [ { title: 'Series 2', type: 'line', data: data2, lineWidth : 0, markers: { type: 'circle', size: 0 } } ] }); }); </script>
</head> <body> <div id="jqChart1" style="width: 1000px; height: 300px;"></div> <div id="jqChart2" style="width: 1000px; height: 300px;"></div> </body> </html>
|