highstock

How to prevent Highstock from hiding data rows

旧时模样 提交于 2019-12-13 06:24:07
问题 I have a Highstock chart with type scatter . When I use the range selector some of the series disappear cause the have no data in the current range. How can I prevent the chart from scaling to only the existing data an keep the yaxis in the initial state? 回答1: I can see only two options: set fixed min and max for yAxis in afterSetExtremes call yAxis[0].setExtremes(min, max) in setTimeout function, but you need to calculate min and max on your own. 来源: https://stackoverflow.com/questions

highchart select an area to show some info by clicking and drag mouse but not release

会有一股神秘感。 提交于 2019-12-13 06:03:44
问题 I am currently working on the highchart and I wish to implement a feature that when you click mouse and drag it over the chart, a tooltip will show up to indicate the start and end date (x-Axis) of your selection. Currently, I can only find events.selection, but you need to release the mouse by triggering this event. Is there a way to achieve a "area selection" function without releasing mouse? Any hint will be appreciated! Thanks 回答1: Update While I was looking for the plug-in I used(

I'm trying to use highcharts to display a series of points not just x and y

廉价感情. 提交于 2019-12-13 05:17:23
问题 I have a chart that displays [x,y] using highcharts .I want to use more than [x,y] when I specify in an array say minimum value, maximum value . I have an array like this: array1[['apples',no of apples,11,12],['oranges',no of oranges,1,2] How do I employ this array in my following chart? I understand I have to specify this array1 in the series option. But which chart should I use? How do I represent the point in the chart when it has more than [x,y] option in the array defined as above. $

How to include RSI and Volume in the same chart?

喜欢而已 提交于 2019-12-13 04:43:17
问题 First of all i want to embed RSI plugin with the highstock chart, (i.e) RSI, Volume in the same chart. i tried it with using Highstock (Two panes, candlestick and volume ) http://www.highcharts.com/stock/demo/candlestick-and-volume and the RSI indicator plugin http://jsfiddle.net/BlackLabel/RE7sS/ Any ideas to get it done?? 回答1: To add RSI to any Highstock demo, you need to include required files. In RSI case files are: indicators.js (base) ema.js (required for RSI) rsi.js (RSI plugin) And

Can I use different if-conditions in Highstock-code?

南笙酒味 提交于 2019-12-13 04:41:25
问题 I want that my Highstock-Chart is very dynamic. I extract the number of series and yAxis from var dataarray . So I can get e.g. 2 series or 6 or 3 or or or... But now I have to set the code for the yAxis and series according to the number of series that are arriving. And if dataarray is e.g. 2 long the program should jump in the accordingly if-condition. But that doesn't work in real life. Here is my code. What can I do instead? Can't I use JavaScript in Highstock-Code? 回答1: No you can't, and

custom ticks based on selected range from rangeSelector in Highstock

扶醉桌前 提交于 2019-12-13 04:22:54
问题 I am trying to get my Highcharts/Highstock chart to display a custom tick when the rangeSelector is set to All, I have it setup this way, but is throwing me errors when I try to use the interactive portion of the graph Received below answer from Highstock Change tick interval on range selector change componentDidMount() { // Timezone Offset for PST standard is UTC timezone Highcharts.setOptions({ global: { timezoneOffset: 8 * 60 }, lang: { thousandsSep: ',' } }); Highcharts.stockChart('chart'

Highstock performance issue

蹲街弑〆低调 提交于 2019-12-13 03:59:33
问题 When use Highstock we meet a performance issue when we use the line with compare. We need to add 15 line series and each series have 800 points. And it will cause the "Stop running this scripts" issue in IE 8 or lower. And this happens not only when we add data to the chart, when we change the size of the chart this also happened. Does anyone have experience on this issue ? In IE 9 or other browser it works well but the performance is a bad. 回答1: Have you tried modify turbothreshold parameter

Display the Plotted value on x axis using highcharts

依然范特西╮ 提交于 2019-12-13 03:58:31
问题 How to display the plotted value correctly to the exact milliseconds on the chart? How place a point or tooltip to exact milliseconds? xAxis: { type: 'datetime', plotLines: [{ color: '#FF0000', width: 2, value: 1366113390066 }] } JSFiddle Link 回答1: Your series is not showing because your data array is not in a usable format. this: data: [{ 'value': 731, 'timestamp': 1366032438641 } should be either this: data: [{ 'x': 1366032438641, 'y': 731 } or, more simply, this: data: [[1366032438641,731]

Get wrong point.plotY position in Highcharts / Highstock

大憨熊 提交于 2019-12-13 03:03:55
问题 I always get wrong point.plotY position when I click RangeSelector in Highstock. Please see this fiddle. I try to catch range change event in setExtremes: function (e) . When I click 6m in rangeselector, in firebug console I print both last point object and point.plotY You can see that the value of PlotY in the point object and the plotY is different. I also draw a path start from [chart.plotLeft + chart.plotWidth, chart.plotTop + point.plotY] , it seems it does not match the last point of

HighCharts issues in Dual axes, line and column charts

☆樱花仙子☆ 提交于 2019-12-13 00:31:22
问题 I am trying to generate Dual axes, line and column charts of highcharts .I have tried stackoverflows sugesstions but i couldn't find proper solution.I have the data formatted properly but yet the chart is not generate shows blank.I want this type of [link] http://jsfiddle.net/sunman/dwyNz/8/ .In spline line I want to show 'bsp values' and in column I want to show facilities_total. So below i show my code for this graph.I also pointed my error in index.php. Here is my Index.php $(function () {