Highcharts

xAxis - point specific label positions

杀马特。学长 韩版系。学妹 提交于 2021-02-11 14:55:29
问题 Is there a way to have a point specific positionning of the xAxis labels ? I am using a waterfall chart and for some bars I would like the label to appear directly under the bar like below : I have found the following code in the xAxis plotOptions but at this point I don't see how I can acces the info on the bottom of the chart. xAxis: { labels: { y:-100 //label's y position } }, 回答1: You can use point dataLabels to achieve such result: dataLabels: { crop: false, overflow: 'none',

Showing/Hiding child nodes and links in Highcharts Networkgraph

℡╲_俬逩灬. 提交于 2021-02-11 14:33:03
问题 I've built a network graph with Highcharts and I'm struggling to find a way to easily "expand" or "show" a node's children. The problem I've got is that the way the data is declared is very linear. It doesn't really have much of a hierarchy. Here's a pen of what I have so far https://codepen.io/anon/pen/xvGMwa. The issue I have is that the "links" aren't associated with the nodes. So I can't easily find a group of nodes and their links and hide/show them. What I'd like is for it to start off

Showing/Hiding child nodes and links in Highcharts Networkgraph

匆匆过客 提交于 2021-02-11 14:29:57
问题 I've built a network graph with Highcharts and I'm struggling to find a way to easily "expand" or "show" a node's children. The problem I've got is that the way the data is declared is very linear. It doesn't really have much of a hierarchy. Here's a pen of what I have so far https://codepen.io/anon/pen/xvGMwa. The issue I have is that the "links" aren't associated with the nodes. So I can't easily find a group of nodes and their links and hide/show them. What I'd like is for it to start off

highchart network network-graph

人走茶凉 提交于 2021-02-11 14:13:46
问题 I am using highchart to create network-graph. i need to change tooltip value. but its not working. please check my code var json = [{ "key": "1", "value": "19122", "code": "A" }, { "key": "19122", "value": "623753", "code": "B" }, { "key": "19122", "value": "582024", "code": "C" }], data = []; json.forEach(function(point) { data.push([point.key, point.value]) }); Highcharts.chart('container', { tooltip: { formatter: function() { return data.code; } }, series: [{ type: 'networkgraph',

highchart network network-graph

允我心安 提交于 2021-02-11 14:07:18
问题 I am using highchart to create network-graph. i need to change tooltip value. but its not working. please check my code var json = [{ "key": "1", "value": "19122", "code": "A" }, { "key": "19122", "value": "623753", "code": "B" }, { "key": "19122", "value": "582024", "code": "C" }], data = []; json.forEach(function(point) { data.push([point.key, point.value]) }); Highcharts.chart('container', { tooltip: { formatter: function() { return data.code; } }, series: [{ type: 'networkgraph',

Highcharts Gantt Chart First/Last row content not readable while Fixed Header

不打扰是莪最后的温柔 提交于 2021-02-11 14:00:39
问题 I am having issue while implementing gantt charts with fixed header with yAxis: { scrollbar: { enabled: true, liveRedraw: true } } Content of last row when scrolling down or first row when scrolling up becomes invisible until the scroll is finished. You can check the live demo at: https://jsfiddle.net/8c93a6me/ 来源: https://stackoverflow.com/questions/61076229/highcharts-gantt-chart-first-last-row-content-not-readable-while-fixed-header

Highcharts Gantt Chart First/Last row content not readable while Fixed Header

限于喜欢 提交于 2021-02-11 13:58:00
问题 I am having issue while implementing gantt charts with fixed header with yAxis: { scrollbar: { enabled: true, liveRedraw: true } } Content of last row when scrolling down or first row when scrolling up becomes invisible until the scroll is finished. You can check the live demo at: https://jsfiddle.net/8c93a6me/ 来源: https://stackoverflow.com/questions/61076229/highcharts-gantt-chart-first-last-row-content-not-readable-while-fixed-header

Highcharts yAxis click event

馋奶兔 提交于 2021-02-11 13:37:05
问题 I am using highcharts to render some data. On the yAxis I needed those values to be anchor tags and navigate to a side modal. Was able to get that working correctly by using the formatter function of the labels object. What I am trying to do now is the first cell of the table I want to disable the click events so it does not take the user to the side modal its display only. labels{ align: 'left', formatter: function(){ return `<a href=javascript:openModal() ${this.value} </a>` } } I've tried

How to add vertical lines to graph with HighStocks or HighCharts?

笑着哭i 提交于 2021-02-10 19:59:15
问题 I have successfully created a chart with HighChart's HighStock. I'm trying to add vertical lines to the chart. I've searched everywhere in HighStock's docs, Stackoverflow and Google on how to do this, but to no avail. I tried HighStock's "flags" but can't create vertical lines with them. I basically want to turn this chart... ... into something like this: Is this even possible? If yes, how? Thanks! 回答1: Yes, These are called plotLines and are easily added like: xAxis: { plotLines: [{ value:

How to center line in ggplot2::geom_step() similar to highcharter

南楼画角 提交于 2021-02-10 14:37:56
问题 For my plot, I would like the ggplot2::geom_step() line alignment to be centered around my points, instead of aligned to the left In highcharter::hc_add_series(type = "line") there is an option called step = "center" . See my jsfiddle for the look I am going for in ggplot2 . library(ggplot2) #> Warning: package 'ggplot2' was built under R version 3.5.1 my_data <- data.frame( x = c("2015-06", "2015-07", "2015-08", "2015-09", "2015-10", "2015-11", "2015-12", "2016"), y = c(35, 41, 40, 45, 56,