lazy-high-charts

How to correct mouse event in Highcharts

那年仲夏 提交于 2019-12-24 03:29:44
问题 I am trying to plot xy line in which y axis is reversed and I am getting plot but mouse event I am unable to correct it it is showing reverse event, and I want to find min and mix of axis automatically how this can be done? And how to bring x axis on top? This is my code: JS $(function () { var chart = new Highcharts.Chart({ chart: { renderTo: 'container', zoomType: 'xy', marginLeft: 50, marginBottom: 90 }, // How to get minmax automatically zooming is a issue // reverse is true yAxis: {

Highcharts does not work with wicked_pdf

社会主义新天地 提交于 2019-12-21 05:10:05
问题 I'm trying to generate a PDF report using the Wicked_pdf gem and Highcharts. I've already tried to set animation , enableMouseTracking and shadow false. But when wkhtmltopdf tries to generated the PDF files I got an error. I really don't not what to do, because when I do the same procedure for an HTML, Highcharts renders perfectly. 回答1: I fixed it by setting this options: plotOptions: line: animation: false enableMouseTracking: false shadow: false Also, don't forget to include JQuery and

afterSetExtremes callback for highcharts

拜拜、爱过 提交于 2019-12-13 16:46:01
问题 I'm creating a highchart using the lazy_highcharts gem. I'd like to make use of the afterSetExtremes callback to regenerate some other data on the page on zooming. I've tried several ways, currently trying: @chart = LazyHighCharts::HighChart.new('graph') do |f| f.chart(:zoomType =>'x', :defaultSeriesType => 'spline') f.x_axis(:type=> 'datetime', :events => {:afterSetExtremes => "functon(event){alert('something')}"} ) end But that gives me the error Uncaught TypeError: Object functon(event)

Race condition leading to Highcharts error #13

余生长醉 提交于 2019-12-10 22:37:49
问题 I have some tabs which are generated dynamically. Clicking on any of this tabs loads multiple charts(three or four) like a pie, column or a linechart simultaneously. I append this charts into dynamically generated html divs. All works good if i had to click a tab and wait for all the charts to be loaded. Problem happens when i keep on clicking tabs one after the other and not wait till all the charts are loaded. i get a javascript error inside highcharts.js file which logs Highcharts error

Link inside of a Highcharts tooltip

萝らか妹 提交于 2019-12-10 13:29:06
问题 I'm trying to replicate the behaviour of this fiddle for my application. It all works fine when I'm on a PC or Mac. I've also tested on a few tablets, but it doesn't want to work on an iPad, which is a large user base for my app. [http://jsfiddle.net/PLUpR/show/][1] Any help would be very appreciated!!! 回答1: You can catch click event on the point and load url link. data : [{ x : Date.UTC(2011, 3, 25), title : 'H', url: 'http://www.google.com', text : 'google' }], point:{ events:{ click:

How to list dates (day-by-day) on xAxis using HighCharts

二次信任 提交于 2019-12-08 11:52:13
问题 I'm trying to display dates (i.e., by day) along the xAxis using HighCharts. I'm using the Lazy High Charts gem w/ Rails to do so. For the HighCharts 'data' argument, I'm passing in a nested array with [[date, revenue], [date, revenue], [date, revenue]...etc]. The yAxis with the revenue is working correctly, but the corresponding date in the xAxis is not. Here's the controllers code : def graph_orders sales_and_date_array = [] Order.revenue_to_array(sales_and_date_array) puts sales_and_date

LazyHighchart and dated Data

雨燕双飞 提交于 2019-12-08 10:00:35
问题 Got a problem with highcharts. I have series with dated data (debit, month) and want to graph it. I can graph data (debit only), but when i want to add datetimes, there are 2 problems : x_axis data are bad displayed (00:00:00.00)(00:00:00.00), expecting month-year (08/2012) Tooltip told me "Invalid date" def index @ops = getConstantOps() @js_data = [] @ops.each { |f| tmp = [f.date_operation,f.debit] @js_data.push(tmp) } @h = LazyHighCharts::HighChart.new('graph') do |f| f.options[:chart][

BUG In Highchart's Mouse Event With Plot Type : Line / Spline

ぐ巨炮叔叔 提交于 2019-12-08 08:09:45
问题 It looks like there is some bug in mouse event tracking in highcharts line plot, I am not sure whether its bug or not, I have one more post on same matter here few days ago, How to correct mouse event in Highcharts, in which one of the engineers of highcharts support, suggested to sort x axis, I did the same as he suggested, but result is one which I can't accept in practical Here is link to Fiddle, please look into it 1 ) Good pattern yaxis sorted mouse event not working ---> Good <script