Highcharts

How to add different color border in column highchart

六月ゝ 毕业季﹏ 提交于 2020-01-06 09:57:09
问题 Toggle method - on Click of bars show border and hide border. But Background should not change. Please refer my code, Do we have any toggle kind of method?. 回答1: Your code is not reproducible using previous code from this post Updated It as follows plotOptions: { series: { events: { click: function(e) { var chart = e.point.series.chart; e.point.select(true, false); //at any time only one column is selected /*logic for toggle*/ if (currSel !== e.point.index) { chart.series[0].data[e.point

onchange F(x) to php to Highchart on same page

主宰稳场 提交于 2020-01-06 08:52:29
问题 I am continuing a previous question that was asked onclick -> mysql query -> javascript; same page This is my onchange function for a drop down of names. it is called when each drop down is changed. The idea is to send each runners name into the php page to run a mysql query then return 3 arrays to be entered into javascript. function sendCharts() { var awayTeam = document.getElementById('awayRunner').value; var homeTeam = document.getElementById('homeRunner').value; if(window.XMLHttpRequest)

onchange F(x) to php to Highchart on same page

本小妞迷上赌 提交于 2020-01-06 08:52:01
问题 I am continuing a previous question that was asked onclick -> mysql query -> javascript; same page This is my onchange function for a drop down of names. it is called when each drop down is changed. The idea is to send each runners name into the php page to run a mysql query then return 3 arrays to be entered into javascript. function sendCharts() { var awayTeam = document.getElementById('awayRunner').value; var homeTeam = document.getElementById('homeRunner').value; if(window.XMLHttpRequest)

How to send JSON using JSF2 Primefaces Request Context to Highchart?

做~自己de王妃 提交于 2020-01-06 08:44:18
问题 Hi I've been strugling with this for hours, I want to send my POJO in JSON format using Primefaces Request Context to a Highchart inside my JSF to update its value. Basically I am following this solution of @Bhesh Gurung from his own stackoverflow question but I cant seem to make it work. Right now it is throwing a: Cannot find component with identifier "pieData" referenced from "j_idt31". I want to sucessfully create a highchart using the JSON data through the Primefaces Request Context.

Highcharts - load and refresh csv

[亡魂溺海] 提交于 2020-01-06 08:28:11
问题 I have 2 Charts (using Highcharts) with different data on one page. The data to visualize comes from CSV files. My Code works so far, and the Charts show the CVS content visualized. But: I need to reload the CSV every 5 Minutes, cause new data gets written in these CSV files every 5 Minutes. How do I perform that reload in the best way? My code to generate the 2 Charts: $.get('chart_1.csv', function(csv) { $('#chart_1').highcharts({ chart: { type: 'column' }, data: { csv: csv } }); }); $.get(

Highcharts how do i keep space between series the same but increase space between categories?

橙三吉。 提交于 2020-01-06 08:16:49
问题 I have a highcharts column chart, here is the jsFiddle for it. I want to keep the space between the series as it is -- really close to each other without touching. But I'd like to increase the space between the categories so that it's more distinguishable they are different categories. I've tried playing around with pointpadding and grouppadding but everything I've tried wants to increase/decrease the space between all the columns. Any ideas? plotOptions: { column: { borderRadius: 5,

How to use highcharts to display data of only five point when the page is initialized?

我是研究僧i 提交于 2020-01-06 07:44:42
问题 When the page is initialized, it displays all 20 weeks' data. I want to display from 2018week1 to 2018week5, this five weeks data for employee1 and employee2, when the chart is initialized. When zooming on the X axis or Y axis, I should be able to chose any time period. var chart = null; data1 = [1884, 2936, 2039, 1948, 1814, 2071, 2183, 3234, 3426, 2188, 1884, 2936, 2039, 1948, 1814, 2071, 2183, 3234, 3426, 2188] data2 = [875, 694, 919, 1092, 815, 1137, 1421, 1547, 1737, 1748, 875, 694, 919,

How to remove the gap between yAxis and data?

a 夏天 提交于 2020-01-06 07:25:14
问题 I'm styling up a Highchart to match an existing design. I'm however left with a gap between the yAxis and the start of the data. See the example: http://jsfiddle.net/MDGkd/ How can I get the xAxis to start on the yAxis? var colors = ['#77217b', '#9c50b1', '#e1d0e6', '#f5f0f7', '#f1e9f4']; $(function () { chart = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'area', marginLeft: 80, marginBottom: 80 }, colors: colors, legend: { borderRadius: 0, borderWidth: 0, itemStyle: {

Highchart 3d: Chart graph. Zaxis alignment issue

断了今生、忘了曾经 提交于 2020-01-06 07:24:15
问题 I am working on a 3d scatter plot chart. But facing issues with setting up the position of z axis label. Kindly help me in getting it back in proper position. Thanks in advance. I tried to play around with the zaxis values but no luck. zAxis: { min: 0, max: 11, gridLineColor: 'white', categories: ['W', '1', '2', '3c', '3b', '3a', '4c', '4b', '4a', '5c', '5b', '5a'], labels: { y: 1, rotation: 30, align: 'center' } } JS Fiddle link : http://jsfiddle.net/suprcool01/xvdcqbyk/24/ 来源: https:/

Highcharts Chart Corrupted on Range Selector Button Press

自作多情 提交于 2020-01-06 07:13:48
问题 It appears that when changing the data grouping via the range selector buttons, the chart does not erase the old dataGroupings, so the chart becomes messy quickly. You can see the issue here. Is there any way to fix this? Below is the code that generates the chart. Highcharts.stockChart('container', { chart: { height: 300 }, rangeSelector: { allButtonsEnabled: true, buttons: [{ type: 'month', count: 3, text: 'Day', dataGrouping: { forced: true, units: [['day', [1]]] } }, { type: 'year', count