Highcharts

Highcharts how to change x axis options

假装没事ソ 提交于 2019-12-22 04:37:11
问题 In Highcharts I want to change the default starting point from 0 to 1 is where can i find the option to change I have only data points so that are plotted on y axis and the x axis simply contain the default numbers ie 0,1,2, etc.. i want to change the starting point from 0 to 1 thanks in advance 回答1: It's been a while since you've posted so I hope you've found your answer by now but I wanted to give you a response anyway. You need to use the min option inside the X-Axis category. Read more

Highcharts - fire legendItemClick event

放肆的年华 提交于 2019-12-22 04:36:28
问题 I want to fire the same event that it's fired when you select an item legend but from an external html button. Is it possible? I've created a jsfiddle to show it: http://jsfiddle.net/YcJF8/1/ . $('#container').highcharts({ chart : { type : 'spline', }, xAxis : { categories : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }, series : [{ data : [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4], }], plotOptions : { series : {

Show only time labels on xAxis. Highcharts

雨燕双飞 提交于 2019-12-22 04:33:16
问题 I need to display only time labels on xAxis. I'm using Highcharts and don't fully understand how to do it. On xAxis there should be time labels in format like 21:00. I do not need dates, only time is needed. In addition, the difference between two labels should be 00:30 (half an hour) or 01:30 and it should be zoomable. My PHP script writes some value in database every half an hour and I need to display it on a graph. Sorry for my poor English, I'm Russian. Any help would be appreciated :)

Highstocks graph width not correctly rendered

陌路散爱 提交于 2019-12-22 04:16:19
问题 Hello I have a problem with highstocks when using jquery tabs. this is the code for the constructor. Chart = new Highcharts.StockChart({ Chart = new Highcharts.StockChart({ chart: { renderTo: 'Container', alignticks:false }, xAxis: { .......... }, yAxis: [{ ....... }], series : [{ .......... }] }); The Container has only half the width of the whole page. When the page is loaded to the tab containing the graph, then its width is rendered correctly. But when the page is loaded first to another

How to create a new Highstock chart with new Highchart and not jquery?

蓝咒 提交于 2019-12-22 04:01:25
问题 All the examples on the Highchart website creates a stockchart using: $('#container').highchart('Stockchart', config); How do I create a stock chart by simply using new? eg: var chart = new Highchart('Stockchart', config) I tried that, and this... var chart = new HighStock(config) ...with no luck. 回答1: I googled more and eventually found it. To do it you code like this: chart = new Highcharts.StockChart(config) Annoying that they say that... anyway yeah, it has two constructors, Highcharts

Get Highcharts Series Data after Load

丶灬走出姿态 提交于 2019-12-22 03:54:23
问题 I am trying to get the series data from a Highcharts chart once it has been called and loaded to the page. So far I've only been successful in getting a bunch of strings that isn't what I am after obviously. Wonder if someone can help me with this one. jQuery Code: success: function (chartData) { if(chart != undefined) { $('#meterloader').hide(); $.each(chart.series[0], function(value) { alert(value); }); } else { $('#meterloader').hide(); $('#meterbox').html("<div><p class='textcentre bold

Change Highcharts tooltip formatter from chart Object , after chart is rendered

佐手、 提交于 2019-12-22 03:49:22
问题 I have found that I can change series with setData, and I know I can modify Max values with .setExtremes , but I cannot figure out how to set the tooltip formatter from the chart object. How do I update that field ? If i have a chart object , how do I update its tooltip formatter property ? and How about the plotOptions tooltip formatter? What I have tried : chart1.tooltip.formatter = function() {return ''+this.series.name +'example: '+ this.y +'example';}; But nothing changed in my tooltips

Set highcharts y-axis min value to 0, unless there is negative data

隐身守侯 提交于 2019-12-22 01:53:22
问题 I'm having an issue with highcharts where I have a number of different charts being generated by JSON calls. For the majority of these charts I need the minimum y-axis value to be set at 0, however there are a couple of occasions where negative values need to be shown. How can I tell highcharts to have a minimum y-axis value of 0 only if there are no negative values in the data, is this even possible? Thanks 回答1: The option that you're looking for is called softMin and was introduced in

high chart sample

痞子三分冷 提交于 2019-12-22 01:32:51
问题 looking for high chart sample program, I haven't used Highcharts before, but it seems there are no sliders built take a look at the answer. Actually Highcharts in general are not free.. For me it's simple bullet graph. In Highcharts for that you can use bar chart with scatter point 回答1: The bullet concept will work for this, though it will take some work to get styling like that. There are plenty of useful options for styling such a chart though without relying on the physical gauge metaphor.

Highcharts jQuery rendering problem - all browsers

淺唱寂寞╮ 提交于 2019-12-22 01:25:23
问题 I have a strange problem whilst trying to build a stacked column chart using Highcharts When the chart renders, the columns don't display, until, you resize the browser in anyway, causing the chart to redraw. (I think)! The rest of the chart displays (axis, titles, etc) but not the columns themselves. I get the same behaviour in IE, Firefox and chrome. I have put my code on jsfiddle - http://jsfiddle.net/gd7bB/173/ Load it up and you should see no data, resize the browser window and "tada",