highstock

tickInterval doesn't work properly in Highchart and Highstock.

亡梦爱人 提交于 2019-12-11 10:27:03
问题 I am trying to use Highstock/Highchart to show some data. In my data, the interval between each record is 1 millisecond, I want to set length between each tick to 40 milliseconds, I tried it by setting tickInterval to 40, but on the graph it shows 50 between each tick. If I set it to 30, the graph shows 25. Very weird, I don't know what to do now, please help. The link: http://jsfiddle.net/xEcNS/1/ Thanks you 回答1: I went through the highstock source code and found this piece of code function

Relative time in Highstocks chart

蹲街弑〆低调 提交于 2019-12-11 10:18:49
问题 How do I show relative time on the x-axis in a Highstocks chart? From my understanding, the datetime type is only used to format dates, not edit them in any way. The data structure that I am trying to display is sorted by unix timestamps and looks like the following, but can be changed if needed: [ // [timestamp, value] [1416478472, 1], [1416478473, 1], [1416478474, 0.5], [1416478475, 0.25] ... ] My goal is to have the x-axis use appropriate labels that shows time elapsed since the first

Formatting Tooltip of Values >1000

∥☆過路亽.° 提交于 2019-12-11 08:03:20
问题 I am using an ohlc highstock chart in my project. I have values in 4-5 digits. For example Open : 2717.35 High : 2719.5 Low : 2709.18 Close : 2712.97 SMA(50) : 2677.4904 SMA(200) : 2627.7230 Volume : 3368690000 In the tooltip of the chart, I want these values like this (added comma) Open : 2,717.35 High : 2,719.5 Low : 2,709.18 Close : 2,712.97 SMA(50) : 2,677.4904 SMA(200) : 2,627.7230 Volume : 3,368,690,000 But in the case of 4 digit values, tooltip looks like this There's a space in the 4

Highstock - why is min/maxPadding on xAxis ignored

让人想犯罪 __ 提交于 2019-12-11 06:23:54
问题 Why are min/maxPadding ignored? I would like to have padding from both sides on xAxis, that is of type 'datetime' Check this example out: http://jsfiddle.net/matijash/zs3Ag/ $(function() { $('#container').highcharts('StockChart', { chart: { }, xAxis: { minPadding: 0.5, maxPadding: 0.5 }, rangeSelector: { selected: 1 }, series: [{ name: 'USD to EUR', data: usdeur }] }); }); 回答1: In the Highstock paddings are not supported,onyl in highcharts. 来源: https://stackoverflow.com/questions/20734679

date highstock highchart

余生颓废 提交于 2019-12-11 05:25:13
问题 can some one tell me how to read this date : [1113955200000,35.51], this code 1113955200000 gives me Tuesday apr 19 2005 any ideas ?????? what this numbers means and how to convert $(function() { $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl- c.json&callback=?', function(data) { // Create the chart window.chart = new Highcharts.StockChart({ chart : { renderTo : 'container' }, rangeSelector : { selected : 0 }, title : { text : 'TTm' }, series : [{ name : 'AAPL Stock

Highstock charts error: this.labelBBox is undefined line 30

我是研究僧i 提交于 2019-12-11 04:45:30
问题 I have a web application, with tons of fully functional Highchart graphs. I am trying to implement Highstock in a graph, but it is giving me a firebug error directly in the Highstock file: this.labelBBox is undefined line 30 of Highstock.js All my libraries are up to date (exactly the same as the demo versions online) I cannot figure out why I am having this error, here is my code: function generateChart10(id, dataChart, currencies){ // create the chart chart = new Highcharts.StockChart({

Highstock: set xAxis as not “datetime”

可紊 提交于 2019-12-11 04:29:48
问题 I am trying to populate a highchart with some dynamic data in my angularjs application. I am using the "highcharts-ng" directive for working the the highcharts. https://github.com/pablojim/highcharts-ng The data is typically of the following format: x-axis (categories): [0, 0.0001001001001, 0.0002002002002, 0.0003003003003, 0.0004004004004, 0.000500500500501, 0.000600600600601] y-axis: { name: value1, data: [ 0, 2.27112321592e-7, 8.69358451877e-7, 0.00000192654087985, 0.00000339761308545, 0

HighStock if time inertval missing shows red line or blank space?

ぃ、小莉子 提交于 2019-12-11 03:50:54
问题 Hi I used high stock chart for showing data in time series format. I received data every 5 minutes, for X-axis I set timestamp which I received on every 5 minutes. but in case some data not coming from 5 minutes then I want to display that line in red or blank below I tried JsFiddle link In this demo data come at 10:25 and after 10:35 so in between I want to shows red line or blank space. Following images shows expected output Or 回答1: I think the issue here is how is highcharts supposed to

Highstock : Previous data still displayed when changing datagrouping

拈花ヽ惹草 提交于 2019-12-11 03:10:55
问题 Sorry for the english ... I got a chart with custom data grouping. When I click to change the zoom, the new data are displayed over the previous one (which aren't deleted) :-( rangeSelector : { allButtonsEnabled: true, buttons: [{ type: 'month', count: 3, text: 'Day', dataGrouping: { forced: true, units: [['day', [1]]] } }, { type: 'all', text: 'Month', dataGrouping: { forced: true, units: [['month', [1]]] } }], selected: 2 }, I found a fiddle with this problem : http://jsfiddle.net/tqyyqmzs

Highcharts / Highstock step line with gaps?

你离开我真会死。 提交于 2019-12-11 02:32:13
问题 Is it possible to have a step line with gaps? I'm talking about the square wave kind of line (step line) that would have gaps? This kind of line (at least in my case) is drawn from such a dataset that has the start time and the new value (level) as one data point. For example can I set NULL to be a level to achieve gaps in the line? 回答1: Yes, it's possible. Just add null point when you need a gap. Just like this: http://jsfiddle.net/mCLpr/ series: [{ data: [1,2,3,4,null,6,7,null,9], step: