highstock

highstock, how to prevent chart rescaling

自闭症网瘾萝莉.ら 提交于 2019-12-10 11:34:21
问题 I am experimenting with highcharts and there is one thing that many charts have as a functionality and that is to rescale the current view to show only the datapoints that currently are in view to fit the chart. For instance, given these datapoints on a large time period, : [1, 50, 100, 1, 50, 100, 200 ] The chart will show up initially with a scale of say 1 - 200. When you then move the chart left to view older data, 200 gets out of the view, and the graph gets rescaled into 1 - 100, then 1

How to get series's id in Highcharts / Highstock

纵饮孤独 提交于 2019-12-09 12:50:27
问题 How to get Series's id? In the API there is only name and data etc. But don't have id. How could I get id from series? I'm using the following way to loop all series in chart. $(chart.series).each(function(i, serie){ // Want to get serie's id }); EDIT: I found i can get id using the follow way. I'm not sure is it the right way? $(chart.series).each(function(i, serie){ console.log(serie.options.id); }); 回答1: If you know the id of series already you can get a reference to the series by chart

use highchart and highstock on the same page

这一生的挚爱 提交于 2019-12-09 08:14:06
问题 I have this page: <script type="text/javascript" src="jQuery/Highcharts/highstock1.1.6.js"></script> <script type="text/javascript" src="jQuery/Highcharts/highcharts2.1.4.js"></script> and in the page I use $.getJSON( "server/indice.server.php?row=" + row +"&item="+ item, null, function(data) { chartindice = new Highcharts.Chart( { chart: { renderTo: 'graph', defaultSeriesType: 'line', zoomType: 'x' }, /////moore setting.. series: [{ type: 'area', name: titleindice, data: indice, showInLegend

Highcharts - change font size of text on chart

主宰稳场 提交于 2019-12-09 06:42:25
I have text on a chart like below. I want to change the font size of the text "abc". I tried putting 'font-size':'8px' inside of the css, but it did not work. Does anyone have an idea about this? Here is the fiddle link: http://jsfiddle.net/3hGz2/ 'events': { 'load': function () { var label = this['renderer']['label']('* y='+ slope +'x'+'+('+ intercept + ')<br> R^2='+ rSquare) .css({ 'width': '150px', 'color' : 'grey', 'font-size':'8px' }) .attr({ 'stroke': 'grey', 'stroke-width': 0, 'r': 5, 'padding': 3 }) .add(); label.align(Highcharts.extend(['label']['getBBox()'], { 'align': 'right', 'x':

axis.extremes.userMin & userMax undefined on redraw with multiple charts

与世无争的帅哥 提交于 2019-12-08 10:54:35
问题 I am trying to draw a pie chart on move of highstock slider. At first move every thing is OK and I am getting values of highStock's axis.extremes.userMin & userMax as expected Code var extremes = chart.xAxis[0].getExtremes(); console.log(extremes); console.log(chart.xAxis[0]); console.log("userMin = " + extremes.userMin); console.log("userMax = " + extremes.userMax); But once the pie chart is drawn I am getting above values as undefined as can be seen in console. What can be causing this Or

Highstock Column Chart - data grouping causes data to scroll independently of axis

佐手、 提交于 2019-12-08 09:37:06
问题 I am attempting to make a stacked column chart representing events on a timeline. I need evenly-spaced bars, that scroll left/right with their respective ticks. Currently upon scrolling, the columns remain in place and their data is updated to reflect the new timespan they represent (I assume). For example: when scrolling one "step" to the right, I note these differences: The column remains in place with updated data and the axis tick moves to the left. This results in a 'graphic equalizer'

BUG In Highchart's Mouse Event With Plot Type : Line / Spline

ぐ巨炮叔叔 提交于 2019-12-08 08:09:45
问题 It looks like there is some bug in mouse event tracking in highcharts line plot, I am not sure whether its bug or not, I have one more post on same matter here few days ago, How to correct mouse event in Highcharts, in which one of the engineers of highcharts support, suggested to sort x axis, I did the same as he suggested, but result is one which I can't accept in practical Here is link to Fiddle, please look into it 1 ) Good pattern yaxis sorted mouse event not working ---> Good <script

Highstock: DataGrouping & Approximation (average) on timestamp values

折月煮酒 提交于 2019-12-08 04:28:14
问题 Data-grouping for time-stamp series data is not correct when clicked on custom week button. How to customize it for week/ month, 3 month and 6 month grouping such that the average will be correct. Data for current and previous year is correct, problem is with Average Resolution Time and Average Response Time where data on tool-tip and y axis is in a format days:hours and hours:minutes respectively. That is time-stamp is being converted into days:hours and hours:minutes, but when it comes to

Highstocks - Place a line between columns when using datetime axis

浪子不回头ぞ 提交于 2019-12-08 01:36:27
问题 Is it possible to place a line between columns when using a datetime axis? http://jsfiddle.net/ozke/30go12jy/4/ Relevant code: chart: { type: 'column' }, xAxis: { type: 'datetime', gridLineWidth: 1, gridLineColor:'#FF0000', gridZIndex: 4 /* grid line styles */ }, plotOptions: { column: { grouping: false, borderWidth: 0, groupPadding: 0, pointPadding: 0 } } I was originally trying to do something similar here but the question evolved a bit to much to a different place. Hence me asking again.

HighCharts: draw multiple segments in a single serie?

与世无争的帅哥 提交于 2019-12-07 18:51:05
问题 i'm asking myself if it's possible to do multiple lines (in a single serie) that are overlapping. I couldn't find any example for that :( I don't want this: Highcharts / Highstock step line without vertical "transition" lines? If i have a set of value like that: serie1 = [ [{x:5, y: 10}, {x:7, y: 10}], # segment 1 [{x:2, y: 12}, {x:9, y: 12}], # segment 2 ] I want to plot both lines which are in the same series so i can benefit from the interactivity (legend for example). y ^ | | ------------