Highcharts

jquery datatable to highcharts

こ雲淡風輕ζ 提交于 2019-12-25 08:55:03
问题 "Hi everyone. I was wondering how I could pass, dynamically, jquery datatable values to highcharts from the code below. Variables like xAxis and the 2 yAxis". I do have more than 3 columns I should say, but not included here. mySql feed data to php who returns value as json format for datatable. Surely Highcharts can use this info without calling mysql again. <thead> <tr> <th>Date</th> <th>Generated kW</th> <th>Efficiency %</th> </tr> </thead> <script type="text/javascript"> $(document).ready

How to add extra tears(ticks) in highcharts?

こ雲淡風輕ζ 提交于 2019-12-25 08:48:37
问题 HIGH CHARTS In addition to this question, I would like to ask another question here in this thread. How to add extra tears(ticks), in such a way, the green bar dataLabel, does stay inside plotting area, rather, going out of plotting area or made hidden. JSFIDDLE 回答1: There are lots of ways to do this. But quickest one is adding a max value to yAxis with using yAxis.max. yAxis: { allowDecimals: false, max: 6000 }, Here is the working example: jsFiddle . OR You can use the combination of yAxis

How to set options?

て烟熏妆下的殇ゞ 提交于 2019-12-25 08:29:59
问题 After angular2 updated, they don't import Highcharts from angular2-highcharts anymore. How can I set options? Plunker I want to add Highcharts.setOptions({ lang: { thousandsSep: ',' } }); Thanks 回答1: import { Component } from '@angular/core'; declare var require: any; const Highcharts = require('highcharts'); Highcharts.setOptions({ lang: { thousandsSep: ',' } }); export class AppComponent { ... 回答2: Just add it to the literal inside the constructor: (inside app/main.ts) in the plunker. class

Highcharts not responsive for all series in chart

对着背影说爱祢 提交于 2019-12-25 08:28:52
问题 I am creating a responsive chart that includes a text box to the right of the chart area. The text is updated when I hover over data on the chart. The text box is responsive, and works fine on a smaller screen when hovering over the first data set. However, it does not work when hovering over the 2nd and 3rd data sets. See fiddle: http://jsfiddle.net/b0u10ndw/ Here is the code for the responsive section: responsive: { rules: [{ condition: { maxWidth: 500 }, chartOptions: { legend: { align:

Highchart Download Multiple graph on individual page

烂漫一生 提交于 2019-12-25 08:15:57
问题 In highchart Export,currently i am downloading multiple graphs in single page pdf,but i want first graph on first page and second graph on second page(talking about pdf). code is available in below jsfiddle link Click here for jsfiddle 回答1: Here is your relevant answer, you just need to implement in your angular code. Note : it will not run directly here, so you will have to follow the link because jquery should be rander on document load, implement it like that . So, follow this link :

Highcharts: How to add a table of values with scrollbar?

走远了吗. 提交于 2019-12-25 08:13:57
问题 This is one of my failed attempts: http://jsfiddle.net/mm484L57/ Highcharts.drawTable = function() { // user options var tableTop = 310, colWidth = 100, tableLeft = 20, rowHeight = 20, cellPadding = 2.5, valueDecimals = 1, valueSuffix = ' °C'; // internal variables var chart = this, series = chart.series, renderer = chart.renderer, cellLeft = tableLeft; // draw category labels $.each(chart.xAxis[0].categories, function(i, name) { renderer.text( name, cellLeft + cellPadding, tableTop + (i + 2)

Highcharts linearGradient fill with fixed upper bound

时光总嘲笑我的痴心妄想 提交于 2019-12-25 08:09:33
问题 I'm looking to achieve an effect similar to that in this example. However, the above example uses a gradient that is relative to the visible plot. So the 0 stop color is used at the peak of the visible plot (whatever the actual value of the peak), and the 1 stop color is used at the base. Say I have data that can range from 0 to 100 (e.g. a percentage). I want to be able to specify that "dark" is always used for a value of 100, while "light" is always used for a value of 0. So, if my visible

Highcharts - Export Multiple Charts to Multi Page PDF File

霸气de小男生 提交于 2019-12-25 08:03:32
问题 We are using Highcharts for our charting application. We are displaying 16 bar charts on a webpage. We need to provide exporting feature (a button) through which all charts on the page get exported to a PDF file. We have implemented it using the hack suggested on the Highcharts website. http://www.highcharts.com/docs/getting-started/frequently-asked-questions#export-multiplesamples/highcharts/exporting/multiple-charts/. However,when we export it, all 16 charts are coming on a single page in

Highcharts bar chart breaks when in external js

瘦欲@ 提交于 2019-12-25 07:57:49
问题 I'm having a little trouble with Highcharts. I have a graph set up with a default stacked bar layout. It looks fine. The code is in an html file. I then put the same code, no modifications, into an external .js file, and the second result is what I get. I'm totally stumped, I have no idea why this is happening. Any ideas? The js file has a bunch of other code, but I don't think it should conflict with the graph generation... Thanks. Working Graph: http://i.stack.imgur.com/51QTV.png Broken

Load highcharts data with laravel and ajax

ぃ、小莉子 提交于 2019-12-25 07:49:17
问题 i have this issue for loading data for a highcharts chart. From the response of my controller i get the following data: [['Doctorado', 91.86],['Maestría', 6.98],['Licenciatura', 1.16]] And the call of the ajax is working fine, however, the chart is not displaying. EDIT: I got it almost working, however there is something strange. The whole code with ajax is: <script type="text/javascript"> function handleData( responseData ) { // do what you want with the data console.log('Inside handle data