Highcharts

How to create a highcharter event function to create a “dropdown function” in Shiny R

让人想犯罪 __ 提交于 2020-06-26 07:58:37
问题 I'm building a shiny app and one of the things I want to accomplish is to create a dropdown menu. I want to plot the labour variable as a function of the year variable for the different levels. See below for a sample dataframe: year level_2 level_3 labour 1 2013 10 101 1 2 2014 10 101 5 3 2015 10 101 10 4 2016 10 101 20 5 2017 10 101 25 6 2013 11 111 5 7 2014 11 111 10 8 2015 11 111 20 9 2016 11 111 25 10 2017 11 111 30 11 2013 10 102 2 12 2014 10 102 6 13 2015 10 102 11 14 2016 10 102 21 15

How to create a highcharter event function to create a “dropdown function” in Shiny R

╄→гoц情女王★ 提交于 2020-06-26 07:57:09
问题 I'm building a shiny app and one of the things I want to accomplish is to create a dropdown menu. I want to plot the labour variable as a function of the year variable for the different levels. See below for a sample dataframe: year level_2 level_3 labour 1 2013 10 101 1 2 2014 10 101 5 3 2015 10 101 10 4 2016 10 101 20 5 2017 10 101 25 6 2013 11 111 5 7 2014 11 111 10 8 2015 11 111 20 9 2016 11 111 25 10 2017 11 111 30 11 2013 10 102 2 12 2014 10 102 6 13 2015 10 102 11 14 2016 10 102 21 15

Responsive Highcharts not sizing correctly until window resize

谁都会走 提交于 2020-06-24 02:02:07
问题 I'm using Highcharts within Zurb's Foundation framework for a class project. I have three charts within a section tab. One is within a 12-column div, the other two are on the same row within 6-column divs. When the page loads, the featured chart does not take up the available width of the 12 columns, and the two smaller charts overflow their 6 columns. However, when the window is resized or I try to investigate using Inspect element, the charts immediately snap into the correct dimensions.

Responsive Highcharts not sizing correctly until window resize

…衆ロ難τιáo~ 提交于 2020-06-24 02:01:49
问题 I'm using Highcharts within Zurb's Foundation framework for a class project. I have three charts within a section tab. One is within a 12-column div, the other two are on the same row within 6-column divs. When the page loads, the featured chart does not take up the available width of the 12 columns, and the two smaller charts overflow their 6 columns. However, when the window is resized or I try to investigate using Inspect element, the charts immediately snap into the correct dimensions.

HighCharts: set an id for a spline data set?

纵饮孤独 提交于 2020-06-17 09:45:07
问题 I'm creating a HighCharts spline chart with multiple data sets. It all works fine... Now I want to get at the <path> element for each curve so I can use SVG functions like path.getTotalLength() Can I set an id or something in the JSON data that will appear in the <path> so I can get to it via document.getElementById(id) or a similar unambiguous method? Here what I've tried: I know can set a 'className' in my JSON and that className will appear in the <g> parent node of the <path> (and in

Dynamically update Highcharts chart in react

穿精又带淫゛_ 提交于 2020-06-12 06:31:46
问题 I am using highcharts-react-official in react-redux to create a drilldown chart. However when I click on a bar to drilldown, I also update some props which causes the component to re-render - which seems to prevent the drilldown event. I kind of gathered from Change series data dynamically in react-highcharts without re-render of the chart that I should use shouldComponentUpdate and getChart() to prevent re-render and instead dynamically update the data. My issue is that getChart() doesn't

Dynamically update Highcharts chart in react

梦想的初衷 提交于 2020-06-12 06:30:30
问题 I am using highcharts-react-official in react-redux to create a drilldown chart. However when I click on a bar to drilldown, I also update some props which causes the component to re-render - which seems to prevent the drilldown event. I kind of gathered from Change series data dynamically in react-highcharts without re-render of the chart that I should use shouldComponentUpdate and getChart() to prevent re-render and instead dynamically update the data. My issue is that getChart() doesn't

highcharts - disable fading series on marker hover

纵然是瞬间 提交于 2020-06-12 04:50:49
问题 I have multiple series in my chart area. When I hover on a marker of any series, the other background series' fade and become more transparent. I'm trying to disable that feature and have all series with full opacity at all times. 回答1: You need to change the opacity property for a inactive state: plotOptions: { series: { states: { inactive: { opacity: 1 } } } } Live demo: http://jsfiddle.net/BlackLabel/wp46gdf7/ API Reference: https://api.highcharts.com/highcharts/series.column.states

highcharts - disable fading series on marker hover

北战南征 提交于 2020-06-12 04:50:08
问题 I have multiple series in my chart area. When I hover on a marker of any series, the other background series' fade and become more transparent. I'm trying to disable that feature and have all series with full opacity at all times. 回答1: You need to change the opacity property for a inactive state: plotOptions: { series: { states: { inactive: { opacity: 1 } } } } Live demo: http://jsfiddle.net/BlackLabel/wp46gdf7/ API Reference: https://api.highcharts.com/highcharts/series.column.states

How to fix this error Type 'number' has no properties in common with type 'XrangePointOptionsObject'

落花浮王杯 提交于 2020-06-09 05:38:08
问题 I'm getting this error Type 'number' has no properties in common with type 'XrangePointOptionsObject'. I want to add bar chart using angular highchatrs in my angular project but I'm not able to add because of this error. So can you please help me to solve this error. Thanks. this is my component.ts file import { Chart } from 'angular-highcharts'; import * as Highcharts from 'highcharts' @Component({ selector: 'app-bar-chart', templateUrl: './bar-chart.component.html', styleUrls: ['./bar-chart