Highcharts

Using css to customise highcharts in Ionic 4

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 01:43:08
问题 I am using ionic 4 with Highcharts. Everything is working perfectly apart from me not being able to customise the charts through my component's css. I've tried a couple of things but cannot get it to work. Is there anything I should be adding in the scss to make it be applied on the graph? A summary of the component: In my component.ts: import * as HighCharts from 'highcharts'; @Component({ styleUrls: ['./component.scss'], selector: 'my-component', templateUrl: 'component.html' }) In my

Highcharts donut legend toggle

余生颓废 提交于 2019-12-24 01:29:13
问题 Im using a highchart pie chart to make Donut chart. The problem is when I click on legend to toggle series it only affects the clicked serie. I want to also toggle related sub series. I have tried LegenditemClick event and legendIndex , but no success so far. Here example for chart: http://jsfiddle.net/safarov/PgpRv/ When you click "facebook legend" for example, only inner pie hide. Any help will be appreciated 回答1: You need to set ids for inner and outer rings. Then common it by

How to include highcharts motion plugin for bubble plot using R wrapper?

蹲街弑〆低调 提交于 2019-12-24 01:28:05
问题 Highcharts motion plugin - Requires 3 adjustments to a highchart. The inclusion of the js asset An option object for motion Data to be within sequence arrays. It seems like there are two main R wrappers for Highcharts . Ramnath's rCharts and the recently released on CRAN highcharter. So my question: is it possible to animate a bubble highchart over time with the currently available wrappers and if so how? rCharts Attempt 1 Starting with a bubble chart and introducing the 3 required motion

How can i create doughnut chart using oxyplot in xamarin.android?

泪湿孤枕 提交于 2019-12-24 01:09:41
问题 I need to create app that shows chart like Highcharts. But i did't get any library for that. So i'm using oxyplot to create charts. I have create pie chart using oxyplot like this. var plotView = new PlotView (this); plotView.Model = PieViewModel(); this.AddContentView (plotView, new ViewGroup.LayoutParams (ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent)); public PlotModel PieViewModel() { var modelP1 = new PlotModel { Title = "Pie Sample1" }; dynamic seriesP1 = new

highcharts gets my hour time wrong

天涯浪子 提交于 2019-12-24 01:04:54
问题 highcharts gets my hour time wrong I'm from venezuela just in case. I doing a real time system where I get in my db the time,seconds and miliseconds like 10:39:09:2 I apply the strtotime($time) then I sended by json to charted and in my highcharts i got in the xAxis: { type: 'datetime', title: { text: 'Tiempo' } the utc function is already false Highcharts.setOptions({ global: { useUTC: false } }); and my function to get the json is function requestData_Frecuencia() { $.ajax({ url: 'Datos

Adding data to a highchart chart using an array with IDs

可紊 提交于 2019-12-24 01:01:46
问题 I want to add a series to a highchart scatterplot where I am naming each point in the series. I create a chart in the following way: var chart; // globally available makeCharts = function(){ chart = new Highcharts.Chart({ chart: { renderTo: 'container1', type: 'scatter' }, series: [{ name: 'a', data: [{ 'id': 'point1', 'x': 1, 'y': 2 }, { 'id': 'point2', 'x': 2, 'y': 5 }] }] }); } I would like to be able to update the points on the chart using something like: chart.series[0].setData([{id:[

Highcharts Backgroundimage for bar graph

守給你的承諾、 提交于 2019-12-24 00:59:45
问题 I want to add a background image to a bar chart using Highcharts and display it in a UIWebView . So far I've been using this little plugin, which is working fine in latest Chrome. However, as soon as I load this into my UIWebView, the image is not displayed. I think this is related to the fact that iOS might not be able to parse the correct path for the image file? Is there another (simpler) way to just add a background-image to a bar chart? In my Highcharts data series color: { pattern:

Compare two data points inside the tooltip in a Highcharts combination chart

China☆狼群 提交于 2019-12-24 00:59:32
问题 I have a combination bar-line chart sharing a single Y axis. The data points for both the bar and the line chart always share the same Y values. I'd like to be able to calculate the difference between the two X values in the tooltip. Here's the chart I'm working with: Combo Chart 回答1: Got it to work. The trick was in the shared and formatter properties of tooltip: tooltip: { shared: true, formatter: function() { var s= this.points[1].y - this.points[0].y; return s; } }, 来源: https:/

Group Smaller Slices in Pie Charts to Improve Readability

梦想与她 提交于 2019-12-24 00:52:29
问题 I want to group data thar have under 10% percentage to be grouped to slice of pie named others. Is it possible? Pie-chart series: [{ type: 'pie', name: 'Browser share', data: [ ['Firefox', 45.0], ['IE', 26.8], { name: 'Chrome', y: 12.8, sliced: true, selected: true }, ['Safari', 8.5], ['Opera', 6.2] ] }] 回答1: You just need to calculate slightly different data. Iterate over the entries looking for items with < 10%. Add these to an 'other' category. Something like this: var data = [ ['Firefox',

is a way to see all data in tooltip when the points are overlap with each other(or very close), but see only one data when a point is far from others

倖福魔咒の 提交于 2019-12-24 00:45:37
问题 For line chart tooltip, if we set "share: true", we can see all data with same X-Axis value in a single bubble. if we set "share: false", we can see only one data in single bubble. My question is whether there is a way to see all data in tooltip when the points are overlap with each other(or very close), but see only one data when a point is far from others. 来源: https://stackoverflow.com/questions/17366916/is-a-way-to-see-all-data-in-tooltip-when-the-points-are-overlap-with-each-other