Highcharts

uploading external csv file to highcharts not working

风流意气都作罢 提交于 2019-12-14 03:58:29
问题 <!DOCTYPE html> <html> <head> <title>Highcharts Data loading using CSV</title> <script type="text/javascript" src="jquery-3.1.0.min.js"></script> <script src="js/highcharts.js"></script> <script src="js/modules/data.js"></script> <script src="js/modules/exporting.js"></script> <script type="text/javascript"> $(function () { $.get('data.csv', function(data) { $('#container').highcharts({ chart: { type: "line" }, title: { text: "Fruit Consumtion" }, xAxis: { title:{ text:"time(in sec)" } },

highcharts piechart redraw with animation after setData()

扶醉桌前 提交于 2019-12-14 03:48:19
问题 I am using a piechart from http://www.highcharts.com/ So i am setting the data like this: var cars = []; cars.push({name: "Keine Daten", y: 100}); piechart.series[0].setData(cars); piechart.setTitle({text: 'test '+year+' am '+daytime}); But the piechart wont show any animation. How do i trigger the animation!? 回答1: If you want animation during the set data, you have to update each point separately. In other words, you can use update() function or addPoint() http://api.highcharts.com

Highcharts: Is it possible to have separate plotOptions for each series?

∥☆過路亽.° 提交于 2019-12-14 03:46:02
问题 I want to have two scatter series on my chart. One with a linewidth of 1 and the other with no lineWidth. As I understand, the plotOptions applies to all charts of the specified type, so either all the scatter plots have a linewidth or nothing. Is it possible to apply a plotOptions to specific series? 回答1: In addition to the members listed below, any member of the plotOptions for that specific type of plot can be added to a series individually. For example, even though a general lineWidth is

Can't get PHP variables in the JS script when setting Highcharts head tag [closed]

主宰稳场 提交于 2019-12-14 03:37:59
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . Below is an extract of my php file ( recherche.php ) which contains Html and Javascript ( JQuery Highcharts ) codes and run a MySQL query. But, I can't

How do you run two different functions in javascript

戏子无情 提交于 2019-12-14 03:30:03
问题 I have two different javascript functions as below. When I call these functions, until the function completes executing, I am showing loading image. The problem I am having is that when first function completes, it should load the chart and the second function runs and load the chart. That's not what's happening. Both charts load when both function completes. I need each function to run and load the chart when each complete not both at the same time. Here is the functions: <script> function

How to get the exported image without moving from the current window when using mobile devices

99封情书 提交于 2019-12-14 03:20:03
问题 I'm using Highcharts to draw data as diverse graphs. As you already know, if I add the exporting.js file in the HTML document, then it will display a small button on your top-right area within Highcharts' canvas The current problem happens when I use a smartphone. When I try to export the current graph, the current browser window is closed. I can download the file, but the previous window is gone. How can I modify Highcharts? I want to open the new window when I click one of the export

adding element with array_push() with looping to create json data

吃可爱长大的小学妹 提交于 2019-12-14 03:16:00
问题 I want to create JSON data which looks like this [{"name":"AS","data":["150","250","300"]},{"name":"JS","data":["175","180","210"]},{"name":"MS","data":["100","75","200"]}] and here is the script that I have created $c = mysql_query("SELECT distinct nama FROM tcoba ORDER BY nama ASC"); while($ca = mysql_fetch_array($c)) { $cb[] = $ca['nama']; } $cc = array(); $cc = count($cb); if(count($cb) > 1) { for($i=0;$i<$cc;$i++) { $b = mysql_query("SELECT distinct nama, jumlah FROM tcoba WHERE nama = '

No output while reading json file in Highcharts

拈花ヽ惹草 提交于 2019-12-14 03:12:37
问题 I am reading a json file http://www.megafileupload.com/dq4u/data.json <html> <head> <script type='text/javascript' src='http://code.jquery.com/jquery-1.9.1.js'></script> <script src="http://code.highcharts.com/stock/highstock.js"></script> <script src="http://code.highcharts.com/stock/highchart.js"></script> <script> $(document).ready(function() { var options = { chart: { renderTo: 'container', type: 'heatmap' }, title: { text: 'pairwise LD' }, xAxis: { categories: ['A', 'B', 'C', 'D', 'E',

change bar colors dynamically - highcharts

爷,独闯天下 提交于 2019-12-14 03:05:54
问题 I'm a R programmer trying to parse some JS code though highcharter package. I'm trying to change each bar color on hover with this example based on this question. I've tried this: plotOptions: { column: { events: { mouseOver: function () { this.chart.series[this.index].update({ color: 'blue' }); }, mouseOut: function () { this.chart.series[this.index].update({ color: '#b0b0b0' }); } }; states: { hover: { color: colors[x] } } } } However I can only highlight with the 'blue' color. How can I

using highcharts in android

∥☆過路亽.° 提交于 2019-12-14 02:57:38
问题 I m trying to run my html and js code in android studio.but i failed.Can anyon1 tell me what shold i do : I took an example of html and js from highchart site.I save my html and js file as demo.html in raw folder in res. My java code is : @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_activitytml); WebView wv=(WebView) findViewById(R.id.webview); wv.setWebChromeClient(new WebChromeClient()); wv