Highcharts

Highstock - Minimal Zoom

有些话、适合烂在心里 提交于 2019-12-12 03:29:40
问题 How can you set in Highstock a minimal zoom (36 Months) for Navigator? i have tried this but it doesnt work do you have a idea? http://jsfiddle.net/B7vCR/6/ $(function() { var chart; $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?', function(data) { // Create the chart chart = new Highcharts.StockChart({ chart: { renderTo: 'container' }, rangeSelector: { selected: 1 }, title: { text: 'AAPL Stock Price' }, xAxis: { minRange:6 * 30 * 24 * 3600 * 1000,

incorrect generation of highcharts

本小妞迷上赌 提交于 2019-12-12 03:28:37
问题 I am getting data in json format as below <?php $monthlyParticipation='[{"project_title":"test project 44","project_ref_id":"113","amount":"13000.00","months":"Feb"},{"project_title":"sdsdsd","project_ref_id":"112","amount":"50000.00","months":"Mar"},{"project_title":"testing123","project_ref_id":"104","amount":"232323.00","months":"Mar"},{"project_title":"hello wolrd","project_ref_id":"111","amount":"30000.00","months":"Mar"},{"project_title":"road construction","project_ref_id":"108",

Highcharts chart moves up from x-axis on drill down

与世无争的帅哥 提交于 2019-12-12 03:26:33
问题 I am using Highcharts to draw a chart of my data.When I am having a column chart and when I drill down in it, after drill down the chart moves up from the x-axis. This is the x-axis and y-axis settings: xAxis: { labels: { rotation: -20, align: 'right' } }, yAxis: { min: 0 } Let me know if anybody has any solution for this. 回答1: PLease update the version of the highcharts to 4.0.4, because the previous one had some bugs. It worked for me. 来源: https://stackoverflow.com/questions/28063540

Highcharts treemap slow rendering upon drilldown

僤鯓⒐⒋嵵緔 提交于 2019-12-12 03:19:24
问题 I have built a Highcharts treemap with quite a large data set. There are two levels in the hierarchy, with about 300 nodes at the top level and as many as 83 children of one of the top-level nodes. When I click on one of the top-level nodes, the treemap of the children nodes is very slow to render (~8 s). I am using Chrome, and I recorded this click function in the Timeline feature of Chrome Developer Tools. It turns out that the vast majority of the time spent rendering this image occurs in

Highcharts pie chart - offset a single slice on legend click

陌路散爱 提交于 2019-12-12 03:19:08
问题 I've been searching through the API docs and lots of examples, but can't seem to find what I want. I have a pie chart with a legend. When you click a slice, it becomes offset (this is great). I would like this behaviour when you click on a legend item. Is it possible to achieve an offset slice via legend click? So if you click on an item in the legend, the relevant slice becomes offset. It seems that the method to use is legendItemClick, eg: options: { chart: { type: 'pie' }, plotOptions: { /

Add map as drilldown for pie chart

房东的猫 提交于 2019-12-12 03:17:27
问题 I have a pie chart and I want to add map drilldown series. How? http://jsfiddle.net/u03oddrg/1/ $('#things-in-brazil').highcharts({ chart: { type: 'pie'}, series: [{ name: 'Things in Brazil', data: [ { name: 'Thing 1', y: 1500 }, { name: 'Thing 2', y: 2600 } ] }] }); var data_for_thing1 = [ { "hc-key": "br-pa", value: 110 }, { "hc-key": "br-sc", value: 210 }, { "hc-key": "br-ap", value: 340 }, { "hc-key": "br-ba", value: 480 }, { "hc-key": "br-mt", value: 90 } ]; $('#thing1-by-state')

Showing image with variable src in tooltip of Highcharts scatter plot

别说谁变了你拦得住时间么 提交于 2019-12-12 03:16:58
问题 I have a Highcharts scatter plot that I've managed to integrate into my react.js page, and it's happily showing ~15,000 points. On the tooltip, I wish to show an image based on the 'name' property of the point (each point has a unique name). This is what I'm doing: tooltip: { useHTML: true, formatter: function() { return "<img src='https://image.deckbrew.com/mtg/multiverseid/'" + cardsRaw[point.name].multiverseids[cardsRaw[point.name].multiverseids.length - 1].multiverseid + "'.jpg' height=

Pie chart -custom event for legendItemClick-highchart

我是研究僧i 提交于 2019-12-12 03:04:54
问题 Please have a look at the jsfiddle here to understand what I am upto. To get the legendItemClick working I need to click on the colored buttons in the legend. But in this sample even clicking on the texts(right to the colored buttons) fires legendItemClick click event. what should I do to get the event fired even when I click on the text? 回答1: According to documentation legendItemClick is not supported in pie chart http://api.highcharts.com/highcharts#plotOptions.pie.events.legendItemClick

Using highcharts in sencha touch - Can't render empty chart

倖福魔咒の 提交于 2019-12-12 03:04:22
问题 i'm trying to port some highchart charts from a php web appplication to a Sencha Touche mobile app. I want to put an empty chart in my View page and populate it dinamycally with some jsonp calls. Here's my view code (not all the 130 lines...): { xtype : 'panel', scrollable: true, html : 'INSERIRE QUI I GRAFICI E LE TABELLE', items : [ { xtype : 'panel', layout : 'fit', html : 'AREA PER GRAFICO', itemId : 'chartRenderPanel', margin: '180px' }, { //sample code, to be replaced with a consinstent

Show only some series in HighCharts spline chart

北战南征 提交于 2019-12-12 02:58:49
问题 I have a highchart with chart type as spline In this chart, I have about 36 series data, but the problem is that showing 36 series in one single chart is really difficult to understand and moreover almost all have almost similar data. My question is that how can we show only selected or pre-defined series instead of showing all series at once, which is done by default by highcharts. Also, I do not want to change my API which is fetching the JSON data, is there any way to do it from front end