Highcharts

How to save a plot as image on disk from Viewer in RStudio?

一世执手 提交于 2019-12-13 14:27:04
问题 Summary: my ultimate goal is to use rCharts , and specifically Highcharts , as part of a ReporteRs PowerPoint report automation workflow. One of the charts I would like to use is rendered as html in the Viewer pane in Rstudio, and addPlot(function() print(myChart)) does not add it to the PowerPoint. As a workaround, I decided to try to save myChart to disk, from where I could just add it to the PowerPoint that way. So my question is really, How do I get my html image into my ReporteRs

How can I hide and show a category in highcharts

a 夏天 提交于 2019-12-13 14:24:22
问题 I've been trying to make a dynamical way for the user to toggle the categories of a line highchart, I looked at this question that seemed to have what I was looking for, I added the code to my page, changed a few things. The problem is that when I hide a category(years) it changes the number of the category to the position of the category in the highchart and when I show it displays the data for that category but also adds a new category...Here's my http://jsfiddle.net/antonioj1015/3pxbat0p/

Highcharts - Multiple Y Axis Stacked Charts

泄露秘密 提交于 2019-12-13 14:17:32
问题 I am creating a chart with two Y axes - distance and duration. Each Y axis will have multiple series ( run, bike, swim, etc.) stacked on top of one another. Duration is a stacked area or areaspline and distance is a stacked column chart. Here is the jsfiddle for the chart. http://jsfiddle.net/baberuth22/u5QCB/3/ $(function() { var run_data = [[1324771200000,2928000],[1325376000000,2148000],[1327190400000,1001000],[1327795200000,2336000],[1329609600000,2403000],[1330214400000,2456000],

Highcharts solidgauge with green/yellow/red gradient

戏子无情 提交于 2019-12-13 12:48:12
问题 I would like to know if is it possible to have a gradient that starts with green on the left (0 value), fading to yellow in the middle and then fading into red at the right side of the "solidGauge" chart. I tried some configuration in the yAxis but they don't do what i want: yAxis: { plotBands: [{ color: { linearGradient: [300, 300, 0, 0], stops: [ [0, 'rgb(255, 255, 255)'], [1, 'rgb(150, 200, 155)'] ] }, from: 0, to: 100 }], }, yAxis: { minColor:'#55BF3B', maxColor:'#DF5353', }, yAxis: {

show two different series with different start intervals with the same xAxis highcharts

核能气质少年 提交于 2019-12-13 12:44:01
问题 http://jsbin.com/enotab/39/editI want to show data from 2 different years on the same XAxis without using 2 x axes. In which case i get the following result I want to have an overlay graph with the 2 series where 2012 series becomes a shadow graph. How is it possible? this is my static code: var mychart = new Highcharts.Chart({ chart: { renderTo: 'container', zoomType: 'x' }, title: { text: 'Chart Title' }, xAxis: [{ type: 'datetime', minRange: 31 * 24 * 3600000, labels: { formatter: function

Highcharts donut chart without inner pie?

旧城冷巷雨未停 提交于 2019-12-13 11:32:21
问题 I've been searching for the solution to generate the simplest donut chart with Highcharts library. However, all examples of Highcharts show the style of chart with both inner pie and outer donut (refer to: http://www.highcharts.com/demo/pie-donut) How can I get rid of the inner pie and just keep the outer donut, just like other libraries do? (something like RGraph: http://www.rgraph.net/examples/donut.html) Thank you. 回答1: You just need to provide the data as an array of two element (key /

How to build Scada Alerts using HighCharts

*爱你&永不变心* 提交于 2019-12-13 10:59:11
问题 Hey I need to convert zamel code to JavaScript Code. One of the controllers of zamel, allows monitoring of Scada alerts. I have the following controller: The way this controller works: we have 20 alerts on board, each alert has 3 states: Ok State - color with green. Alert state - color with yellow. Danger state - color with red. I need to build a controller using Highcharts API, The controller need to deal with real time data(update on live). The controller need to be responsive and

How to get height of individual bars in column chart of highcharts?

泄露秘密 提交于 2019-12-13 10:35:42
问题 Is there a way to find individual bar height? I know chart.plotHeight would return potting area height. Similarly i would like to know individual bar height. 回答1: You can find all point's shape arguments in Point.shapeArgs object. Take a look at the example below. Example: http://jsfiddle.net/gL9e7mbj/ 来源: https://stackoverflow.com/questions/46067813/how-to-get-height-of-individual-bars-in-column-chart-of-highcharts

Positioning each tooltip in highchart

廉价感情. 提交于 2019-12-13 10:26:51
问题 I'm using Highchart library for creating variablepie chart. I have a few questions about using that library: Is it possible to position the tooltip for each section? Inside the tooltip box, I need to align value "float-right". Is it possible? 3. Is it possible to change height of tooltip box and cursor pointer? URL: https://jsfiddle.net/BlackLabel/eom8tqns/ tooltip: { headerFormat: '', padding: 0, pointFormat: '<span style="color:{point.color}">\u25CF</span> <b> {point.name}</b><br/>' + 'Area

How can i have color axis in bubble chart using Highchart?

大城市里の小女人 提交于 2019-12-13 10:14:35
问题 I need to develop color axis using bubble highchart with [x, y, z] values , for reference https://developers.google.com/chart/interactive/docs/gallery/bubblechart#color-by-numbers I need to develop above mentioned bubble chart which is developed in google chart to High chart [bubble] . 回答1: Based on the answer from this topic - stepped-color-shading-in-highcharts-doughnut-chart. Wrapping bubble's prototype: var bubbleProto = Highcharts.seriesTypes.bubble.prototype; bubbleProto.axisTypes = [