highstock

Highstock with data.csv starts with 01.01.1970

拜拜、爱过 提交于 2019-12-12 16:36:42
问题 I've started experimenting with Highstock charts to visualize my photovoltaics data. The problem is, that the chart starts with 01-01-1970 00:00:00. It ignores the date and time in my csv-file. This code is the same as some examples here, but it doesn't work. My data.csv 2011-08-01 00:00:00,155 2011-08-02 00:00:00,156 2011-08-03 00:00:00,157 2011-08-03 00:06:00,160 2011-08-04 00:00:00,120 My index.html $(document).ready(function() { var c = []; var d = []; var options = { chart: { renderTo:

Highcharts - Highstock: fixed width intervals with scrollbar

不羁的心 提交于 2019-12-12 16:09:35
问题 I need the points of my chart to have a fixed width (say, 100px each). If the needed space exceed the width of the chart, I just want to be able to scroll horizontally (with the scrollbar.enabled parameter set to true ). This is the basic setup, without setting the points width: http://jsfiddle.net/wxxdne19/ If I set the column width like this: http://jsfiddle.net/wxxdne19/1/ The tickPixelInterval parameter is ignored (as the documentation says, of course). I tried a bunch of other things,

Can I sychronize two highcharts series with different years (leap year)

橙三吉。 提交于 2019-12-12 13:12:07
问题 The problem is best described in following fiddle : https://jsfiddle.net/bernhard_kern/85s2fm5a/3/. We use two series and two xAxis. xAxis: [{ type: 'datetime', min: new Date('2016/02/22').getTime(), max: new Date('2016/03/05').getTime() }, { type: 'datetime', min: new Date('2015/02/22').getTime(), max: new Date('2015/03/06').getTime() }], I want to compare yearly timseries, which have a different amount of values due to leap year (2016, 29 Feb.). Requirement: Display the equal dates below

highstocks, how can I bring values that I will only use on the 'click' option?

筅森魡賤 提交于 2019-12-12 05:41:35
问题 Let me try to explain. I'm bringing the data: [1, 3, 7, 8, 9, 2] But for each one of these there are other values, like time and place. I would like to make a click function like: click: function() { testFunction(time.value,place.value); } Like this, that I click and it will call a javascript function that I could pass these other values? How can I store these values and send it? Where do I store other values, temp values to use in a function? Found this demo, would be something like that:

Highcharts addPlotLine for one set of values

 ̄綄美尐妖づ 提交于 2019-12-12 05:30:39
问题 I have the following code. For a given day it shows the average wait time and the maximum wait time in seconds. The plotline currently gives an average of these two values. What I would like is that the average just take into account the average times so for a particular period as chosen by the user, the line would display the average for that period var seriesOptionsChatChart = [], seriesCounterChatChart = 0, namesChatChart = ['ChatChartAVG','ChatChartMAX']; function createChartChatChart() {

dataGrouping with xAxis datetime

亡梦爱人 提交于 2019-12-12 05:19:23
问题 I wonder if it's possible with xAxis type datetime set this pointStart: Date.UTC(2010, 0, 1), pointInterval: 24 * 3600 * 1000, // one day But if I want a dataGrouping option by week dynamically I can't see here: http://jsfiddle.net/L7d5d8fj/ 回答1: dataGrouping will work on Highstock chart only: http://www.highcharts.com/docs/advanced-chart-features/data-grouping As an answer to your problem with showing lines and columns in your chart (discussion in comments) You can set your approximation

Redrawing the tooltip inside of the tooltip positioner callback

荒凉一梦 提交于 2019-12-12 04:54:26
问题 I'm using the I'm currently using the tooltip formatter function to control the look of the tooltip, including adding some custom css to create an arrow on the side of the tooltip box facing the mouse. I am also using the positioner callback to not only determine the placement of the tooltip, but when it changes from one side of the mouse to the other I'm updating the formatter callback to switch the side of the tooltip the arrow lies on (see code below). Everything works fine, except for the

Highstock navigator does not work when also importing “highcharts-more” file

送分小仙女□ 提交于 2019-12-12 04:53:27
问题 Does anyone know why this is happening? If I remove this - <script src="http://code.highcharts.com/highcharts-more.js"></script> The navigator data series renders fine, but if I add it, the data series stops rendering and only the range selector shows. Please help. My jsfiddle - (does not work) http://jsfiddle.net/Yrygy/258/ Jsfiddle - (works) http://jsfiddle.net/Yrygy/257/ 回答1: Reorder the scripts. Move highcharts-more.js above highstock.js and it will work. I think the problem is because of

calculate the difference between 2 series in tooltip for highstock

烂漫一生 提交于 2019-12-12 04:25:51
问题 I need some help to find a solution to display the difference between the series in the tooltip. Here <- is a simple screenshot with my problem: how can i solve this for Hamburg to Matif and Niederrhein to Matif? Here is my javascript code: $(document).ready(function() { ////////////////////////////////////////////////////////////////// // ------ Testchart Kassakurse Raps in Hamburg für 2014 ------ // ////////////////////////////////////////////////////////////////// $(function() { var chart

Highcharts csv data series starting with a null value

。_饼干妹妹 提交于 2019-12-12 03:54:16
问题 I am trying to represent csv data with highcharts. I can not use a csv data that starts with a null value. How can I use a csv data where series starts with a null value. Though it works fine with 'empty' or '0' but I specifically need this to works with null or NA please check jsfiddle My csv looks like this Year,Annual mean,5 year mean 1880,-0.31,null 1881,-0.22,-0.25 1882,-0.28,-0.29 1883,-0.3,-0.29 1884,-0.33,-0.3 Thanks in advance 来源: https://stackoverflow.com/questions/45327619