Highcharts

How can I limit the length of a HighCharts PlotLine on the Y-Axis for a BoxPlot?

送分小仙女□ 提交于 2019-12-24 15:40:28
问题 I am using highchairs 3.0 to create a graph that has N Boxes on it. So far so good. However, one of the user desires is to draw a few plotLines (based on values on the Yaxis) for each Box on the graph. The catch is that the information is different for each of the boxes, so they want the plotLine to just extend from the start of the box on the left side (x-axis basis) to the right of the single box. Highchairs by default draws the y-axis plotLines (and plotBands, looked at those too) all the

Saving images from HTML5 canvas directly

天涯浪子 提交于 2019-12-24 15:18:17
问题 I went through the demo jsfiddle provided on the highcharts website at http://jsfiddle.net/highcharts/PDnmQ/. When i click the button as save as png, it downloads a file titled as download and not a png file. HTML: <script src="http://code.highcharts.com/highcharts.js"></script> <script src="http://code.highcharts.com/modules/exporting.js"></script> <script src="http://canvg.googlecode.com/svn/trunk/rgbcolor.js"></script> <script src="http://canvg.googlecode.com/svn/trunk/canvg.js"></script>

Change the color of legend symbol highchart

时光总嘲笑我的痴心妄想 提交于 2019-12-24 14:46:36
问题 Is it possible to change the legend symbol color in Highcharts? For example demo example contains two series and the symbols in legend are in blue and black (same as the series). I couldn't find any symbolColor param in the documentation. How do I change them both to say black? legend: { layout: 'vertical', floating: true, align: 'left', verticalAlign: 'top', x: 90, y: 45, symbolPadding: 20, symbolWidth: 50, symbolColor: '#000000' ????? }, 回答1: Add color for the legend in each series. series:

Highcharts GANTT chart - need to allow category with no data

余生颓废 提交于 2019-12-24 14:44:38
问题 I am trying to build a GANTT chart as in this JSFiddle example [ http://jsfiddle.net/2xkfm87e/11/ ] (I have now updated this fiddle to the working version using jlbriggs' input below. It also includes some other options I needed -i.e. tooltip on each interval.) However, I need to display all the categories even if one or more do not have any associated data. The end user needs to be aware that there is no data associated with that category. In my JSFiddle example, the best I could come up

Highcharts .getJSON - chart not plotting

五迷三道 提交于 2019-12-24 14:43:22
问题 Previous help here has got me to the current stage with my Highcharts project, however I am still hitting a major stumbling block. Highcharts chart is not loading data retrieved using .getJSON. I am at a loss as to why the html is not rendering the chart and load the data from data.php. All code below, does anyone have any ideas? @PawełFus php <?php $con = mysql_connect("ip_address","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("test", $con); $result =

Showing multiple Tooltips in highcharts simultaneously

落花浮王杯 提交于 2019-12-24 13:42:42
问题 I want to show multiple tool tips at the same time in a Highchart. The basic requirement is like whenever the mouse is hovered over a point in the series I need to show the tool tip for all the points within a radius X of the hovered point. I have tried something like this so far : http://jsfiddle.net/vmso2dbf/ $(function () { $('#container').highcharts({ title: { text: 'Multiple tooltips' }, plotOptions: { series: { point: { events: { mouseOver: function (event) { var r = 50; var arr = [];

Selecting relational highchart SVG images with Selenium

情到浓时终转凉″ 提交于 2019-12-24 13:27:23
问题 As per the below screenshot I have a bar chart on the left which, when I click on, opens the bar chart on the right. What this then does is open up another bar graph, and I want to click on an element on that. The problem is that the className is "Highcharts-series-group", the same as the previous element locator I used. I've attached a screenshot below of the option I am trying to select (it's the graph on the right) Please see below for the HTML, as I don't think it is clear above <div id=

Highcharts - Diagonal line X/Y axis

旧街凉风 提交于 2019-12-24 13:16:43
问题 Is there any way of showing a 1:1 diagonal line in Highcharts? I am looking for a line which X and Y values always match. I know how to render a line in Highcharts using the renderer, however, I don't want an independent line but one that reacts to the chart resizing/zooming. A series with [(0,0),(1,1)] is not really an option (it would affect zooming). Something like this except x and y axis might vary their value due to zooming. 回答1: You can do it by detecting the setExtremes() event on you

Convert JSON data into format in Highcharts' basic line chart

眉间皱痕 提交于 2019-12-24 13:13:18
问题 Using Javascript, I am trying to convert some JSON data into the format used in Highcharts' basic line chart. What I have to start with: originalArray = [ ['valueA', 1], ['valueA', 0], ['valueB', 9], ['valueB', 9], ['valueB', 3], ['valueC', 11] ] And what I'm trying to create using the above: desiredArray = [{ name: 'valueA', data: [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] }, { name: 'valueB', data: [0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 0] }, { name: 'valueC', data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1

Change the color of bar on condition in highcharts

帅比萌擦擦* 提交于 2019-12-24 12:33:52
问题 I am using highcharts and I want to change the color of bar depending on their Y axis values. Something like: { color: '#92D050', //DEFAULT COLOR OF CURRENT YEAR BAR ON EACH GROUP name: 'AUG', shadow: false, data: [ { y: 66, color: '#92D050' }, { y: 55, color: 'red' }, { y: 78, color: '#92D050' }, { y: 55, color: 'red'} ] } Here how can I apply codition like y: > 60 回答1: You can iterate for each element and modify SVG parameter like fill. http://jsfiddle.net/CaPG9/ var max = 200; $.each(chart