highstock

Highcharts update grouped data point color

孤人 提交于 2019-12-11 16:20:02
问题 Is there any way to update the color of a single point in a grouped data set? I can't seem to find a way to reliably set the colors. A fiddle can be found here demonstrating the issue. 回答1: Points are grouped during the rendering process of the chart so they cannot be specifically targeted via constructor options (because we don't know which points will be generated by Highcharts algorithms). What is more, Higcharts doesn't allow performing update function on the grouped point. As a

Highcharts Update Grouped Series Data Point Colors

前提是你 提交于 2019-12-11 15:57:08
问题 I have a candlestick and volume chart similar to here, but with custom colors for the volume bars and candlesticks. This works fine until the graph is redrawn or grouped due to new data being added or a range selector button press. When the graph is redrawn or grouped, neither the candle color nor the volume bar color seems to be transferring properly. I'm using the following redraw function, but it does not seem to be having any effect. Strangely, each time the data is grouped in a new data

Sorting Scatter Highstock Chart with Multiple Series

℡╲_俬逩灬. 提交于 2019-12-11 15:36:56
问题 I running into issues when attempting to sort a highstocks chart series. I continue to get a Highcharts Error #15. I understand why I'm getting this error but I'm looking for a way to get around it. I have a 3 element array as the following [[x],[y],[time]] Im attempting use a stock chart to allow me to slide through time while updating x and y scatter plot. To fully understand what I'm plotting some reasoning for this plot type may be helpful. x in this case is engine load percent while y is

Update data of existing Highstock graph using only JavaScript

 ̄綄美尐妖づ 提交于 2019-12-11 13:49:14
问题 I'm editing a site and I don't have access to the original code, all I can do is append code to the end of it. I do not have access to PHP (I assume I don't need that anyway). This is the existing code: <div class="highstockchart" data-container="chartContainer" data-metadata-contractno="1" data-yaxis-title-text="kWh"> <div class="chart-serie in" data-serie-data="[4.0,4.0,3.0,4.0,3.0]" data-serie-id="0" data-serie-name="Forbruk" data-serie-pointstart="1424818800000" data-serie-tooltip

HighCharts Keep Vertical Line on Click Event

99封情书 提交于 2019-12-11 13:20:11
问题 Using this example: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/stock/demo/candlestick-and-volume/ When you hover over points on the chart, you get a nice vertical line showing you which point you're currently on. I want to modify the click event so that the vertical line stays when I hover away after a click. Changing the line color would be ideal on click, but not necessary. If I click another point I'd want to remove any previous lines. Any

Add Flag based on button event

China☆狼群 提交于 2019-12-11 12:39:28
问题 series: [{ type: 'flags', name: 'Flags on axis', data: [{ x: Date.UTC(2011, 2, 1), title: 'A' }, { x: Date.UTC(2011, 5, 1), title: 'C' }], shape: 'squarepin' }] $("#btnAddFlag").click(function () { chart.series[0].setData( { x: Date.UTC(2011, 2, 1), title: 'B' }); }); Above code is part of highstock chart option and I want to add flag based on user event click. However I able to add the new point flag into the chart but the existing flags which title A and C will be missed out. how can I add

add custom drop down menu in highcharts/highstock

自古美人都是妖i 提交于 2019-12-11 11:04:46
问题 I am having a drop down menu on my page: <form action="/my-action/" method="post" name="selection"> <label for="user"> User</label> <select id="user" name=user onclick="$(this).closest('form').submit();"> <option>user 1</option> <option>user 2</option> </select> </form> What I want to achieve, is to add this drop down menu on the chart, for example next to the chart title or next to the range selector on the top of the chart. I could not find anyway for this, and i dont know how to handle

Hide series used for navigator in highstocks breaks navigator

大兔子大兔子 提交于 2019-12-11 10:52:48
问题 If I hide the series used for the navigator in highstocks and add data dynamically the navigator stops rendering and the chart does not slide to the new points. series.hide(); Take a look at http://jsfiddle.net/QP2CL/. I add two series and then hide the first after 10 sec. Then the navigator does not update. I tried taking control of the navigator and add data to it in code, but then the series do not slide to show newly added points automatically. http://jsfiddle.net/zEgEF/1/ Any ideas on

Group series names in columns in highchart horizontal legend

橙三吉。 提交于 2019-12-11 10:36:51
问题 I am currently using highcharts and there is a requirement for my project to group categories of series names together in the legend but I can't seem to find a way to do this. There are 3 "categories" of data series that the PM would like to have displayed in 3 columns in the legend. The biggest issue is that one of the 3 categories has a variable number of elements depending on the features selected for inclusion in the chart. E.G. In one instance the series might be: Apples, Pears, Peppers,

plotbands target one of the two panes

房东的猫 提交于 2019-12-11 10:36:01
问题 hi i am using the two panes chart http://www.highcharts.com/stock/demo/candlestick-and-volume i then put a plodBands to that chart , what happened is the Band affect both yAxis like in here http://jsfiddle.net/6sqEd/ what i have noticed is this chart has only one xAxis . How can i make this PlotBands arget only the first yAxis Not BOTH ??? here is the code : $(function() { $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl- ohlcv.json&callback=?', function(data) { //