Highcharts

Highcharts x axis label text wrapping lost on setting label step

北战南征 提交于 2020-01-21 14:47:47
问题 I have a problem with the Highcharts label wrapping on the X axis .It is lost on setting the label step property as shown in the links below Correct: http://jsfiddle.net/Bimal/45Lp3/ Incorrect: http://jsfiddle.net/ahwmv/ $(function () { $('#container').highcharts({ chart: { }, xAxis: { categories: ['Apple Orange: PineApple Mango Grapes (% of Sales)', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], labels: { step: 1 } }, series: [{ data: [29.9, 71.5, 106.4, 129.2,

Highcharts x axis label text wrapping lost on setting label step

纵饮孤独 提交于 2020-01-21 14:47:12
问题 I have a problem with the Highcharts label wrapping on the X axis .It is lost on setting the label step property as shown in the links below Correct: http://jsfiddle.net/Bimal/45Lp3/ Incorrect: http://jsfiddle.net/ahwmv/ $(function () { $('#container').highcharts({ chart: { }, xAxis: { categories: ['Apple Orange: PineApple Mango Grapes (% of Sales)', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], labels: { step: 1 } }, series: [{ data: [29.9, 71.5, 106.4, 129.2,

How do you add text to the bottom center of legend and bottom center of chart under legend?

北城余情 提交于 2020-01-21 06:56:09
问题 I have a custom HighCharts that have totals in the legend. I need to add one line of custom text centered under the totals "in the legend". Also I need to add text center at the bottom of the chart "under the legend". See fiddle: http://jsfiddle.net/no1uknow/cvsTB/ [EDIT] I did figure this much out but don't know how to get text centered under legend. http://jsfiddle.net/no1uknow/cvsTB/1/ $(function () { var chart; $(document).ready(function() { var container_chartFreqAtaTailNum = new

HighCharts.js is not rendering chart under IE8

[亡魂溺海] 提交于 2020-01-21 06:37:10
问题 I am using HighCharts together with Python to dynamically create charts. All works fine, however I get cannot read property "0" of undefined exception under IE8. Unfortunetly my client want it to work under IE8 as well. So heres the code of the main function: function generateChart(series) { var chart = new Highcharts.Chart({ chart: { renderTo: 'company_chart', }, xAxis: { type: "datetime", }, yAxis: [{ title: { text: "T1", }, },{ title: { text: "T2", }, }, opposite: true, }], plotOptions: {

Highcharts => Getting the id of a point when clicking on a line chart

萝らか妹 提交于 2020-01-20 18:35:30
问题 I am building a line chart and I would like, when I click on a point of the line, to display a popup containing some data about this point. The issue I try to resolve is to get the id, the series associated with this point or something like that. Here is my code : plotOptions: { column: { pointWidth: 20 }, series: { cursor: 'pointer', events: { click: function(event) { requestData(event.point); } } } I tried requestData(this.point) , requestData(this.point.id) also but it doesn't work. How do

Highcharts - Hidden charts don't get re-size properly

旧街凉风 提交于 2020-01-19 05:37:49
问题 I currently have a 3 tabbed page. Each tab is a div that is set to display: hidden when not selected. In these tabs I have a Grid system created with Susy (compass plugin). Also each tab page has a set of Highcharts. When I load the page, depending on which tab is in the URl, one of the tabs is loaded. All of the charts look fine, however when I switch to a different tab, some of the charts are not fitting correctly in their div. If I just re-size the window, the charts are recalculated and

How to get highcharts dates in the x axis?

扶醉桌前 提交于 2020-01-18 11:14:27
问题 Is there a standard way to get dates on the x-axis for Highcharts? Can't find it in their documentation: http://www.highcharts.com/ref/#xAxis--type When my time range is large enough, it shows dates. However, when the time range isn't large enough, it just shows hours, like this: This is less than ideal... if it could show a date and time in this case, that'd be great. Anyone know how? 回答1: Highcharts will automatically try to find the best format for the current zoom-range. This is done if

How to get highcharts dates in the x axis?

雨燕双飞 提交于 2020-01-18 11:10:52
问题 Is there a standard way to get dates on the x-axis for Highcharts? Can't find it in their documentation: http://www.highcharts.com/ref/#xAxis--type When my time range is large enough, it shows dates. However, when the time range isn't large enough, it just shows hours, like this: This is less than ideal... if it could show a date and time in this case, that'd be great. Anyone know how? 回答1: Highcharts will automatically try to find the best format for the current zoom-range. This is done if

How to process a list of complex data structures

醉酒当歌 提交于 2020-01-17 14:01:04
问题 In High Charts i have an array as follows, But if i try to set extremes of the chart by returning the Highest value of the Array, its showing NaN Error. function aoDashboardData() { var data = [ { type: "", data: [{ x: 0.0, low: Date.UTC(2016, 2, 15), high: Date.UTC(2016, 4, 10), color: "#4B0081" }, { x: 0.0, low: Date.UTC(2016, 4, 15), high: Date.UTC(2016, 6, 15), color: "#00BFFE" }, { x: 0.0, low: Date.UTC(2016, 6, 20), high: Date.UTC(2016, 8, 0), color: "#0047AB" }, { x: 0.0, low: Date.UTC

Highcharts: incorrect column placement with linked series?

痞子三分冷 提交于 2020-01-17 12:26:12
问题 I'm trying to set up column chart with variable column widths. Having different column widths in a single series doesn't seem to be possible, so I've set up multiple series for each required width, and linked them. But I've run into a problem, illustrated in the following: http://jsfiddle.net/drmrbrewer/215tnLna/15/ I've set up the data so that there shouldn't be any gaps... and yet there are gaps in the above jsfiddle. Hover over each column to see the time for that column... the right-hand