{"action":"created","issue":{"url":"https://api.github.com/repos/gwatts/jquery.sparkline/issues/96","labels_url":"https://api.github.com/repos/gwatts/jquery.sparkline/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/gwatts/jquery.sparkline/issues/96/comments","events_url":"https://api.github.com/repos/gwatts/jquery.sparkline/issues/96/events","html_url":"https://github.com/gwatts/jquery.sparkline/issues/96","id":21507994,"number":96,"title":"sparkline line chart highlightSpot and highlightLine wrong if first value is null","user":{"login":"olaf64","id":5763565,"avatar_url":"https://avatars.githubusercontent.com/u/5763565?v=3","gravatar_id":"","url":"https://api.github.com/users/olaf64","html_url":"https://github.com/olaf64","followers_url":"https://api.github.com/users/olaf64/followers","following_url":"https://api.github.com/users/olaf64/following{/other_user}","gists_url":"https://api.github.com/users/olaf64/gists{/gist_id}","starred_url":"https://api.github.com/users/olaf64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olaf64/subscriptions","organizations_url":"https://api.github.com/users/olaf64/orgs","repos_url":"https://api.github.com/users/olaf64/repos","events_url":"https://api.github.com/users/olaf64/events{/privacy}","received_events_url":"https://api.github.com/users/olaf64/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-10-24T08:25:11Z","updated_at":"2015-03-25T17:53:45Z","closed_at":null,"body":"i found a problem concerning jQuery Sparkline 2.1.2 linie charts:\r\nif the first value is null, then highlightSpot and highlightLine mark the wrong line.\r\n\r\nmaybe its easy fixed by inserting the following lines at line 1599 (sparkline 2.1.2):\r\n  } else {\r\n    // OC 23.10.2013: Fix wrong highlightSpot and highlightLine if first value is null\r\n    vertices.push(null);\r\n\r\naround this area (starting at line 1592:\r\n  if (y === null) {\r\n    if (i) {\r\n    if (yvalues[i - 1] !== null) {\r\n      path = [];\r\n      paths.push(path);\r\n    }\r\n    vertices.push(null);\r\n    } else {\r\n      // OC 23.10.2013: Fix wrong highlightSpot and highlightLine if first value is null\r\n      vertices.push(null);\r\n    }\r\n  } else {\r\n\r\nsee the following example sparkline_highlite-error.html:\r\nhttps://gist.github.com/olaf64/7133322"},"comment":{"url":"https://api.github.com/repos/gwatts/jquery.sparkline/issues/comments/86147913","html_url":"https://github.com/gwatts/jquery.sparkline/issues/96#issuecomment-86147913","issue_url":"https://api.github.com/repos/gwatts/jquery.sparkline/issues/96","id":86147913,"user":{"login":"zallek","id":1886834,"avatar_url":"https://avatars.githubusercontent.com/u/1886834?v=3","gravatar_id":"","url":"https://api.github.com/users/zallek","html_url":"https://github.com/zallek","followers_url":"https://api.github.com/users/zallek/followers","following_url":"https://api.github.com/users/zallek/following{/other_user}","gists_url":"https://api.github.com/users/zallek/gists{/gist_id}","starred_url":"https://api.github.com/users/zallek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zallek/subscriptions","organizations_url":"https://api.github.com/users/zallek/orgs","repos_url":"https://api.github.com/users/zallek/repos","events_url":"https://api.github.com/users/zallek/events{/privacy}","received_events_url":"https://api.github.com/users/zallek/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T17:53:45Z","updated_at":"2015-03-25T17:53:45Z","body":"@olaf64 fixed in https://github.com/botify-labs/jquery.sparkline.git#2.1.5 using your advice. Fell free to use it, even if you might dont need it anymore :)"}}