Highcharts

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

青春壹個敷衍的年華 提交于 2021-02-10 14:37:21
问题 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,

Highcharts reversed line chart is partially hidden at min value

大憨熊 提交于 2021-02-08 21:37:50
问题 When using a reversed line chart with min and max values, the line is partially hidden at the min value. The problem is that the drawing canvas ends exactly at the min value line. When you have a line that is thick only part of it is visible there, the part that is lying above the min value line is hidden. You can see an example here. I tried different options to fix this but havent been successful. Is there a way you can increase the chart canvas on top? This is the highcharts code: $("

Highcharts reversed line chart is partially hidden at min value

萝らか妹 提交于 2021-02-08 21:37:15
问题 When using a reversed line chart with min and max values, the line is partially hidden at the min value. The problem is that the drawing canvas ends exactly at the min value line. When you have a line that is thick only part of it is visible there, the part that is lying above the min value line is hidden. You can see an example here. I tried different options to fix this but havent been successful. Is there a way you can increase the chart canvas on top? This is the highcharts code: $("

Highchart gantt chart no overlapping

青春壹個敷衍的年華 提交于 2021-02-08 10:58:23
问题 I need help to create a Hichart gantt with out overlapping the bar. need to have the data grouped and not to overlap each other. EX: Resource 1 Task A and Task B over lap each other, is there any possibility to place Task B below Task A or any other ideas? Fiddle series: [{ name: 'Resource 1', data: [{ name: 'Task A', y: 0, start: today - (2 * day), end: today + (6 * day) }, { name: 'Task B', y: 0, start: today - (3 * day), end: today + (6 * day), color: 'rgba(140, 140, 140, 0.7)' }, { name:

Highchart gantt chart no overlapping

三世轮回 提交于 2021-02-08 10:55:47
问题 I need help to create a Hichart gantt with out overlapping the bar. need to have the data grouped and not to overlap each other. EX: Resource 1 Task A and Task B over lap each other, is there any possibility to place Task B below Task A or any other ideas? Fiddle series: [{ name: 'Resource 1', data: [{ name: 'Task A', y: 0, start: today - (2 * day), end: today + (6 * day) }, { name: 'Task B', y: 0, start: today - (3 * day), end: today + (6 * day), color: 'rgba(140, 140, 140, 0.7)' }, { name:

Highchart gantt chart no overlapping

烈酒焚心 提交于 2021-02-08 10:53:32
问题 I need help to create a Hichart gantt with out overlapping the bar. need to have the data grouped and not to overlap each other. EX: Resource 1 Task A and Task B over lap each other, is there any possibility to place Task B below Task A or any other ideas? Fiddle series: [{ name: 'Resource 1', data: [{ name: 'Task A', y: 0, start: today - (2 * day), end: today + (6 * day) }, { name: 'Task B', y: 0, start: today - (3 * day), end: today + (6 * day), color: 'rgba(140, 140, 140, 0.7)' }, { name:

Creating highstock zoom-in/out button

爱⌒轻易说出口 提交于 2021-02-08 10:48:33
问题 I have the following problem - I'm trying to create highstock graphic with zoom-in/zoom-out buttons, but something is wrong with the zooming. When i press the button most of the times the chart zooms to the correct time interval, however, after I press the button a couple more times, the chart starts to behave weird - the animations aren't correct or it doesn't zoom or it zooms to the wrong interval. This is the zooming function: var xAxis = graphic.xAxis[0]; var minimum = xAxis.dataMin; var

Creating highstock zoom-in/out button

北城余情 提交于 2021-02-08 10:47:51
问题 I have the following problem - I'm trying to create highstock graphic with zoom-in/zoom-out buttons, but something is wrong with the zooming. When i press the button most of the times the chart zooms to the correct time interval, however, after I press the button a couple more times, the chart starts to behave weird - the animations aren't correct or it doesn't zoom or it zooms to the wrong interval. This is the zooming function: var xAxis = graphic.xAxis[0]; var minimum = xAxis.dataMin; var

Render a list of highcharts in Rmarkdown

北战南征 提交于 2021-02-08 07:30:00
问题 I generate a list of highcharts objects and tabs. Then I'd like to render it into an html page. I can't figure out how to do it in a simple loop. If i do it one by one it works, but not in a for. Here is an example : --- output: html_document --- ``` {r, echo=FALSE, results='asis'} library(highcharter) out<-list(gr1=highcharts_demo(),gr2=highcharts_demo()) cat(" Column {.tabset} ----------------------------------------------------------------------- ") cat(" ###A1 " ) out[[1]] cat(" ###A2 " )

Render a list of highcharts in Rmarkdown

久未见 提交于 2021-02-08 07:29:32
问题 I generate a list of highcharts objects and tabs. Then I'd like to render it into an html page. I can't figure out how to do it in a simple loop. If i do it one by one it works, but not in a for. Here is an example : --- output: html_document --- ``` {r, echo=FALSE, results='asis'} library(highcharter) out<-list(gr1=highcharts_demo(),gr2=highcharts_demo()) cat(" Column {.tabset} ----------------------------------------------------------------------- ") cat(" ###A1 " ) out[[1]] cat(" ###A2 " )