Highcharts

R Package Highcharter: How do I drilldown to multiple series stacked column graph?

独自空忆成欢 提交于 2019-12-23 05:10:42
问题 I want to drilldown to multiple series. How do I change the x axis categories after drilldown and still maintain my series? hc <- highchart() %>% hc_chart(type = "column") %>% hc_title(text = "Job Ratio") %>% hc_xAxis(categories = c("Job A", "Job B")) %>% hc_plotOptions(series = list(stacking = "normal")) %>% hc_yAxis(max = 100) %>% hc_add_series(name = "Completed", data = list(list(y = 40, drilldown = "job-a"), list(y = 35, drilldown = "job-a"))) %>% hc_add_series(name = "No progress", data

Heat map with time line

ぃ、小莉子 提交于 2019-12-23 04:52:31
问题 I Am trying to do a heat map with a time line in the xAxis, and be able to display a cell in one interval, from one date, to another. This is what I would like to achieve with highcharts: http://s4.postimg.org/t5hte4xe5/image.png In a heat map the cells receive this data: [row, column, value]. So I have tried 3 options to achieve this: 1.- Have as data [row, date (as a date object), value] --> Highcharts error #19 (I guess its too many ticks to an axis, but I have got a tickInterval) 2.- Have

Highcharts polar chart wind rose data from JSON

Deadly 提交于 2019-12-23 04:52:16
问题 I am currently successfully plotting wind speed and wind direction using a standard line graph for wind speed and a scatter plot for wind direction. The current windSpeed and windDirection DOM objects look like this: windDirection = "[202,229,218,208,230]"; windSpeed = "[9,13.4,12,9.7,6.6]"; In reality both those variables hold hundreds, if not thousands, of data points. Each windDirection data point corresponds to the windSpeed data point at the same location, and there are an equal number

Drill Down of grouped column chart using r-highcharter library

感情迁移 提交于 2019-12-23 04:46:02
问题 I am struggling in adding one level drilldown in my grouped column chart made using highcharter. To explain, I am taking using the "vaccines" dataset available in highcharter library : My code (similar) that creates the grouped column chart : library (highcharter) library(dplyr) df <- na.omit(vaccines[vaccines$year %in% c("1928", "1929"),]) df <- ddply(df, c("state", "year"), summarise, count = sum(count)) hc <- hchart(df, type = "column", hcaes(x = state, y = count, group = year)) %>% hc

dynamic height of chart of highchart

孤人 提交于 2019-12-23 04:45:44
问题 It is necessary to automaticly and dynamicly change (update) the height of highcharts's charts depending on the amount rows (example, for horizontal bars) on it. The height of one element (example, horizontal bar) is constant (for example, 20px). The height of charts with X elements set automaticly (~ 20px * X). 回答1: You can do this with a little pre-setup. Set variables for: the top and bottom margins the point and group padding the width of the points the number of data points in your data

Highcharts giving an extra legend when I get data dynamically from Highcharts

微笑、不失礼 提交于 2019-12-23 04:38:08
问题 I need to create highcharts series dynamically...So I used addSeries,But I am gettng an extra legend. If you have any other methods pls let me know... I am not including my total chart code....I am jst placing my series in chart... $(function () { chart = Highcharts.chart('container', { series: [ { } ] }); }); json: "dataa": [ { "name": "Unit Test 1", "data":[1,13,15,17,40,50,80] }, { "name": "Unit Test 2", "data":[2,20,50,40,20,50,15] }, { "name": "Unit Test 3", "data":[3,50,40,10,30,40,25]

Highcharts giving an extra legend when I get data dynamically from Highcharts

99封情书 提交于 2019-12-23 04:38:06
问题 I need to create highcharts series dynamically...So I used addSeries,But I am gettng an extra legend. If you have any other methods pls let me know... I am not including my total chart code....I am jst placing my series in chart... $(function () { chart = Highcharts.chart('container', { series: [ { } ] }); }); json: "dataa": [ { "name": "Unit Test 1", "data":[1,13,15,17,40,50,80] }, { "name": "Unit Test 2", "data":[2,20,50,40,20,50,15] }, { "name": "Unit Test 3", "data":[3,50,40,10,30,40,25]

how to convert svg to png image in internet Explorer?

隐身守侯 提交于 2019-12-23 04:37:27
问题 i have a chart that created with highchart. i need to save svg to png in internet Explorer. i use from follow code and exist security Error in ie11. var canvas = document.createElement('canvas'); canvas.width = width; canvas.height = height; var ctx = canvas.getContext('2d'); var imgChart = document.createElement('img'); imgChart.setAttribute('src', 'data:image/svg+xml;base64,' + btoa(unescape(encodeURIComponent(svg)))); imgChart.onload = function () { ctx.drawImage(imgChart, 0, 0); var

Highcharts : Best practise for generate venn diagram

喜夏-厌秋 提交于 2019-12-23 04:17:28
问题 I would to create different venn diagram like that http://www.biomedcentral.com/1471-2105/12/35/figure/F1 and use Highchart library (because there is a good exporting option). I found this example but i can't make the ellipses when i have 4 datasets. I think it's at "Maker" level parameters that it's possible to do it. But there is maybe another solution. Please can you give me few leads? var chart = new Highcharts.Chart({ chart: { renderTo:'container', type:'scatter' }, title:{ text:'Chart

datatable inside Highcharts-Pie chart

五迷三道 提交于 2019-12-23 04:15:07
问题 I want to display the datatable inside Pie chart using Highcharts.I can display the table outside but on exporting the image, datatable is not exported. So my aim is to display datatable inside the Pie chart. Refering to this.I was able to partly acheive it.demo But how can i give the column headers and borders to it? $(function () { Highcharts.drawTable = function() { // user options var tableTop = 200, colWidth = 60, tableLeft = 50, rowHeight = 20, cellPadding = 2.5, valueDecimals = 1,