Highcharts

Highstock stochastic %d is not correct

风流意气都作罢 提交于 2019-12-11 23:22:19
问题 I am using the stochastic indicator with the 14, 3 day moving average. The resulting %k is correct, but the %d is not. For aapl on September 14, 2018, the stochastic fast is 58.95 and 56.3. However, the values returned by highstock is 44.8 and 56.3. The series it is linked to in my case is a candlestick chart. The data includes the time in milliseconds, the open, high, low and closing prices. Are there any special parameters I need to set to get the correct %d? Thank you. 回答1: Thank you for

Howto combine Highstock (Highcharts) 'addPoint' function with flags

旧街凉风 提交于 2019-12-11 23:18:49
问题 Using the Highstock (Highcharts) library, I'm wondering, how do I combine A) adding flags as in here (or see fig.1 ) with B) dynamically updating data, using the addPoint function (ex: series.addPoint([x, y], true, true) see here). There doesn't seem to be a facility for it in the addPoint function. series : [{ name : 'USD to EUR', data : data, id : 'dataseries' }, { type : 'flags', data : [{ x : Date.UTC(2011, 3, 25), title : 'H', text : 'Euro Contained by Channel Resistance' }], onSeries :

Restrict mouseover area for a column to its own shape vs. surrounding area

青春壹個敷衍的年華 提交于 2019-12-11 23:08:06
问题 How to restrict the mouseover and mouseout events for a highcharts column so that the events fire when the mouse enters/leaves the actual column vs. the surrounding area ? The mouseover/mouseout behavior can be seen in this js fiddle. This is how I'm declaring the mouse events in the highcharts options : plotOptions:{ column:{ point: { events: { mouseOut: onItemMouseOut, mouseOver: onItemMouseOver }, }, states:{hover:{enabled:false}}, }, }, 回答1: you need to just remove shared: true from

Highcharts: Select a single chart?

邮差的信 提交于 2019-12-11 23:07:25
问题 I am working with highcharts to make a dashboard. Now I search each chart with the jquery for each function, to find which chart is wider than the window to make it responsive. So I have to define the width for each chart. If a chart is wider than the window, I want to define width = $(window).width(). with $(".dashboard").highcharts({ chart: { width: width, //320 }, }); I can select all charts, but how do I select a single chart? Thanks for helping. 回答1: I believe you are looking for .each()

JSON getting data from multidimensional arrays

心不动则不痛 提交于 2019-12-11 22:26:40
问题 I have been populating a chart embed with data from a multidimensional PHP array ($result). When printing the array to JSON (using print json_encode($result, JSON_NUMERIC_CHECK);) i got the following array structure: [ { "name":"Array1", "data":[ 1, 2, 3 ] }, { "name":"Array2", "data":[ 1, 2, 3 ] } ] I used this array to populate my highcharts in the code below. This used to work just fine but after I changed the setup of my array it will now have to be reworked. $.getJSON("../data.php", {id:

Get the currently selected rangeSelector from an event unrelated to the chart

倖福魔咒の 提交于 2019-12-11 22:16:37
问题 I have a chart that has a range selector on the upper left corner which allows the user to select from 1M, 3M, 6M, 1Y, 3Y, 5Y, All. This same chart also allows the user to input specific dates using date input boxes which are located on the top right of the chart. When the user selects a range from the rangeSelector, the date in the input boxes change to match the range selected, which is pretty default behavior. My objective: I need to save the range selection so that when the user comes

Set maximum size for cells Highcharts heat map

北城以北 提交于 2019-12-11 22:09:46
问题 I cant find the way of setting a maximum size for the cells of a heat map. It always go for the 100% of the space, it doesnt mind if I only use this data: data: [[0,0,10],[0,1,19],[0,2,8],[0,3,24],[0,4,67],[1,0,92],[1,1,58],[1,2,78],[1,3,117],[1,4,48]], http://jsfiddle.net/dJeUm/ 来源: https://stackoverflow.com/questions/24776476/set-maximum-size-for-cells-highcharts-heat-map

How to change the height of a pane in highstock?

时光毁灭记忆、已成空白 提交于 2019-12-11 22:07:09
问题 Is there a way to drag and change the height of highstock pane in the demo here. Something like we can do for webstock here. thanks 回答1: Unforurtantley this option is not possible, but I advice to post your suggestion on uservoice: http://highcharts.uservoice.com/ 来源: https://stackoverflow.com/questions/20279359/how-to-change-the-height-of-a-pane-in-highstock

Chart background highlight in HighChart

社会主义新天地 提交于 2019-12-11 21:54:13
问题 In this question it's explained how to set the background to have two colours (zebra like). My need is to highlight in the chart temporal changes via setting accordingly the background colour, like this: the two blue area may identify periods where something was happening and the white one when it wasn't. On top of this I'll then add lines and other charts. Can this be done via passing Highchart with start and end date of periods to be highlighted? (an area chart workaround maybe?) 回答1: What

Is it possible to remove a pane in highstock/highcharts?

佐手、 提交于 2019-12-11 21:43:03
问题 Suppose I have two panes in my highstock, can I remove one of the panes dynamically. So if I click on a pane, I should be able to trap the event alongwith the id of the pane(yaXis) and subsequently delete the axis alongwith its series. I have added the panes dynamically like following( so I axis have Id etc. with me) chartX.addAxis({ // Secondary yAxis id: studyName, title: { text: studyText }, isX: false, lineWidth: 2, lineColor: '#08F', //opposite: true, top: startHeight, height: 100,