Highcharts

How make a growth baby chart with data in mysql +PDO

烈酒焚心 提交于 2019-12-14 02:53:18
问题 I am trying to make a chart with growth baby table I have in DB... I lost the idea and right now I don't know how to do it... this is the chart I need to show when the doctor insert the height and weight of every child...need to show the inserted the percentiles data and that will depend of the height and weight of the baby to show the graph (gray line)... here is my code until now (EDITED WITH NEW CODE) : <?php include 'includes/configs.php'; /* * $normal is an array of (edad => peso) key

Highcharts datalabel 'callout' shape not working for donut chart

折月煮酒 提交于 2019-12-14 02:43:52
问题 I've been trying to implement dynamic 'callout' shape datalabels for donut chart using Highcharts javascript library, where notch of datalabels point to respective arc. something like this: https://imgur.com/yKhWKOu I've created the 'callout' shape using highcharts renderer method, but unable to make it dynamic. This is what I'm getting right now: https://imgur.com/VMuVwdk My code is : <!DOCTYPE html> <html> <head> </head> <body> <div id="container" style="min-width: 310px; height: 400px; max

$scope.$watch … make it return a function on another scope?

ぃ、小莉子 提交于 2019-12-14 02:39:59
问题 I have a watch function that returns a value for 2 series of data in Highcharts. The example below shows how this would work within the controller: $scope.$watch("trendCompany",function(){ return $scope.chartConfig.series[0].data = [-1.95,0.99,9.29,4.49,-1.50,-4.05,-7.05,10.13,-19.95, 2.99,-14.55,-6.15,-20.25,-27.00,-26.10,-10.95,-10.95,5.30, 6.06,11.12,10.13,11.96,22.13,6.74,4.67,1.43,0.27,4.20,-3.45, 2.10,-1.65,1.92,1.85,0.00,1.97,-5.25,-3.30,1.67,3.87,6.27,1.89, 2.27,0.59,-1.20,-5.85,-6.60

Rotating a donut chart in javascript after it is rendered

喜夏-厌秋 提交于 2019-12-14 02:36:25
问题 All, I have a request from my client to create a donut chart using high charts lib and then be able to rotate the donut along with the label by touch move event on mobile or a mouse move event on desktop after the graph is rendered. My client is using hammer.js, jquery and high charts. I am not sure how to go about getting the donut chart to rotate. Can anybody share some ideas/samples or know of other libraries that might already do this? Here's a high chart sample http://jsfiddle.net

highcharts column chart with line, need line start at bar start

非 Y 不嫁゛ 提交于 2019-12-14 02:22:08
问题 here is demo fiddel, need line chart start from first column left border to last column right border like image below in demo fiddel it is start for center of bars. here is my code of series or you can see in fiddel : series: [{ name: 'Rainfall', type: 'column', yAxis: 1, data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], tooltip: { valueSuffix: ' mm' } }, { name: 'Temperature', type: 'line', data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3,

Does it support 3D pie chart?

隐身守侯 提交于 2019-12-14 00:50:04
问题 I am using Highcharts on my web, and I have the need for a 3D pie chart. Does Highcharts support 3D pie charts? If so can someone show an example? 回答1: It's the top most requested feature http://highcharts.uservoice.com/forums/55896-general and it looks like is is coming this year. Meanwhile, you can add radial gradients. http://jsfiddle.net/LCdVd/243/ --- Update --- 3D pie charts are now supported: http://www.highcharts.com/demo/3d-pie 来源: https://stackoverflow.com/questions/15597268/does-it

Highcharts add point to line chart with json

扶醉桌前 提交于 2019-12-14 00:39:26
问题 I need to add point from data which I get from mysql database. At this time, i get data by json but i don't know why in the output array, data have double quote(" ") like this: ["{name:'Chip 3',data:[[moment('2015-05-14 13:26:21','HH:mm:ss').valueOf(),29],[moment('2015-05-14 13 :26:51','HH:mm:ss').valueOf(),29],[moment('2015-05-14 13:27:21','HH:mm:ss').valueOf(),29],[moment('2015-05-14 13:27:51','HH:mm:ss').valueOf(),29],[moment('2015-05-14 13:28:21','HH:mm:ss').valueOf(),29],[moment('2015-05

Display array values as unique tooltip in highcharts

馋奶兔 提交于 2019-12-13 23:15:32
问题 I am trying to display values of an array as tooltip in highcharts line graph.I am currently using values entered from a textbox as tooltip but trying to display array values as tooltip..the js fiddle is given here http://jsfiddle.net/RbenU/75/ the tooltip code i am using is.. tooltip: { formatter: function () { var serieI = this.series.index; var index = categories.indexOf(this.x); var comment = $("input:eq(" + (index) + ")").val(); return '-->'+comment; } }, I want to display values of

HighChart - How to change the icons of the highchart legend?

烈酒焚心 提交于 2019-12-13 23:08:44
问题 I want to change the icons/bullets of the highchart legend, Is it possible to customize this? Thanks for your help. http://jsfiddle.net/9oz9h3pb/1/ //An example of a graphic from the HighCharts page: //http://jsfiddle.net/9oz9h3pb/1/ 回答1: You can hide legend markers using CSS: .highcharts-legend-item .highcharts-point, .highcharts-legend-item .highcharts-graph { display: none } Then set useHTML in legend and insert your own HTML using labelFormatter : legend: { useHTML: true, labelFormatter:

How to change the Highchart color dynamically

耗尽温柔 提交于 2019-12-13 22:19:31
问题 I have a problem with my highchart my series is populated dynamically by looping my model. What if I also need to change the color of my highchart base on the value of my series. Here is my code series: [{ name: 'Flag', showInLegend: false, pointWidth:24, pointPadding:0, groupPadding:0, data: (function() { var data = []; @{ var itemSumaryListData = Model; int subordinateCount = itemSumaryListData.subordinateCount; if(itemSumaryListData.employeeteamlevelsummarylist.Count > 0){ foreach (var