Highcharts

Highcharts, Rails - way to set start point for graph?

…衆ロ難τιáo~ 提交于 2019-12-25 07:48:42
问题 On my chart I am trying to change the start point for my graph but does not work: series: [{ name: 'Difficulty', connectNulls:true, color: '#FF0000', pointInterval: <%= 1.day * 1000 %>, pointStart: <%= 2.weeks.ago.at_midnight.to_i * 1000 %>, data: [<% HomeworkStudent.where(:school_user_id => current_user.school_user.id).order('updated_at ASC').each do | homework_student| %> [Date.parse(<%= homework_student.updated_at.to_json.html_safe %>), <%= homework_student.difficulty.to_json.html_safe %>]

Highcharts with shared and split tooptip, Is there any possible to style the hover xAxis labels?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 07:48:11
问题 Expect : set my custom style on the xAxis labels, and cancel the 'default' style(see below fiddle) once hover out. fiddle Tried : tooltip: { useHTML: true } .test { background-color: red; } Yes, I can set the style now, but the 'default' style can't be canceled, the default style 'stay' once mouseover happens especially on a narrow screen. BTW, I did this to keep the tooltip with overwriting the Highcharts.hide function (Thanks to StackOverflow too): (function (H) { H.wrap(H.Tooltip.prototype

Label hover function in highchart

匆匆过客 提交于 2019-12-25 07:29:40
问题 I am using highchart.js file for rendering chart in my application. I want to show customize label for Bar chart. My requirements are if my label name has long text like " My Label Text Long ", It should show name label like ( My Label... ) in front of bar chart. On mouse over to label name, it should show me a full label name in small tooltip . I consulted Highchart documentation but did not find any solution for it. 回答1: Slice down the value. As you are getting values in .ja file. Slice

Highcharts - URL's for series data to open clickable link

时光怂恿深爱的人放手 提交于 2019-12-25 07:28:22
问题 I need a solution to add unique URL's to my series. This former question, unfortunately does not work anymore. series: [{ name: 'batch', visible: false, marker: { enabled: false, states: { hover: { enabled: true } }, symbol: 'square' }, data:[56.5,50.1,49.4,50.8,51.8,50.4,51.1,50], color: 'darkred', }, { Something like this? series:[{data: [ [123.12,'http://goole.com'],[332.32,'http://zzs.com'] ] }] 来源: https://stackoverflow.com/questions/37988348/highcharts-urls-for-series-data-to-open

Highcharts unable to destroy labels

倖福魔咒の 提交于 2019-12-25 07:27:12
问题 I have added some labels to highcharts that needs to be destroyed when a button is clicked but unfortunately the labels are still visible Here is the fiddle. https://jsfiddle.net/7pq3po3o/3/ HTML: <script src="https://code.highcharts.com/highcharts.js"></script> <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> <button id="remove"> REmove callouts </button> Javascript:- $(document).ready(function(){ remove_labels = false gen_points = {"0":[{"x_axis":"0.8","y

How to combine highcharts (heatmap) and table (mapping each table row with heatmap row)?

冷暖自知 提交于 2019-12-25 07:26:40
问题 I am generating heatmap but at the same time I have one table which has corresponding information for each row in heatmap so I want to keep both side by side. Below is sample link for heatmap code. http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/heatmap/ html code for table: <table cellpadding=0,celspacing=12> <tr><td>Monday</td><td>Smith</td><td>50</td></tr> <tr><td>Tuesday</td><td>Jackson</td><td>90</td></tr> <tr><td>Wednesday<

highcharter hc_axis not working correctly

…衆ロ難τιáo~ 提交于 2019-12-25 07:16:40
问题 Follow up on this post I am not able to get the x-axis labels in correct format using the code below. hchart(visits, "column", x = as.Date(VisitDate), y = freq, group = Clinic) %>% hc_xAxis(categories = allDates$VisitDate, title = list(text = 'Deadline'), type = 'datetime', dateTimeLabelFormats = list(month = "%b", year = "%y")) %>% hc_plotOptions(column = list( dataLabels = list(enabled = FALSE), stacking = "normal", enableMouseTracking = TRUE) ) The resulting chart below has labels all

How to open new chart to the adjacent <div> on bar click in highchart

那年仲夏 提交于 2019-12-25 07:05:56
问题 I'm new to Highcharts and need two charts(lets assume Chart a and chart B). So creating one is simple. On bar click of chart(Chart A) I want a new chart(Chart B) to open adjacent to the existing <div> (Chart A). So both chart should be visible once bar is clicked. New chart (chart B) should be different for each bar clicked of first Chart (Chart A) 回答1: You can simply bind click event on a bar, then create second chart in a specific div, see: http://jsfiddle.net/Yrygy/147/ var chart = new

Labels on bar chart missing

吃可爱长大的小学妹 提交于 2019-12-25 07:00:57
问题 How do I go about ensuring that all of the labels for the bars are visible? This chart is showing every other label. Notice as well, that the numeric labels are missing on every other bar as well. Is this a font size issue, or something else? http://jsfiddle.net/brookssh/a0xdsc3q/ var chart = new Highcharts.Chart({ chart: { renderTo: "chartContainer", defaultSeriesType: 'bar', height: 595 }, title: { text: '18 York Street Consumption (RankIt)', style: { color: '#484a4a', fontSize: '22px',

How to display the prices and the volumes on a candlesticks chart with Highstock Charts?

被刻印的时光 ゝ 提交于 2019-12-25 06:58:55
问题 The example on the demo page shows the prices and the volumes on 2 charts (http://www.highcharts.com/stock/demo/candlestick-and-volume). Is it possible to render them in one chart only? Thanks. Update: Ok, got it here: http://jsfiddle.net/eAFJ3/3/: $('#container').highcharts('StockChart', { rangeSelector: { enabled: false }, scrollbar: { enabled: false }, navigator: { enabled: false }, title: { text: 'AAPL Historical' }, yAxis: [{ title: { text: 'OHLC' }, lineWidth: 2 }, { title: { text: