Rank: Member
Groups: jQueryChart, Registered Joined: 6/7/2012(UTC) Posts: 16
Thanks: 0 times Was thanked: 0 time(s) in 0 post(s)
|
Has anyone else noticed that if you chart fewer than five points on the scatter chart with the date in the x-axis then it turns the dates in to a time? Try this... Code:<script lang="javascript" type="text/javascript"> var tab1 = [[new Date('01/03/2012'),16.00]]; var tab2 = [[new Date('01/03/2012'),21.00],[new Date('01/09/2012'),23.00]]; var tab3 = [[new Date('01/09/2012'),25.00]]; $(document).ready(function () { $('#scatter01').jqChart({ axes: [ { title:'UoM', type:'linear', location:'left' } ], series: [ { title:'PORT 07', type:'scatter', data: tab1 }, { title:'PORT 08', type:'scatter', data: tab2 }, { title:'PORT 09', type:'scatter', data: tab3 } ] }); }); </script>
|