jQuery UI Widgets › Forums › Chart › Bug in line chart
Tagged: chart, javascript chart, jquery chart, jqwidgets chart
This topic contains 1 reply, has 2 voices, and was last updated by Hristo 7 years, 3 months ago.
-
AuthorBug in line chart Posts
-
Hi,
the line chart (with date-axis) seems to have a bug when there are several data entries at same day.Please check the following code:
Despite data are ordered ascensing by date and line direction must be only in right direction, the line chart sometimes changes the line direction to left
Look on date:17 Dec 2006, 110 the line jumps backwards and draws the data point twice.Thank you and best regards
Oliver<!DOCTYPE HTML> <html> <head> <title></title> <link rel='stylesheet' href='../../jqwidgets/styles/jqx.base.css' type='text/css'/> <script type='text/javascript' src='../../scripts/jquery-1.11.1.js'></script> <!-- This code was auto-generated based on the selected settings --> <!-- It has a dependency on jQWidgets ver.3.7 or later --> <script type='text/javascript' src='../../jqwidgets/jqxcore.js'></script> <script type='text/javascript' src='../../jqwidgets/jqxdata.js'></script> <script type='text/javascript' src='../../jqwidgets/jqxdraw.js'></script> <script type='text/javascript' src='../../jqwidgets/jqxchart.core.js'></script> <script type='text/javascript'> $(document).ready(function () { /* input data */ var data = [ {date: '2006/11/25 07:50', data: '99'}, {date: '2006/11/25 11:44', data: '83'}, {date: '2006/11/25 13:48', data: '68'}, {date: '2006/11/25 17:38', data: '178'}, {date: '2006/11/25 19:36', data: '61'}, {date: '2006/11/25 21:09', data: '121'}, {date: '2006/11/25 22:05', data: '169'}, {date: '2006/11/25 22:45', data: '157'}, {date: '2006/11/26 01:35', data: '97'}, {date: '2006/11/26 08:55', data: '90'}, {date: '2006/11/26 09:19', data: '67'}, {date: '2006/11/26 11:46', data: '74'}, {date: '2006/11/26 12:07', data: '67'}, {date: '2006/11/26 12:07', data: '67'}, {date: '2006/11/26 12:10', data: '67'}, {date: '2006/11/26 14:42', data: '160'}, {date: '2006/11/26 14:42', data: '160'}, {date: '2006/11/26 17:18', data: '124'}, {date: '2006/11/26 18:45', data: '130'}, {date: '2006/11/26 19:34', data: '79'}, {date: '2006/11/26 19:34', data: '79'}, {date: '2006/11/26 21:42', data: '142'}, {date: '2006/11/26 22:15', data: '128'}, {date: '2006/11/27 00:42', data: '144'}, {date: '2006/11/27 08:47', data: '113'}, {date: '2006/11/27 09:11', data: '99'}, {date: '2006/11/27 13:10', data: '86'}, {date: '2006/11/27 15:00', data: '68'}, {date: '2006/11/27 18:37', data: '72'}, {date: '2006/11/27 19:38', data: '83'}, {date: '2006/11/27 20:51', data: '148'}, {date: '2006/11/27 21:22', data: '140'}, {date: '2006/11/27 21:59', data: '126'}, {date: '2006/11/28 01:57', data: '85'}, {date: '2006/11/28 04:15', data: '83'}, {date: '2006/11/28 07:51', data: '95'}, {date: '2006/11/28 08:19', data: '86'}, {date: '2006/11/28 11:40', data: '88'}, {date: '2006/11/28 14:49', data: '95'}, {date: '2006/11/28 18:03', data: '144'}, {date: '2006/11/28 19:30', data: '176'}, {date: '2006/11/28 19:31', data: '176'}, {date: '2006/11/28 20:24', data: '223'}, {date: '2006/11/28 20:24', data: '223'}, {date: '2006/11/28 21:38', data: '209'}, {date: '2006/11/28 21:38', data: '209'}, {date: '2006/11/28 22:09', data: '214'}, {date: '2006/11/28 22:10', data: '214'}, {date: '2006/11/28 22:48', data: '106'}, {date: '2006/11/29 00:13', data: '85'}, {date: '2006/11/29 02:05', data: '131'}, {date: '2006/11/29 08:46', data: '94'}, {date: '2006/11/29 09:17', data: '74'}, {date: '2006/11/29 13:18', data: '94'}, {date: '2006/11/29 15:16', data: '103'}, {date: '2006/11/29 15:54', data: '131'}, {date: '2006/11/29 15:55', data: '131'}, {date: '2006/11/29 16:32', data: '126'}, {date: '2006/11/29 16:32', data: '126'}, {date: '2006/11/29 18:57', data: '128'}, {date: '2006/11/29 20:14', data: '131'}, {date: '2006/11/29 20:14', data: '131'}, {date: '2006/11/29 21:05', data: '148'}, {date: '2006/11/29 21:54', data: '142'}, {date: '2006/11/29 22:41', data: '83'}, {date: '2006/11/29 23:28', data: '121'}, {date: '2006/11/30 07:35', data: '97'}, {date: '2006/11/30 08:12', data: '90'}, {date: '2006/11/30 11:55', data: '148'}, {date: '2006/11/30 15:00', data: '122'}, {date: '2006/11/30 18:44', data: '194'}, {date: '2006/11/30 19:54', data: '164'}, {date: '2006/11/30 19:55', data: '164'}, {date: '2006/11/30 20:30', data: '142'}, {date: '2006/11/30 20:55', data: '117'}, {date: '2006/11/30 22:11', data: '90'}, {date: '2006/12/01 00:17', data: '88'}, {date: '2006/12/01 04:55', data: '103'}, {date: '2006/12/01 08:00', data: '110'}, {date: '2006/12/01 08:35', data: '113'}, {date: '2006/12/01 11:19', data: '142'}, {date: '2006/12/01 13:18', data: '121'}, {date: '2006/12/01 15:13', data: '112'}, {date: '2006/12/01 16:47', data: '95'}, {date: '2006/12/01 16:47', data: '95'}, {date: '2006/12/01 17:45', data: '103'}, {date: '2006/12/01 19:39', data: '61'}, {date: '2006/12/01 20:32', data: '153'}, {date: '2006/12/01 21:30', data: '157'}, {date: '2006/12/01 22:21', data: '115'}, {date: '2006/12/02 01:59', data: '81'}, {date: '2006/12/02 07:29', data: '95'}, {date: '2006/12/02 07:50', data: '90'}, {date: '2006/12/02 10:46', data: '117'}, {date: '2006/12/02 13:31', data: '130'}, {date: '2006/12/02 17:55', data: '126'}, {date: '2006/12/02 18:41', data: '117'}, {date: '2006/12/02 19:12', data: '131'}, {date: '2006/12/02 20:26', data: '160'}, {date: '2006/12/02 20:27', data: '160'}, {date: '2006/12/02 21:36', data: '142'}, {date: '2006/12/02 22:47', data: '124'}, {date: '2006/12/03 01:03', data: '88'}, {date: '2006/12/03 08:21', data: '94'}, {date: '2006/12/03 08:50', data: '95'}, {date: '2006/12/03 10:46', data: '112'}, {date: '2006/12/03 11:26', data: '54'}, {date: '2006/12/03 12:02', data: '144'}, {date: '2006/12/03 12:42', data: '144'}, {date: '2006/12/03 14:54', data: '189'}, {date: '2006/12/03 14:55', data: '189'}, {date: '2006/12/03 16:25', data: '180'}, {date: '2006/12/03 16:26', data: '180'}, {date: '2006/12/03 17:06', data: '176'}, {date: '2006/12/03 17:07', data: '176'}, {date: '2006/12/03 17:50', data: '158'}, {date: '2006/12/03 17:50', data: '158'}, {date: '2006/12/03 18:33', data: '97'}, {date: '2006/12/03 19:40', data: '59'}, {date: '2006/12/03 22:39', data: '130'}, {date: '2006/12/03 23:26', data: '133'}, {date: '2006/12/04 02:06', data: '97'}, {date: '2006/12/04 08:16', data: '103'}, {date: '2006/12/04 08:48', data: '97'}, {date: '2006/12/04 10:39', data: '94'}, {date: '2006/12/04 12:35', data: '83'}, {date: '2006/12/04 17:58', data: '97'}, {date: '2006/12/04 19:27', data: '85'}, {date: '2006/12/04 19:28', data: '85'}, {date: '2006/12/04 21:18', data: '99'}, {date: '2006/12/04 22:25', data: '95'}, {date: '2006/12/05 00:44', data: '79'}, {date: '2006/12/05 07:57', data: '88'}, {date: '2006/12/05 08:27', data: '79'}, {date: '2006/12/05 14:16', data: '79'}, {date: '2006/12/05 15:59', data: '131'}, {date: '2006/12/05 16:17', data: '121'}, {date: '2006/12/05 16:19', data: '121'}, {date: '2006/12/05 17:23', data: '103'}, {date: '2006/12/05 20:51', data: '135'}, {date: '2006/12/05 22:57', data: '103'}, {date: '2006/12/06 01:49', data: '104'}, {date: '2006/12/06 07:40', data: '99'}, {date: '2006/12/06 07:55', data: '95'}, {date: '2006/12/06 12:17', data: '113'}, {date: '2006/12/06 14:48', data: '178'}, {date: '2006/12/06 14:48', data: '178'}, {date: '2006/12/06 17:17', data: '88'}, {date: '2006/12/06 18:57', data: '61'}, {date: '2006/12/06 20:33', data: '65'}, {date: '2006/12/06 20:57', data: '67'}, {date: '2006/12/06 21:49', data: '158'}, {date: '2006/12/06 22:33', data: '173'}, {date: '2006/12/07 00:47', data: '128'}, {date: '2006/12/07 07:55', data: '112'}, {date: '2006/12/07 08:27', data: '106'}, {date: '2006/12/07 11:48', data: '124'}, {date: '2006/12/07 13:42', data: '130'}, {date: '2006/12/07 15:09', data: '103'}, {date: '2006/12/07 15:24', data: '104'}, {date: '2006/12/07 15:25', data: '104'}, {date: '2006/12/07 16:31', data: '97'}, {date: '2006/12/07 17:29', data: '110'}, {date: '2006/12/07 18:33', data: '110'}, {date: '2006/12/07 20:05', data: '148'}, {date: '2006/12/07 20:40', data: '148'}, {date: '2006/12/07 21:11', data: '104'}, {date: '2006/12/07 22:05', data: '108'}, {date: '2006/12/07 22:33', data: '94'}, {date: '2006/12/08 00:14', data: '77'}, {date: '2006/12/08 01:34', data: '131'}, {date: '2006/12/08 08:07', data: '99'}, {date: '2006/12/08 08:37', data: '95'}, {date: '2006/12/08 12:05', data: '104'}, {date: '2006/12/08 15:05', data: '94'}, {date: '2006/12/08 17:03', data: '131'}, {date: '2006/12/08 18:32', data: '106'}, {date: '2006/12/08 19:43', data: '131'}, {date: '2006/12/08 19:43', data: '131'}, {date: '2006/12/08 21:14', data: '124'}, {date: '2006/12/08 22:33', data: '95'}, {date: '2006/12/09 00:42', data: '104'}, {date: '2006/12/09 07:30', data: '97'}, {date: '2006/12/09 07:50', data: '95'}, {date: '2006/12/09 11:07', data: '92'}, {date: '2006/12/09 11:08', data: '90'}, {date: '2006/12/09 15:04', data: '157'}, {date: '2006/12/09 15:05', data: '157'}, {date: '2006/12/09 15:54', data: '149'}, {date: '2006/12/09 16:32', data: '130'}, {date: '2006/12/09 16:32', data: '130'}, {date: '2006/12/09 18:10', data: '131'}, {date: '2006/12/09 19:28', data: '166'}, {date: '2006/12/09 19:28', data: '166'}, {date: '2006/12/09 19:48', data: '175'}, {date: '2006/12/09 19:48', data: '175'}, {date: '2006/12/09 20:36', data: '178'}, {date: '2006/12/09 20:36', data: '178'}, {date: '2006/12/09 20:50', data: '166'}, {date: '2006/12/09 21:09', data: '144'}, {date: '2006/12/09 21:47', data: '162'}, {date: '2006/12/09 22:33', data: '146'}, {date: '2006/12/09 22:34', data: '146'}, {date: '2006/12/09 23:32', data: '106'}, {date: '2006/12/10 01:39', data: '101'}, {date: '2006/12/10 08:28', data: '104'}, {date: '2006/12/10 08:58', data: '95'}, {date: '2006/12/10 12:29', data: '86'}, {date: '2006/12/10 14:05', data: '130'}, {date: '2006/12/10 17:20', data: '95'}, {date: '2006/12/10 19:28', data: '135'}, {date: '2006/12/10 22:08', data: '81'}, {date: '2006/12/10 22:41', data: '86'}, {date: '2006/12/11 00:09', data: '232'}, {date: '2006/12/11 00:09', data: '232'}, {date: '2006/12/11 02:04', data: '106'}, {date: '2006/12/11 07:31', data: '112'}, {date: '2006/12/11 07:57', data: '121'}, {date: '2006/12/11 09:39', data: '220'}, {date: '2006/12/11 09:39', data: '220'}, {date: '2006/12/11 11:11', data: '164'}, {date: '2006/12/11 11:12', data: '164'}, {date: '2006/12/11 12:27', data: '106'}, {date: '2006/12/11 14:02', data: '131'}, {date: '2006/12/11 14:33', data: '121'}, {date: '2006/12/11 14:33', data: '121'}, {date: '2006/12/11 17:20', data: '182'}, {date: '2006/12/11 17:20', data: '182'}, {date: '2006/12/11 18:15', data: '167'}, {date: '2006/12/11 19:54', data: '108'}, {date: '2006/12/11 19:55', data: '108'}, {date: '2006/12/11 21:11', data: '104'}, {date: '2006/12/11 22:32', data: '70'}, {date: '2006/12/11 23:48', data: '115'}, {date: '2006/12/12 07:33', data: '95'}, {date: '2006/12/12 08:13', data: '94'}, {date: '2006/12/12 11:14', data: '124'}, {date: '2006/12/12 12:37', data: '104'}, {date: '2006/12/12 13:04', data: '104'}, {date: '2006/12/12 13:04', data: '104'}, {date: '2006/12/12 16:27', data: '135'}, {date: '2006/12/12 17:46', data: '92'}, {date: '2006/12/12 19:08', data: '68'}, {date: '2006/12/12 19:45', data: '85'}, {date: '2006/12/12 20:37', data: '95'}, {date: '2006/12/12 21:34', data: '97'}, {date: '2006/12/13 01:08', data: '95'}, {date: '2006/12/13 02:30', data: '110'}, {date: '2006/12/13 07:48', data: '101'}, {date: '2006/12/13 08:20', data: '88'}, {date: '2006/12/13 10:22', data: '88'}, {date: '2006/12/13 13:27', data: '95'}, {date: '2006/12/13 14:27', data: '79'}, {date: '2006/12/13 15:28', data: '142'}, {date: '2006/12/13 15:55', data: '135'}, {date: '2006/12/13 15:55', data: '135'}, {date: '2006/12/13 17:38', data: '112'}, {date: '2006/12/13 18:55', data: '106'}, {date: '2006/12/13 20:14', data: '137'}, {date: '2006/12/13 20:55', data: '149'}, {date: '2006/12/13 20:56', data: '149'}, {date: '2006/12/13 21:40', data: '133'}, {date: '2006/12/13 22:37', data: '104'}, {date: '2006/12/14 00:09', data: '76'}, {date: '2006/12/14 02:01', data: '97'}, {date: '2006/12/14 08:04', data: '86'}, {date: '2006/12/14 08:14', data: '83'}, {date: '2006/12/14 11:21', data: '137'}, {date: '2006/12/14 14:13', data: '110'}, {date: '2006/12/14 15:59', data: '131'}, {date: '2006/12/14 18:33', data: '97'}, {date: '2006/12/14 19:46', data: '103'}, {date: '2006/12/14 20:45', data: '122'}, {date: '2006/12/14 21:08', data: '99'}, {date: '2006/12/14 21:54', data: '140'}, {date: '2006/12/15 02:11', data: '135'}, {date: '2006/12/15 08:13', data: '106'}, {date: '2006/12/15 08:44', data: '104'}, {date: '2006/12/15 12:11', data: '148'}, {date: '2006/12/15 12:11', data: '148'}, {date: '2006/12/15 14:35', data: '108'}, {date: '2006/12/15 16:46', data: '149'}, {date: '2006/12/15 16:46', data: '149'}, {date: '2006/12/15 17:28', data: '146'}, {date: '2006/12/15 17:28', data: '146'}, {date: '2006/12/15 17:58', data: '131'}, {date: '2006/12/15 17:58', data: '131'}, {date: '2006/12/15 19:09', data: '126'}, {date: '2006/12/15 19:11', data: '126'}, {date: '2006/12/15 19:54', data: '149'}, {date: '2006/12/15 19:54', data: '149'}, {date: '2006/12/15 20:42', data: '166'}, {date: '2006/12/15 20:42', data: '166'}, {date: '2006/12/15 21:14', data: '196'}, {date: '2006/12/15 21:15', data: '196'}, {date: '2006/12/15 21:41', data: '151'}, {date: '2006/12/16 00:14', data: '112'}, {date: '2006/12/16 01:29', data: '106'}, {date: '2006/12/16 07:56', data: '108'}, {date: '2006/12/16 08:17', data: '106'}, {date: '2006/12/16 11:38', data: '94'}, {date: '2006/12/16 11:48', data: '90'}, {date: '2006/12/16 13:53', data: '119'}, {date: '2006/12/16 17:29', data: '144'}, {date: '2006/12/16 18:09', data: '117'}, {date: '2006/12/16 19:31', data: '106'}, {date: '2006/12/16 20:05', data: '144'}, {date: '2006/12/16 20:59', data: '130'}, {date: '2006/12/16 21:26', data: '158'}, {date: '2006/12/17 00:30', data: '202'}, {date: '2006/12/17 00:31', data: '200'}, {date: '2006/12/17 00:31', data: '200'}, {date: '2006/12/17 08:17', data: '110'}, {date: '2006/12/17 08:53', data: '108'}, {date: '2006/12/17 12:12', data: '86'}, {date: '2006/12/17 14:37', data: '76'}, {date: '2006/12/17 14:37', data: '76'}, {date: '2006/12/17 15:37', data: '124'}, {date: '2006/12/17 15:38', data: '124'}, {date: '2006/12/17 16:44', data: '187'}, {date: '2006/12/17 16:44', data: '187'}, {date: '2006/12/17 17:09', data: '187'}, {date: '2006/12/17 17:33', data: '155'}, {date: '2006/12/17 18:20', data: '94'}, {date: '2006/12/17 19:37', data: '103'}, {date: '2006/12/17 20:33', data: '104'}, {date: '2006/12/17 22:03', data: '104'}, {date: '2006/12/17 22:42', data: '97'}, {date: '2006/12/18 01:09', data: '85'}, {date: '2006/12/18 02:47', data: '121'}, {date: '2006/12/18 08:59', data: '117'}, {date: '2006/12/18 09:28', data: '85'}, {date: '2006/12/18 12:11', data: '103'}, {date: '2006/12/18 12:52', data: '88'}, {date: '2006/12/18 18:09', data: '135'}, {date: '2006/12/18 19:27', data: '108'}, {date: '2006/12/18 20:22', data: '142'}, {date: '2006/12/18 20:22', data: '142'}, {date: '2006/12/18 21:27', data: '137'}, {date: '2006/12/18 22:32', data: '106'}, {date: '2006/12/18 23:46', data: '95'}, {date: '2006/12/19 07:11', data: '104'}, {date: '2006/12/19 07:41', data: '108'}, {date: '2006/12/19 13:36', data: '104'}, {date: '2006/12/19 14:16', data: '95'}, {date: '2006/12/19 16:02', data: '94'}, {date: '2006/12/19 16:34', data: '95'}, {date: '2006/12/19 16:34', data: '95'}, {date: '2006/12/19 18:12', data: '166'}, {date: '2006/12/19 19:15', data: '139'}, {date: '2006/12/19 19:45', data: '124'}, {date: '2006/12/19 20:06', data: '72'}, {date: '2006/12/19 20:54', data: '103'}, {date: '2006/12/19 21:07', data: '88'}, {date: '2006/12/19 22:10', data: '103'}, {date: '2006/12/19 23:03', data: '85'}, {date: '2006/12/20 02:02', data: '85'}, {date: '2006/12/20 07:35', data: '94'}, {date: '2006/12/20 08:21', data: '85'}, {date: '2006/12/20 12:57', data: '85'}, {date: '2006/12/20 15:08', data: '106'}, {date: '2006/12/20 17:15', data: '157'}, {date: '2006/12/20 19:15', data: '121'}, {date: '2006/12/20 19:16', data: '121'}, {date: '2006/12/20 20:23', data: '83'}, {date: '2006/12/20 21:17', data: '133'}, {date: '2006/12/20 22:58', data: '133'}, {date: '2006/12/21 00:27', data: '117'}, {date: '2006/12/21 07:19', data: '101'}, {date: '2006/12/21 07:57', data: '113'}, {date: '2006/12/21 12:00', data: '151'}, {date: '2006/12/21 14:35', data: '157'}, {date: '2006/12/21 15:09', data: '128'}, {date: '2006/12/21 15:46', data: '124'}, {date: '2006/12/21 15:46', data: '124'}, {date: '2006/12/21 17:18', data: '124'}, {date: '2006/12/21 17:18', data: '124'}, {date: '2006/12/21 19:10', data: '157'}, {date: '2006/12/21 20:09', data: '149'}, {date: '2006/12/21 20:09', data: '149'}, {date: '2006/12/21 21:33', data: '86'}, {date: '2006/12/22 01:16', data: '117'}, {date: '2006/12/22 08:23', data: '95'}, {date: '2006/12/22 09:03', data: '81'}, {date: '2006/12/22 11:03', data: '124'}, {date: '2006/12/22 12:37', data: '106'}, {date: '2006/12/22 12:37', data: '106'}, {date: '2006/12/22 16:23', data: '133'}, {date: '2006/12/22 18:08', data: '126'}, {date: '2006/12/22 21:05', data: '103'}, {date: '2006/12/22 21:05', data: '103'}, {date: '2006/12/22 21:52', data: '97'}, {date: '2006/12/23 01:01', data: '130'}, {date: '2006/12/23 08:05', data: '94'}, {date: '2006/12/23 08:40', data: '94'}, {date: '2006/12/23 13:41', data: '94'}, {date: '2006/12/23 15:20', data: '144'}, {date: '2006/12/23 15:20', data: '144'}, {date: '2006/12/23 16:41', data: '79'}, {date: '2006/12/23 19:07', data: '85'}, {date: '2006/12/23 21:13', data: '130'}, {date: '2006/12/23 22:02', data: '131'}, {date: '2006/12/23 23:01', data: '103'}, {date: '2006/12/24 00:03', data: '81'}, {date: '2006/12/24 08:49', data: '86'}, {date: '2006/12/24 09:19', data: '72'}, {date: '2006/12/24 13:54', data: '101'}, {date: '2006/12/24 13:54', data: '99'}, {date: '2006/12/24 17:32', data: '149'}, {date: '2006/12/24 18:39', data: '110'}, {date: '2006/12/24 19:22', data: '103'}, {date: '2006/12/24 19:23', data: '103'}, {date: '2006/12/24 21:53', data: '149'}, {date: '2006/12/24 23:01', data: '171'}, {date: '2006/12/24 23:01', data: '171'}, {date: '2006/12/25 01:45', data: '124'}, {date: '2006/12/25 03:42', data: '110'}, {date: '2006/12/25 09:21', data: '85'}, {date: '2006/12/25 09:50', data: '67'}, {date: '2006/12/25 12:05', data: '124'}, {date: '2006/12/25 12:37', data: '106'}, {date: '2006/12/25 12:37', data: '106'}, {date: '2006/12/25 13:51', data: '137'}, {date: '2006/12/25 14:11', data: '139'}, {date: '2006/12/25 14:11', data: '139'}, {date: '2006/12/25 15:32', data: '191'}, {date: '2006/12/25 15:33', data: '191'}, {date: '2006/12/25 16:07', data: '175'}, {date: '2006/12/25 16:35', data: '149'}, {date: '2006/12/25 16:59', data: '128'}, {date: '2006/12/25 19:17', data: '149'}, {date: '2006/12/25 19:17', data: '149'}, {date: '2006/12/25 20:25', data: '180'}, {date: '2006/12/25 20:26', data: '180'}, {date: '2006/12/25 22:28', data: '104'}, {date: '2006/12/26 00:33', data: '103'}, {date: '2006/12/26 08:51', data: '113'}, {date: '2006/12/26 09:20', data: '119'}, {date: '2006/12/26 12:15', data: '99'}, {date: '2006/12/26 13:33', data: '86'}, {date: '2006/12/26 15:34', data: '108'}, {date: '2006/12/26 16:19', data: '81'}, {date: '2006/12/26 18:06', data: '124'}, {date: '2006/12/26 18:55', data: '104'}, {date: '2006/12/26 19:31', data: '94'}, {date: '2006/12/26 19:32', data: '94'}, {date: '2006/12/26 22:10', data: '92'}, {date: '2006/12/27 08:07', data: '99'}, {date: '2006/12/27 08:46', data: '97'}, {date: '2006/12/27 11:36', data: '130'}, {date: '2006/12/27 12:12', data: '115'}, {date: '2006/12/27 15:29', data: '184'}, {date: '2006/12/27 15:31', data: '185'}, {date: '2006/12/27 15:31', data: '185'}, {date: '2006/12/27 16:19', data: '133'}, {date: '2006/12/27 16:19', data: '133'}, {date: '2006/12/27 19:01', data: '83'}, {date: '2006/12/27 20:57', data: '61'}, {date: '2006/12/27 21:17', data: '65'}, {date: '2006/12/27 21:51', data: '146'}, {date: '2006/12/27 22:31', data: '148'}, {date: '2006/12/27 22:31', data: '148'}, {date: '2006/12/27 23:16', data: '182'}, {date: '2006/12/27 23:16', data: '182'}, {date: '2006/12/28 00:32', data: '160'}, {date: '2006/12/28 00:32', data: '160'}, {date: '2006/12/28 01:55', data: '90'}, {date: '2006/12/28 02:35', data: '112'}, {date: '2006/12/28 09:08', data: '85'}, {date: '2006/12/28 09:30', data: '72'}, {date: '2006/12/28 12:31', data: '88'}, {date: '2006/12/28 15:18', data: '70'}, {date: '2006/12/28 17:53', data: '83'}, {date: '2006/12/28 18:07', data: '90'}, {date: '2006/12/28 19:38', data: '115'}, {date: '2006/12/28 19:39', data: '115'}, {date: '2006/12/28 21:55', data: '230'}, {date: '2006/12/28 21:55', data: '230'}, {date: '2006/12/28 23:51', data: '198'}, {date: '2006/12/28 23:52', data: '198'}, {date: '2006/12/29 01:03', data: '155'}, {date: '2006/12/29 07:52', data: '92'}, {date: '2006/12/29 08:23', data: '83'}, {date: '2006/12/29 12:37', data: '148'}, {date: '2006/12/29 17:28', data: '72'}, {date: '2006/12/29 18:01', data: '70'}, {date: '2006/12/29 18:01', data: '70'}, {date: '2006/12/29 18:17', data: '76'}, {date: '2006/12/29 19:56', data: '88'}, {date: '2006/12/29 19:57', data: '88'}, {date: '2006/12/29 22:08', data: '86'}, {date: '2006/12/29 23:21', data: '131'}, {date: '2006/12/30 01:00', data: '112'}, {date: '2006/12/30 04:30', data: '108'}, {date: '2006/12/30 09:04', data: '86'}, {date: '2006/12/30 09:22', data: '74'}, {date: '2006/12/30 13:34', data: '117'}, {date: '2006/12/30 16:17', data: '176'}, {date: '2006/12/30 16:18', data: '176'}, {date: '2006/12/30 18:31', data: '99'}, {date: '2006/12/30 19:35', data: '90'}, {date: '2006/12/30 21:22', data: '112'}, {date: '2006/12/30 21:22', data: '112'}, {date: '2006/12/31 00:00', data: '110'}, {date: '2006/12/31 01:39', data: '97'}, {date: '2006/12/31 07:24', data: '90'}, {date: '2006/12/31 08:25', data: '85'}, {date: '2006/12/31 12:27', data: '77'}, {date: '2006/12/31 13:33', data: '106'}, {date: '2006/12/31 15:06', data: '135'}, {date: '2006/12/31 16:10', data: '144'}, {date: '2006/12/31 17:19', data: '140'}, {date: '2006/12/31 17:19', data: '140'}, {date: '2006/12/31 18:13', data: '124'}, {date: '2006/12/31 19:52', data: '113'}, {date: '2006/12/31 20:14', data: '108'}, {date: '2006/12/31 20:15', data: '108'}, {date: '2006/12/31 21:31', data: '124'}, {date: '2006/12/31 21:31', data: '124'}, {date: '2006/12/31 22:41', data: '108'}, {date: '2006/12/31 23:40', data: '99'}, {date: '2007/01/01 01:53', data: '101'}, {date: '2007/01/01 09:19', data: '79'}, {date: '2007/01/01 09:40', data: '86'}, {date: '2007/01/01 14:13', data: '92'}, {date: '2007/01/01 16:49', data: '122'}, {date: '2007/01/01 16:49', data: '122'}, {date: '2007/01/01 18:32', data: '131'}, {date: '2007/01/01 20:07', data: '77'}, {date: '2007/01/01 20:08', data: '77'}, {date: '2007/01/01 22:21', data: '144'}, {date: '2007/01/01 23:07', data: '126'}, {date: '2007/01/02 08:43', data: '88'}, {date: '2007/01/02 09:03', data: '86'}, {date: '2007/01/02 12:44', data: '164'}, {date: '2007/01/02 14:30', data: '108'}, {date: '2007/01/02 16:21', data: '142'}, {date: '2007/01/02 16:21', data: '142'}, {date: '2007/01/02 18:03', data: '149'}, {date: '2007/01/02 19:49', data: '144'}, {date: '2007/01/02 21:05', data: '133'}, {date: '2007/01/02 21:06', data: '133'}, {date: '2007/01/02 21:44', data: '124'}, {date: '2007/01/03 00:31', data: '115'}, {date: '2007/01/03 08:41', data: '94'}, {date: '2007/01/03 09:05', data: '85'}, {date: '2007/01/03 12:16', data: '144'}, {date: '2007/01/03 14:08', data: '151'}, {date: '2007/01/03 14:08', data: '151'}, {date: '2007/01/03 15:27', data: '101'}, {date: '2007/01/03 18:00', data: '131'}, {date: '2007/01/03 19:26', data: '112'}, {date: '2007/01/03 20:54', data: '218'}, {date: '2007/01/03 20:55', data: '218'}, {date: '2007/01/03 20:57', data: '182'}, {date: '2007/01/03 21:47', data: '223'}, {date: '2007/01/03 21:50', data: '202'}, {date: '2007/01/03 21:50', data: '202'}, {date: '2007/01/03 23:35', data: '94'}, {date: '2007/01/04 01:05', data: '86'}, {date: '2007/01/04 06:25', data: '95'}, {date: '2007/01/04 07:10', data: '65'}, {date: '2007/01/04 09:32', data: '86'}, {date: '2007/01/04 11:05', data: '95'}, {date: '2007/01/04 13:00', data: '104'}, {date: '2007/01/04 15:22', data: '106'}, {date: '2007/01/04 16:06', data: '94'}, {date: '2007/01/04 16:39', data: '121'}, {date: '2007/01/04 18:53', data: '139'}, {date: '2007/01/04 19:40', data: '99'}, {date: '2007/01/04 20:31', data: '97'}, {date: '2007/01/04 23:24', data: '104'}, {date: '2007/01/05 07:56', data: '79'}, {date: '2007/01/05 08:19', data: '65'}, {date: '2007/01/05 11:20', data: '79'}, {date: '2007/01/05 12:21', data: '119'}, {date: '2007/01/05 12:21', data: '117'}, {date: '2007/01/05 12:53', data: '99'}, {date: '2007/01/05 16:48', data: '59'}, {date: '2007/01/05 18:45', data: '99'}, {date: '2007/01/05 21:54', data: '142'}, {date: '2007/01/05 23:30', data: '94'}, {date: '2007/01/06 01:51', data: '117'}, {date: '2007/01/06 07:07', data: '76'}, {date: '2007/01/06 07:37', data: '63'}, {date: '2007/01/06 07:37', data: '63'}, {date: '2007/01/06 10:13', data: '85'}, {date: '2007/01/06 11:01', data: '122'}, {date: '2007/01/06 12:27', data: '95'}, {date: '2007/01/06 14:20', data: '68'}, {date: '2007/01/06 15:15', data: '112'}, {date: '2007/01/06 15:55', data: '144'}, {date: '2007/01/06 15:55', data: '144'}, {date: '2007/01/06 18:01', data: '151'}, {date: '2007/01/06 18:50', data: '144'}, {date: '2007/01/06 19:58', data: '108'}, {date: '2007/01/06 19:58', data: '108'}, {date: '2007/01/06 22:35', data: '113'}, {date: '2007/01/06 23:31', data: '117'}, {date: '2007/01/07 01:28', data: '85'}, {date: '2007/01/07 09:13', data: '77'}, {date: '2007/01/07 09:40', data: '56'}, {date: '2007/01/07 09:40', data: '56'}, {date: '2007/01/07 11:08', data: '142'}, {date: '2007/01/07 12:36', data: '79'}, {date: '2007/01/07 16:13', data: '119'}, {date: '2007/01/07 17:59', data: '275'}, {date: '2007/01/07 17:59', data: '275'}, {date: '2007/01/07 18:01', data: '266'}, {date: '2007/01/07 19:04', data: '256'}, {date: '2007/01/07 19:05', data: '256'}, {date: '2007/01/07 19:06', data: '256'}, {date: '2007/01/07 20:03', data: '196'}, {date: '2007/01/07 20:04', data: '196'}, {date: '2007/01/07 20:58', data: '225'}, {date: '2007/01/07 20:59', data: '225'}, {date: '2007/01/07 21:14', data: '214'}, {date: '2007/01/07 21:36', data: '164'}, {date: '2007/01/07 22:19', data: '56'}, {date: '2007/01/07 22:31', data: '54'}, {date: '2007/01/07 22:38', data: '70'}, {date: '2007/01/07 23:55', data: '121'}, {date: '2007/01/08 08:12', data: '103'}, {date: '2007/01/08 08:45', data: '115'}, {date: '2007/01/08 10:39', data: '229'}, {date: '2007/01/08 10:39', data: '229'}, {date: '2007/01/08 10:43', data: '223'}, {date: '2007/01/08 10:45', data: '223'}, {date: '2007/01/08 11:53', data: '94'}, {date: '2007/01/08 12:53', data: '83'}, {date: '2007/01/08 14:38', data: '58'}, {date: '2007/01/08 17:07', data: '81'}, {date: '2007/01/08 17:43', data: '126'}, {date: '2007/01/08 17:43', data: '126'}, {date: '2007/01/08 18:54', data: '135'}, {date: '2007/01/08 19:37', data: '166'}, {date: '2007/01/08 19:37', data: '166'}, {date: '2007/01/08 20:42', data: '158'}, {date: '2007/01/09 00:36', data: '112'}, {date: '2007/01/09 08:18', data: '88'}, {date: '2007/01/09 09:19', data: '77'}, {date: '2007/01/09 12:17', data: '112'}, {date: '2007/01/09 13:57', data: '88'}, {date: '2007/01/09 18:16', data: '95'}, {date: '2007/01/09 19:37', data: '104'}, {date: '2007/01/09 19:37', data: '104'}, {date: '2007/01/09 20:50', data: '113'}, {date: '2007/01/09 20:51', data: '113'}, {date: '2007/01/09 21:23', data: '135'}, {date: '2007/01/09 23:24', data: '173'}, {date: '2007/01/09 23:25', data: '173'}, {date: '2007/01/10 02:43', data: '83'}, {date: '2007/01/10 05:13', data: '133'}, {date: '2007/01/10 09:11', data: '77'}, {date: '2007/01/10 09:39', data: '65'}, {date: '2007/01/10 11:03', data: '124'}, {date: '2007/01/10 12:27', data: '112'}, {date: '2007/01/10 12:46', data: '117'}, {date: '2007/01/10 17:13', data: '77'}, {date: '2007/01/10 17:49', data: '79'}, {date: '2007/01/10 17:49', data: '79'}, {date: '2007/01/10 18:55', data: '126'}, {date: '2007/01/10 19:34', data: '144'}, {date: '2007/01/10 19:34', data: '144'}, {date: '2007/01/10 20:27', data: '113'}, {date: '2007/01/10 21:48', data: '149'}, {date: '2007/01/11 01:00', data: '83'}, {date: '2007/01/11 08:45', data: '70'}, {date: '2007/01/11 09:15', data: '85'}, {date: '2007/01/11 10:37', data: '108'}, {date: '2007/01/11 12:54', data: '94'}, {date: '2007/01/11 17:22', data: '184'}, {date: '2007/01/11 17:22', data: '184'}, {date: '2007/01/11 18:31', data: '133'}, {date: '2007/01/11 19:43', data: '166'}, {date: '2007/01/11 19:44', data: '166'}, {date: '2007/01/11 20:06', data: '173'}, {date: '2007/01/11 20:07', data: '173'}, {date: '2007/01/11 21:10', data: '193'}, {date: '2007/01/11 21:11', data: '193'}, {date: '2007/01/12 00:41', data: '140'}, {date: '2007/01/12 02:22', data: '115'}, {date: '2007/01/12 04:50', data: '74'}, {date: '2007/01/12 07:09', data: '103'}, {date: '2007/01/12 07:43', data: '76'}, {date: '2007/01/12 12:47', data: '94'}, {date: '2007/01/12 15:24', data: '106'}, {date: '2007/01/12 16:54', data: '95'}, {date: '2007/01/12 17:21', data: '121'}, {date: '2007/01/12 17:21', data: '121'}, {date: '2007/01/12 18:31', data: '112'}, {date: '2007/01/12 19:31', data: '144'}, {date: '2007/01/12 19:31', data: '144'}, {date: '2007/01/12 21:30', data: '257'}, {date: '2007/01/12 21:37', data: '261'}, {date: '2007/01/12 21:37', data: '261'}, {date: '2007/01/12 22:35', data: '243'}, {date: '2007/01/12 22:41', data: '223'}, {date: '2007/01/12 23:23', data: '234'}, {date: '2007/01/12 23:32', data: '230'}, {date: '2007/01/12 23:33', data: '230'}, {date: '2007/01/13 01:14', data: '104'}, {date: '2007/01/13 01:35', data: '95'}, {date: '2007/01/13 07:56', data: '81'}, {date: '2007/01/13 08:38', data: '70'}, {date: '2007/01/13 10:38', data: '77'}, {date: '2007/01/13 12:38', data: '144'}, {date: '2007/01/13 17:43', data: '117'}, {date: '2007/01/13 19:02', data: '108'}, {date: '2007/01/13 19:35', data: '108'}, {date: '2007/01/13 19:35', data: '108'}, {date: '2007/01/13 20:48', data: '126'}, {date: '2007/01/14 01:15', data: '112'}, {date: '2007/01/14 09:05', data: '90'}, {date: '2007/01/14 09:41', data: '94'}, {date: '2007/01/14 10:05', data: '85'}, {date: '2007/01/14 11:01', data: '79'}, {date: '2007/01/14 12:45', data: '119'}, {date: '2007/01/14 15:29', data: '144'}, {date: '2007/01/14 15:29', data: '144'}, {date: '2007/01/14 16:11', data: '139'}, {date: '2007/01/14 16:12', data: '139'}, {date: '2007/01/14 16:59', data: '153'}, {date: '2007/01/14 18:43', data: '209'}, {date: '2007/01/14 18:43', data: '209'}, {date: '2007/01/14 20:13', data: '155'}, {date: '2007/01/14 20:13', data: '155'}, {date: '2007/01/14 21:21', data: '185'}, {date: '2007/01/14 21:21', data: '185'}, {date: '2007/01/14 21:53', data: '169'}, {date: '2007/01/15 00:55', data: '126'}, {date: '2007/01/15 01:54', data: '117'}, {date: '2007/01/15 07:51', data: '90'}, {date: '2007/01/15 08:14', data: '76'}, {date: '2007/01/15 10:05', data: '94'}, {date: '2007/01/15 11:46', data: '139'}, {date: '2007/01/15 12:54', data: '162'}, {date: '2007/01/15 15:00', data: '200'}]; /* data adapter settings */ var dataAdapter = new $.jqx.dataAdapter({ localdata: data, datafields: [ {name: "date", type: "string"}, {name: "data", type: "number"} ] }); /* chart settings */ var chartSettings = { source: dataAdapter, title: "My Chart Title", description: "My Chart Description", padding: { left: 5, top: 5, right: 5, bottom: 5 }, titlePadding: { left: 5, top: 5, right: 5, bottom: 5 }, enableAnimations: false, xAxis: { dataField: "date", type: "date", baseUnit: "day", valuesOnTicks: false }, valueAxis: { valuesOnTicks: true }, seriesGroups: [ { type: "line", series: [ { dataField: "data", emptyPointsDisplay: "connect" } ] } ] } /* create chart in the container element */ $('#chartContainer').jqxChart(chartSettings); }); </script> </head> <body> <div id='chartContainer' style='height: 500px; width: 700px;'></div> </body> </html>
Hello oliver13,
Please, change the type of the “date” datafield to the
date
.var dataAdapter = new $.jqx.dataAdapter({ localdata: data, datafields: [ { name: "date", type: "date" }, { name: "data", type: "number" } ] });
Best Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.