Highcharts

Highcharts not rendering in IE 11

寵の児 提交于 2019-12-25 02:53:31
问题 I am using Highcharts JS v2.2.5 . It works fine in all browser except IE 11 . I am able see the data but, Chart is not rendering. 回答1: Do you have already excluded for wrong position or zero-height container? it's a common bug.. We need to know more details, can you post some code? Have you any error evidence in browser console? 回答2: If you are using prototype.js version 1.5.1.1 then there is a possibility of getting error in console[on hover function] only in IE[All versions]. If this is the

Highcharts Y-axis title text length is more than chart's height

断了今生、忘了曾经 提交于 2019-12-25 02:49:09
问题 I am working on highcharts. In my code, sometimes Y-axis title text is more than chart's height. Ex. I am create one chart. In this chart, height is 400px but my Y-axis title text is long so some part of the text is not display. so what can i do? see in jsfiddle 回答1: You can set width on title and adapt margin. yAxis: { title: { enabled: true, text: 'Custom with <b>simple</b> <i>markup</i>Custom with <b>simple</b> <i>markup</i>Custom with <b>simple</b> <i>markup</i>Custom with <b>simple</b>

Highchart re renders 0 values [duplicate]

≯℡__Kan透↙ 提交于 2019-12-25 02:48:19
问题 This question already exists : Rerender funnel highcharts with new data Closed 6 years ago . I have a funnel highchart which initializes at the load of the page and initializes nicely and looks like:- Now when I re initialize that high chart with the same method and new data, it looks like:- Why is this happening? Does anyone has an idea about it? Update : The data I am having first time is: The data I am having second time is: Please help. Thanks. Regards Vishal 回答1: Probably you have not

highchart exporting with phantomjs implementation

你离开我真会死。 提交于 2019-12-25 02:45:00
问题 I am trying to implement highchart exporting function in my jsp/glassfish website project in which i need charts to be converted to png,jpgs and pdfs formats but in offline mode.i had followed the steps and instruction given in official exporting site but i encountered following issues. i have downloaded the phantom.js and highchart exporting folder i change values in "app-convert.properties" file located in "highcharts-export\highcharts-export-web\src\main\webapp\WEB-INF\spring" folder and

stop redraw chart when chart types changes in highcharts

只谈情不闲聊 提交于 2019-12-25 02:37:16
问题 I am using three chart types Line, OHLC, Candlestick in highcharts. I kept those options in buttons. I'm also drawing vertical and horizontal lines on charts. The problem is, whenever I change chart type, objects(I mean the vertical and horizontal lines) should remain there. But it just refreshed. I didn't use chart.redraw() function. I just call the method each time chart type is selected. Is there anyway if I change charts, objects should remain there? function chart(type,printSma,linked

Get left and top position of highcharts scrollbar

痞子三分冷 提交于 2019-12-25 02:29:00
问题 I wanted to put custom label on highcharts which should be placed on left side of scrollbar. How can I get top and left position of scrollbar.? I have put label with following code chart.renderer.text('<span style="font-weight:600;"> 1-21 </span>', 20, 120) .css({ color: 'green', fontSize: '12px' }) .add(); 回答1: You can get position of the scrollbar using chart.xAxis[0].scrollbar.group.translateX and chart.xAxis[0].scrollbar.group.translateY , for example: https://codepen.io/anon/pen/KeBxNj

Multiple dynamic Highcharts on one page with json

浪尽此生 提交于 2019-12-25 02:28:58
问题 I'm looking for a solution using json in order to retreive values out of my database and display them in seperate line charts. Not only the values are dynamic, but the titles are different for all charts as well. This is my approach: JSON [{"name":"time","data":["14:01:37","14:01:40"]},{"name":"bmp085_pressure","data":[973.65,973.64]},{"name":"bmp085_sealvlPressure","data":[0,0]},{"name":"bmp085_altitude","data":[356.2512817383,356.8531799316]},{"name":"gps_altitude","data":[353.6,353.6]},{

Array for Highcharts:

本小妞迷上赌 提交于 2019-12-25 02:20:05
问题 I just play around with Highcharts (http://www.highcharts.com) inside of a test app based on rails 3.1.1 and HAML. I'm still new to js and I try to accomplish a nice integration of highcharts. In my controller I set up some json arrays for usage in highcharts. @category_ids_json = Category.all(:conditions => { :income => false},:select => "id").to_json @categories_json = Category.all(:conditions => { :income => false}, :select => "id,title,income").to_json @transactions_json = Transaction.all

How to POST Highcharts Image?

天大地大妈咪最大 提交于 2019-12-25 02:19:02
问题 I need to create a PDF file which contains Highcharts.js chart and just wondering if there is a way to optimize the Export module to POST the image (png or jpeg) to a PHP file which I want to create the PDF files there. As you know the exporting module normally exports the output as downloadable files but I do not want to download them just send them on the server. Thanks 回答1: You can use highchart's exporting module along with TCPDF Library. The TCPDF library Support svg rendaring. You can

Highcharts: Returning N/A value instead of 0% in data label

こ雲淡風輕ζ 提交于 2019-12-25 02:07:14
问题 I'd like to have the y-axis data labels return 'N/A' for null values. Currently nothing is displayed. I tried using the y-formatter function to say if the y value equaled null, return N/A but haven't had luck for some reason? I'm somewhat new to Highcharts, so please forgive the basic nature of the question. formatter: function() { if (this.y !== null) return 'test'; var chart = this.series.chart; chart.renderer.text('n/a', this.point.plotX - 10, chart.plotHeight - 10).add(this.series.group)