Highcharts

Displaying chart data from a database

假装没事ソ 提交于 2019-12-13 05:22:23
问题 Im following the instructions in http://docs.highcharts.com/#preprocessing-data-from-a-database to display some data comming from a database using php PDO and mysql but i only get slices when i show the chart.. this is my code MODEL public function get_proyectos_service_por_id($idproject) { $sql = "SELECT p.id_project, s.service_type, s.completion_status, s.id_service, sp.id_projectserv FROM projects p LEFT JOIN project_serv sp ON p.id_project = sp.id_project LEFT JOIN services s ON sp.id

Highcharts with datatable

醉酒当歌 提交于 2019-12-13 05:20:11
问题 There is an example for highcharts: http://jsfiddle.net/highcharts/z9zXM/ However I couldn't reverse x axis and y axis at table. I mean I want it like: Tokyo Jan Feb .. New York Berlin London Also I want to locate that table at middle under chart. Any ideas? 回答1: This is how the loops should be: // draw category labels $.each(series, function(serie_index, serie) { renderer.text( serie.name, cellLeft + cellPadding, tableTop + (serie_index + 2) * rowHeight - cellPadding ) .css({ fontWeight:

I'm trying to use highcharts to display a series of points not just x and y

廉价感情. 提交于 2019-12-13 05:17:23
问题 I have a chart that displays [x,y] using highcharts .I want to use more than [x,y] when I specify in an array say minimum value, maximum value . I have an array like this: array1[['apples',no of apples,11,12],['oranges',no of oranges,1,2] How do I employ this array in my following chart? I understand I have to specify this array1 in the series option. But which chart should I use? How do I represent the point in the chart when it has more than [x,y] option in the array defined as above. $

How to change JSON Format For load data to Highchart

陌路散爱 提交于 2019-12-13 05:17:09
问题 My JSON looks like this: [ { "1332879360000.0": 300, "1332797760000.0": 353, "1332799320000.0": 358, "1332879780000.0": 302, "1332800160000.0": 359, "1332880200000.0": 299, "1332880620000.0": 298, "1332881040000.0": 301, "1332881460000.0": 402, "1332880020000.0": 330, "1332882300000.0": 466, "1332796620000.0": 519, "1332800520000.0": 447, "1332797460000.0": 359, "1332801000000.0": 442 } ] And I want to load those data in Highchart but it needs another format: [ [ 1332879360000, 300 ], [

Highcharts Dynamic Chart with MySQL Data doesn't reload

此生再无相见时 提交于 2019-12-13 05:15:28
问题 Good evening everyone, this moment I try to work with HighChart / HighStock and after several weeks I were able to display my MySQL-data in the charts. But: I always want more. Well, I try to reach a dynamic chart which is refreshing like the examples you may know from the website. http://jsfiddle.net/sdorzak/HsWF2/ I used the sample code as a guide. It doesn't work, but think the problem is the missing y-axis because y-axis data come from my MySQL database while x-axis should be the current

Place Highstock inside a SVG

核能气质少年 提交于 2019-12-13 05:15:14
问题 can you help me to place a Highchart inside a SVG element instead of an HTML . Cascaded elements work fine. I have already done it with the jquery SVG plot. But Highchart throws an error 13. What can i do? Kind regards Markus Breitinger 回答1: You can generate chart in div, which will have negative margin. Then use getSVG() function and paste it ot svg element. http://api.highcharts.com/highcharts#Chart.getSVG() 回答2: Unfortunately it is not suppored, highcharts renders the chart in additional

HighCharts - timeseries chart - irregular datetime interval on xAxis

社会主义新天地 提交于 2019-12-13 05:14:20
问题 I need to make a chart on which xAxis is of type 'datetime', but have irregular intervals: http://jsfiddle.net/cz6rL/ this is the code: $(function () { $('#chart1').highcharts({ chart: { zoomType: 'x', spacingRight: 20 }, title: { text: 'Incomes/Outcomes' }, subtitle: { text: document.ontouchstart === undefined ? 'Click and drag in the plot area to zoom in' : 'Pinch the chart to zoom in' }, xAxis: { type: 'datetime', minRange: 15 * 24 * 3600000, title: { text: null } }, yAxis: { title: { text

Highcharts - making the values dynamic instead of static

自闭症网瘾萝莉.ら 提交于 2019-12-13 05:14:11
问题 Have created a graph which includes bar chart with plotted lines and pie chart in it. I'm trying to fetch values dynamically for bar chart but it is not displaying .Have uploaded the picture where bar/column chart doesn't show up and line chart shows where values are declared..Kindly help. <!-- Vf page--> <apex:page controller="HighchartsController"> <script src="https://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="https://code.highcharts.com/highcharts.js"></script> <script

Highchart: Semi Pie chart with arrow issue

爱⌒轻易说出口 提交于 2019-12-13 05:13:19
问题 I am using the highchart library for making chart in my website. Facing issue: In semi pie chart lines are showing behind the arrow, please see screen shot. Unable to change the colors. Code working in js-fiddle but not in my website. Below is the code, please review and let me know if i miss something. Code $(function () { Highcharts.chart('container', { chart: { renderTo: 'container', plotBackgroundColor: null, plotBackgroundImage: null, plotBorderWidth: 0, plotShadow: false }, title: {

Issue on Highchaert Fill Opacity and Legend Color on Spiderweb

こ雲淡風輕ζ 提交于 2019-12-13 05:03:54
问题 Can you please take a look at this demo and let me know : 1- why the Legend Color still showing the lines color while I already changed the chart type to : type: 'area' and fill color for the series as: fillColor: 'yellow', 2- I am not also set the opacity working. As you can see in the following code: series: [{ name: 'Allocated Budget', data: [43000, 19000, 60000, 35000, 17000], pointPlacement: 'on', fillColor: 'red', fillOpacity: 0.2 }, { name: 'Actual Spending', data: [50000, 39000, 42000