Highcharts

Highcharts charts on a page not rendering correctly when output to PDF using wkhtmltopdf

霸气de小男生 提交于 2019-12-22 00:11:52
问题 My wkhtmltopdf PDF output of a page with several Highcharts charts on it is missing some elements of the charts, primarily all of the simple straight lines, including tick marks, grid lines, column borders, legend borders and the lines in my line/spline charts (data points display). I have tried the tricks used to solve this issue from other stack questions, namely setting all of the following on the series: enableMouseTracking: false, shadow: false, animation: false ...as well as setting

Ajax JSON in to Highcharts Pie Chart

余生颓废 提交于 2019-12-21 21:44:03
问题 I have been encountering issues for the past few days with ajaxing in some sample json data from an external file to populate a pie chart using the Highcharts library. Here is my sample JSON data in file: data.json [ ["Apples", 43.0], ["Pears", 57.0] ] Here is my implementation of highcharts and my AJAX call: (I have omitted unrelated code) <script type="text/javascript"> $(function() { var options = { chart: { renderTo: 'Chart', defaultSeriesType: 'pie' }, title: { text:'Fruits' },

asp.net mvc highchart linegraph json

别等时光非礼了梦想. 提交于 2019-12-21 20:56:23
问题 I'm trying to get the line-example at: http://www.highcharts.com/demo/line-basic/grid working with a jsonresult, but can't figure out how to achieve this. The controler code: public JsonResult GetLineData() { Dictionary<string, double[]> retVal = new Dictionary<string, double[]>(); double[] Array1 = {7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6}; retVal.Add("Tokyo", Array1); double[] Array2 = { -0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5 }; retVal

Move the Highstock navigator position

*爱你&永不变心* 提交于 2019-12-21 20:51:17
问题 Is it possible to move the Highstock chart navigator from the bottom of the chart to the top? 回答1: Yes it is possible, please take look at example: http://jsfiddle.net/jBUGN/ navigator: { top:40, }, 回答2: Upgraded answer from Sebastian: http://jsfiddle.net/Fusher/jBUGN/18/ Instead of setting top for xAxis and yAxis, set marginTop: value: var chart = new Highcharts.StockChart({ chart: { renderTo: 'container', marginTop: 140 }, navigator: { top:40, }, rangeSelector: { selected: 1 }, series: [{

How to use Highcharts Drupal 7 module

若如初见. 提交于 2019-12-21 20:19:33
问题 How to use Highcharts Drupal 7 module. I tried using views integration but not settings are available. But i saw an image http://drupal.org/files/views_settings.png like this. In my drupal instalation when i click on settings for Highchart these options are not there. Can anybody help me please. 回答1: This two tutorials may help you.. just follow the exact instructions http://webwash.net/tutorials/intro-visualization-api-part-1-views-and-gva http://webwash.net/tutorials/intro-visualization-api

Highcharter plotBands, plotLines with time series data

走远了吗. 提交于 2019-12-21 20:15:25
问题 What is the correct way to specify values in highcharter library's plotLines and plotBands when plotting time series? With the following code, plot line appears at the left end of chart and band does not appear at all. If I don't specify type = 'stock' even the plot line does not appear. This seems to be a problem with time series data only as with other type of data it works fine. So I believe I may not be specifying the value in correct format. Besides the one in code, I have tried the time

How to customize tooltip in Highchart?

帅比萌擦擦* 提交于 2019-12-21 17:22:16
问题 I want my tooltip to show the range of time according to the x-axis. The image below shows what I want. So if anyone knows how can I do that, please let me know or suggest me. Thank you :) This is my code Highcharts.chart('container', { chart: { type: 'areaspline' }, title: { text: '<b>Power consumption</b>' }, xAxis: { categories: [ '00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00',

How to add image in Highcharts Title and subtitle

做~自己de王妃 提交于 2019-12-21 17:20:17
问题 I'm trying to add images in chart title using Highcharts.The image doesn't show up.There's no script error as well.I doubt whether highcharts support images in title or not.Any help would be appreciated.Thank you in advance. Here's the fiddle for reference: http://jsfiddle.net/LHSey/123/ chart.setTitle({ text: "Testing" + " " + "../images/appendImage.png " }, { text: "This is a test" }); 回答1: You need to set useHTML to true , and insert your image as HTML: chart.setTitle({ useHTML: true, text

Highcharts TypeScript, y-axis label

若如初见. 提交于 2019-12-21 12:26:52
问题 Please refer to discussion Highcharts text labels for y-axis the way to setup y-axis label. I used https://github.com/borisyankov/DefinitelyTyped/blob/master/highcharts/highcharts.d.ts in my TypeScript definition, but I could not find a way to define y-axis formatter. Anybody ever tried before? -- Update -- My origianl JavaScript code is var yearChartOptions = { yAxis: { plotLines: [{ label: { formatter: function () { return '$' + Highcharts.numberFormat(this.value/1000, 0) +'k '; } }, }] },

iterate JSON response with jQuery for Highcharts

心不动则不痛 提交于 2019-12-21 07:03:09
问题 I made a servlet which creates a Map Object: Map<String, Integer> data = new LinkedHashMap<String, Integer>(); fills in data and returns a response in JSON format using google JSON: String json = new Gson().toJson(data); All this works fine when retrieving data and iterating them into a table. But I need it in special format for the Highcharts plugin: series: [{ name: 'Monday', data: [10] }, { name: 'Tuesday', data: [20] }, { name: 'Wednesday', data: [30] }, { name: 'Thursday', data: [40] },