highstock

Issue with HighChart's StockChart. Getting highcharts is not a function

核能气质少年 提交于 2019-12-25 05:34:25
问题 So I have two doubts: Q1: I am unable to understand the difference between the two ways to initialize a High Chart: 1st way: var lineChart = new Highcharts.Chart( { chart: { alignTicks: true, type : 'StockChart', renderTo : 'container', ... 2nd way: $('#container').highcharts('StockChart', { chart: { alignTicks: true, type : 'StockChart', renderTo : 'container', ... Q2: When Using the 2nd way on http://jsfiddle.net/ezk2mg72/ I am able to get desired result but when trying in local I am

Highstock, click values undefined

。_饼干妹妹 提交于 2019-12-25 05:26:07
问题 I was working with additional values and click option, got help here highstocks, how can I bring values that I will only use on the 'click' option? Everything went fine about the click and additional value Then , I found out that I have problems to return the values if I have more than 655 points on the chart (undefined value). If I limit to less than 655 it appears fine. Tried using the turboThreshold , but no luck. Still undefined value. I tried include turboThreshold in the plotOptions

Highcharts not rendering in IE 11

寵の児 提交于 2019-12-25 02:53:31
问题 I am using Highcharts JS v2.2.5 . It works fine in all browser except IE 11 . I am able see the data but, Chart is not rendering. 回答1: Do you have already excluded for wrong position or zero-height container? it's a common bug.. We need to know more details, can you post some code? Have you any error evidence in browser console? 回答2: If you are using prototype.js version 1.5.1.1 then there is a possibility of getting error in console[on hover function] only in IE[All versions]. If this is the

Highstocks peak value not showing without zooming

谁说我不能喝 提交于 2019-12-25 02:26:05
问题 I've got one value at 12 in a serie almost always between 0 and 5, on a datetime yAxis. The max is set to this value programmatically. But without zooming in, you dont see any peak in the line. Tooltip doesn't show this value neither. The problem is why would a user zoom in, (here or there ?) , as he wont see any peaking tip on the line. (I found the value with the navigator because I knew it should be there.) Moreover, I end up with a very tiny line of 5 pixels (as my other values are very

using data or csv to create charts in Highstock

余生长醉 提交于 2019-12-25 01:55:07
问题 I've read quite a lot of the posts about importing csv and I've looked at some of the examples. I am trying to show the charts in WP3.5.1 using the Insert Javascript plugin. I'm trying to use the data which creates the chart from the data as used in the demo for Apple (AAPL) and which can be found on the highcharts website in their data dump (aapl-ohlcv.json). Their demo highstock chart is their candlestick-and-volume. I don't think I can create a json file (beyond my competence given the php

HighCharts: strange error from creation of stock chart

核能气质少年 提交于 2019-12-25 01:38:33
问题 I'm trying to create a simple Stock Chart, like this but it throws this error in console: Uncaught TypeError: Cannot read property 'width' of undefined Tick.getLabelSideshighstock.src.js:5338 Tick.handleOverflowhighstock.src.js:5360 Tick.renderhighstock.src.js:5573 (anonymous function)highstock.src.js:7491 eachhighstock.src.js:1021 Axis.renderhighstock.src.js:7473 Chart.render.chart.seriesGroup.renderer.g.attr.zIndexhighstock.src.js:10529 eachhighstock.src.js:1021 Chart.renderhighstock.src.js

Highstocks, chart.series[0].data is empty in afterSetExtremes()

心不动则不痛 提交于 2019-12-24 10:31:14
问题 I have set up a fiddle which allows you to move the highstock navigator and see underneath the times selected plus a sum of the values for the selected period. http://jsfiddle.net/o8dLh3m5/3/ The problem I am having is that when the selection contains too much data, the chart.series[0].data array is empty so I can't calculate the total. Could someone please explain what is happening (ie where is this threshold set?), and what are my options for calculating totals when the data returned is

Applying custom style on ticks of Highchart

倖福魔咒の 提交于 2019-12-24 07:46:01
问题 I want to apply custom style on xAis ticks of Highcharts. I want to style ticks in the form of circle instead of line. like ticks.chart.renderer.cirlce(); Not able to find a way to get it done. 回答1: You can wrap getMatkPath function, to render another tick, see: http://jsfiddle.net/Yrygy/83/ Highcharts.wrap(Highcharts.Tick.prototype, 'getMarkPath', function (prev, x, y, tickLength, tickWidth, horiz, renderer) { return renderer.circle(x, y, tickLength); }); Edit: When using zoom/panning etc

Dual Axis in Highstock?

你说的曾经没有我的故事 提交于 2019-12-24 03:31:00
问题 Is there any way to make a Dual Axis in Highstock like this one on Highcharts? http://www.highcharts.com/demo/combo-dual-axes 回答1: It looks like you can do it the same way as in highcharts. Each series specifies yAxis:n where n is the axis you want to plot it against, and you need to define n yAxis entries. I modified one of the example highstock demos: http://jsfiddle.net/ykfmG/ $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename='+ name.toLowerCase() +'-c.json&callback=?',

How to dynamically change axis from linear to logarithmic in HighChart

好久不见. 提交于 2019-12-23 21:47:47
问题 I want to dynamically change axis from linear to logarithmic and vice versa in HighCharts. Please see this fiddle example. yAxis: { //linear type: 'logarithmic', minorTickInterval: 0.1 }, There is a type: String in api For initial declarative chart setup. I want to dynamically change to logarithmic/linear back and forth. 回答1: Use axis.update , see: http://jsfiddle.net/ZCecV/1/ (docs: http://api.highcharts.com/highcharts#Axis.update() ) 来源: https://stackoverflow.com/questions/16324284/how-to