Highcharts

remove quote from array without using JSON_NUMERIC_CHECK

£可爱£侵袭症+ 提交于 2019-12-11 05:58:31
问题 I am trying to plot a scatter plot using highcharts. Javascript code: <script type='text/javascript'> \$(function () { var chart; \$(document).ready(function() { chart = new Highcharts.Chart({ chart: { renderTo: '$div_id', type: 'scatter', zoomType: 'xy', marginRight: 450, marginBottom: 75 }, ... ... series: [{ name: 'name1', data: $data }] }); }); }); </script>"; My php code: $data_array4 = mysql_query("SELECT * from table", $link); $ret1 = array(); while($item = mysql_fetch_array($data

highcharter both nominal and percentage values

試著忘記壹切 提交于 2019-12-11 05:55:21
问题 I've made a pie chart with the highcharter library. library(highcharter) test_data Gender Freq colors 1 Female 29813 #ff99cc 2 Male 38474 #2980b9 hchart(test_data, "pie", hcaes(x = Gender, y = Freq, color=colors)) As the map is interactive, I want to have the pie chart showing both percentage values and nominal values on the same plot . Any ideas how I can do this? 回答1: You need to use a formatter with JS() function of highcharter, in the tooltip options. Moreover Highchart uses the this

highcharts datetime axis, how to comput correct timestamp?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 05:55:13
问题 Let say I want to draw a series where the first point represents the time 11:30 of november 5 2013. I want the time 11:30 to be the same if I look my chart with a browser in a different timezone. Hence I want useUTC=true. Now, how do I compute the value (milliseconds) to give to highcharts? I tried with this python code: >>> import datetime,time >>> t=datetime.datetime(2013,11,5,11,30,00) >>> time.mktime(t.timetuple())*1000 1383647400000.0 But if I plug the value 1383647400000.0 in highcharts

data table to show only category totals

和自甴很熟 提交于 2019-12-11 05:39:14
问题 I'm trying to implement highcharts and i need a html table for my data source. This is my view. When I bind my data table to this view, it shows every row instead of categories, which is millions of documents. I only need category totals to be seen in table. 回答1: I guess you could use a data table but you might be better off with a repeat control. Use SSJS Or Java and a Notes View Navigator. That has methods to skip from 1 category to another. So your not looping over each document. As you

Time format with Highcharts

女生的网名这么多〃 提交于 2019-12-11 05:36:48
问题 I'm using Highcharts to display some charts for my project. But I have some problems to display a Basic Bar charts with only TIME (not the date) on Yaxis. I searched some solutions but I didn't find the good one. Currently, I put data in milliseconds. But it gives me this result : http://s14.postimg.org/z4vissaht/Capture_d_cran_2013_05_31_21_24_01.png As you can see, it says me "Invalid Date" and milliseconds are display but I would like it to be "00:00:00". In the bottom of the chart, time

Highcharts Area chart gradient fill

非 Y 不嫁゛ 提交于 2019-12-11 05:29:26
问题 How can I get chart like this with Highcharts. I can't get gradient fill of chart like this: 回答1: I think that you can use linear gradient in case of your chart. You can find information about this gradient on Highcharts website: http://www.highcharts.com/docs/chart-design-and-style/colors fillColor: { linearGradient: { x1: 0, x2: 0, y1: 0, y2: 1 }, stops: [ [0, Highcharts.getOptions().colors[2]], [0.8, hexToRgba(Highcharts.getOptions().colors[2], 0)] ] } You can use stacking: normal to have

response with status 200: ok

时间秒杀一切 提交于 2019-12-11 05:28:35
问题 I am trying to figure out how to plot data from a local '.JSON' file using angular2-highcharts example. I followed the example in 'https://www.npmjs.com/package/angular2-highcharts' to first understand how to plot .JSON data and it worked. I took the data available for the example and created a local .JSON file (copied the content from 'https://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=JSONP_CALLBACK' in notepad and saved it with UTF-8 encoding as a .JSON file),

date highstock highchart

余生颓废 提交于 2019-12-11 05:25:13
问题 can some one tell me how to read this date : [1113955200000,35.51], this code 1113955200000 gives me Tuesday apr 19 2005 any ideas ?????? what this numbers means and how to convert $(function() { $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl- c.json&callback=?', function(data) { // Create the chart window.chart = new Highcharts.StockChart({ chart : { renderTo : 'container' }, rangeSelector : { selected : 0 }, title : { text : 'TTm' }, series : [{ name : 'AAPL Stock

how to hide column in highchart column type

為{幸葍}努か 提交于 2019-12-11 05:14:00
问题 Here's jsfiddle link! all display chart image link If you turn off legend from the front, the chart disappears normally. chart disappers normally image link However, if you turn off the legend from the middle, the chart will not disappear. chart dont disappear image link How can I make it disappear? here is my chartOptions // Create the chart Highcharts.chart('container', { chart: { type: 'column' }, title: { text: null }, xAxis: { type: 'category', labels: { rotation: -45 }}, yAxis: { title:

Dual axes line vs column and zoom tooltip broke

我只是一个虾纸丫 提交于 2019-12-11 05:08:43
问题 I have a problem when I try to make a dual axes chart and I use Chart 1 = column and Chart 2 = line. The Chart 1 (column) has many nulls, and, over 00:00 each day, one value no zero. The problem cause that, when I make zoom over the chart, and I put the onmouseover to the Chart 1, the tooltip broke it and the chart it's freezed until you make another zoom over other zone. My fiddle: [code] http://jsfiddle.net/revor44/9vbX7/ [/code] It's a quick example. Make zoom, and see the tooltip over