I am trying to get some data to provide a scatter plot using high quality. Here is a sample of data.
{"results": [["2013-04-14 10:00", -1], ["2013-04-14 11:48", 0], ["2013 -04-14 14:45 ", -1], [" 2013-04-14 18:02 ", -1], [" 2013-04-14 18:45 ", - 1], [" 2013-04 -14 19:57 ", -1], [" 2013-04-14 22:19 ", 0], [" 2013-04-14 23:00 ", 0], [" 2013-04-14 23: 00 ", -1], [" 2013-04-14 23:00 ", 0], [" 2013-04-14 23:00 ", 0], [" 2013-04 -14 23:00 ", 0 ], ["2013-04-14 23:00", 0], ["2013-04-14 23:00", 0], ["2013-04-14 23:00", 0], ["2013 -04-15 00:18 ", 0], [" 2013-04-15 00:21 ", 0], [" 2013-04-15 00:22 ", 0], [" 2013-04-15 00 : 24 ", 1], [" 2013-04-15 04:15 ", -1], [" 2013-04-15 09:02 ", -1]]}
Here is T: JS:
$ (document) .ready (function () {var option = {chart: {rendereTo: 'container', type: 'scatter', zoom type : 'XI'}, Title: {Text: 'Publication Date CET report '}, subtitled: {text:' written by Oxyme for Cat Chilton '}, XXIS: {title: {text:' publication date '}, type:' date time '}, YXx: {min: 0 , Title: {text: 'sentiment', align: 'high'}, label: {overflow: 'justify'}}, plot options: {scatter: {marker: {radius: 5, state: hover: {enable: true , Line color: 'rgb (0,0,0)'}}}, states: {hover: {marker: {enable: wrong layout: left, align: 'left', verticalline: 'top', y : 0, Floating: True, Border width: 1, background color: ((Highchart. & Amp; Amp; Highchart theme.legendBackgroundColor || || '#FFFFFF'), Shadow: True}, Credit: {Enabled: false}, series: [{}}}; $ .getJSON ('sample.json', function (data) {options.series [0]. Data = data; var chart = new highchart chart (option);});
I can not find any given number on the page, but the chart appears with the title and not what I I guess this data is an issue with formatting, but I can not find a reason why anybody can help?
result
from property to data Value
options.series [0] .data = data. result;
No comments:
Post a Comment