Highcharts

Highcharts tooltip is hidden behind other charts

懵懂的女人 提交于 2020-01-15 03:30:10
问题 When putting multiple charts tooltips from upper charts are hidden behind others. I found some tips on how to it but nothing helped. Is there anyway to keep tooltips on top of charts? The example is here: http://jsfiddle.net/Zw3uM/ Thanks a lot! 回答1: This is pure html : Any div element loaded after ( meaning appearing after on the html page) will always be in front. In order to get the first chart tooltip be in front of the second : load the second in first and set its y position on the page

Highcharts Synchronized charts display tooltip

拈花ヽ惹草 提交于 2020-01-14 18:59:08
问题 I want to display tooltip in Synchronized charts. Please see this Jsfiddle $('#container').bind('mousemove touchmove touchstart', function(e) { var chart, point, i, event; for (i = 0; i < Highcharts.charts.length; i = i + 1) { chart = Highcharts.charts[i]; event = chart.pointer.normalize(e.originalEvent); // Find coordinates within the chart point = chart.series[0].searchPoint(event, true); // Get the hovered point if (point) { point.onMouseOver(); // Show the hover marker chart.tooltip

Initializing Highstock.js throws a jQuery error in getComputedStyle

孤街醉人 提交于 2020-01-14 10:19:06
问题 I've been able to get Highstock to work in a sample html file, but in the application I'm working on, the same Highstock code loads part ways and then throws an error: "elem.ownerDocument is undefined" around line 5950 of the unminified code of jQuery 1.5.1 (the getComputedStyle function). After some console logs, I discovered that the elem that throws the error is in fact a Highstock object and not a DOM element. I also discovered that the jQuery function in question doesn't even get called

How to disable the on-hover color change in Highcharts?

主宰稳场 提交于 2020-01-14 10:08:48
问题 I am using the column charts for my project. I have written a custom function that colors each bar of the chart based upon its y value. This works fine when I initialize the chart. As I hover over the chart, the color of the bar goes back to the default and my custom colors never return. I have tries disabling on hover but that doesn't seem to work. I don't want the color to change even when hovered over the bar. Any suggestions? 回答1: You are updating color in a wrong way, use point.update()

How to disable the on-hover color change in Highcharts?

[亡魂溺海] 提交于 2020-01-14 10:07:13
问题 I am using the column charts for my project. I have written a custom function that colors each bar of the chart based upon its y value. This works fine when I initialize the chart. As I hover over the chart, the color of the bar goes back to the default and my custom colors never return. I have tries disabling on hover but that doesn't seem to work. I don't want the color to change even when hovered over the bar. Any suggestions? 回答1: You are updating color in a wrong way, use point.update()

Gridster with Highcharts, make specific Chart smaller and recalculate

こ雲淡風輕ζ 提交于 2020-01-14 06:07:48
问题 i am building a dashboard with gridster and highcharts. If i resize the window and a widget with a highchart is bigger than the window, i want to resize it to make it smaller and gridster should recalculate the positions of the others. I tried this code to make a widget and its highchart smaller if its bigger than the windows width: $( ".dashboard > li" ).each(function() { var chart = $(this).children('div'); // console.log(' Window: ' + width); console.log(chart); if(chart.width() > width) {

Gridster with Highcharts, make specific Chart smaller and recalculate

北战南征 提交于 2020-01-14 06:05:08
问题 i am building a dashboard with gridster and highcharts. If i resize the window and a widget with a highchart is bigger than the window, i want to resize it to make it smaller and gridster should recalculate the positions of the others. I tried this code to make a widget and its highchart smaller if its bigger than the windows width: $( ".dashboard > li" ).each(function() { var chart = $(this).children('div'); // console.log(' Window: ' + width); console.log(chart); if(chart.width() > width) {

Highcharts Column Chart Drilldown

和自甴很熟 提交于 2020-01-14 05:56:25
问题 Can anybody give an example of drill down functionality for column charts of Highcharts package? Here is the jsfiddle of the example from the Highcharts website but it is with static data. http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/column-drilldown/ How to make it dynamic? Even if I implement the click function, how to know which column was clicked? How to refresh the same chart with drilldown data? I have complex XML which I

adding labels exactly above x-axis categories in highcharts

怎甘沉沦 提交于 2020-01-14 05:41:25
问题 I tried to put labels but I am not able to locate the exact location of xAxis_categories realtive to graph. So if width is varied text gets disturbed and not remained aligned with categories http://jsfiddle.net/akataria/qx4snpvb/8/ startX = chart.xAxis[0].minPixelPadding + chart.xAxis[0].left , startY = chart.plotTop, debugger; r.text('19% yoy increase ', startX , startY) .css({ color: '#4572A7', fontSize: '11px', }).add(); 回答1: You can render the text once, then look at the bounding box of

How to access outer scope variables within a click function in HighCharts

送分小仙女□ 提交于 2020-01-14 05:12:27
问题 I'm using Angular 7 along with HighCharts. I'm passing a function to my high charts click event, but I also need to access some variable from the component. Here is the code for my event: events: { click: function (e: any) { console.log(this.xAxis[0].min) console.log(this.componentVariable) } } I can access the value of xAxis but not the variable componentVariable because it doesn't exist in the context. I cannot bind this to the function either, because then I won't have access to xAxis .