Highcharts

Add Flag based on button event

China☆狼群 提交于 2019-12-11 12:39:28
问题 series: [{ type: 'flags', name: 'Flags on axis', data: [{ x: Date.UTC(2011, 2, 1), title: 'A' }, { x: Date.UTC(2011, 5, 1), title: 'C' }], shape: 'squarepin' }] $("#btnAddFlag").click(function () { chart.series[0].setData( { x: Date.UTC(2011, 2, 1), title: 'B' }); }); Above code is part of highstock chart option and I want to add flag based on user event click. However I able to add the new point flag into the chart but the existing flags which title A and C will be missed out. how can I add

Trouble getting unique tooltip based on X axis values in highcharts line graph

别来无恙 提交于 2019-12-11 12:29:12
问题 I'm trying to make a graph in which points having different x axis values have different tooltip .The 1st two points of a series have the same tooltip even though their x axis values are different.i.e points under the month of jan should have "11st comment" tooltip,points under Feb should have "22nd comment" tooltip so on and so forth even if their x axis values are same but not y axis values.. The current computational logic is that the tooltip depends upon the y axis values.As long as y

Highcharts pie chart slice colour intensity using colorValue

我只是一个虾纸丫 提交于 2019-12-11 12:27:03
问题 I am trying to achieve the same thing as seen here: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/treemap-coloraxis Except with a pie chart instead. I have it set up like so: $('#expenditurePie').highcharts({ chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false, backgroundColor: '#121212', height: 322, className: 'summary-chart-right' }, title: null, tooltip: { pointFormat: '{series.name}: <b>{point

Converting double?[ ] to object[ ] in c#

♀尐吖头ヾ 提交于 2019-12-11 12:08:42
问题 I am using DotNet.Highcharts in my C# program. The data element for series items requires an object[] . The data I’m using is coming from a LINQ method as shown below. The code below also converts the double?[] to a List<object> then to the desired object[] . double?[] data = (from c in context.CTSeries select c.CTDI).Take(1000).ToArray(); List<object> dataList = new List<object>(); foreach (double? ctdi in data) { dataList.Add( Convert.ChangeType(ctdi, typeof(Object))); } object[] dataArray

timeline yAxis format with minutes:seconds only

流过昼夜 提交于 2019-12-11 12:07:45
问题 I want to chart (line) a swimmer competition times over several meets. For the series data I use the php code : $datetime1=date('Y, m, d', strtotime($performances['PERF_DATE']."-1 month")); $datetime2='Date.UTC('.$datetime1.')'; $chrono=strtotime($performances['PERF_DATE']); $data[] = "[$datetime2, $chrono]"; The xAxis timeline is for swim meet dates : xAxis: { type: 'datetime', dateTimeLabelFormats: { day: '%d/%m/%Y'} The yAxis timeline is for the race times : yAxis: { title : { text :

How to fix “Property 'type' is missing in type but required in type 'SeriesXrangeOptions'” in angular highcharts module

那年仲夏 提交于 2019-12-11 11:59:13
问题 I am trying to display a price chart view of selected cryptocurrency in cryptocurrencies list view but I am getting type mismatch error. I have used angular-highcharts module in my application and imported Chart library from that module . import { Chart } from 'angular-highcharts'; series: [{ name: 'Price', data: [{ id: this.comparearray[0].symbol, name: this.comparearray[0].name, y: this.comparearray[0].quotes.USD.price }] }, { name: "Volume_24h", data: [{ id: this.comparearray[0].symbol,

rCharts with shiny, no rescaling of bars after hide/unhide with Highcharts

空扰寡人 提交于 2019-12-11 11:54:43
问题 I have a simple shiny application (consisting of two files, server.r and ui.r) which uses the rCharts package with Highcharts. It runs pretty good, but if I choose to make all the bars disappear and then to display them again, they won't rescale. Here is the code, which is based on a simple example provided on rCharts' GitHub: ui.r require(rCharts) options(RCHART_LIB = 'highcharts') shinyUI(pageWithSidebar( headerPanel("App title"), sidebarPanel( helpText('A simple text.') ), mainPanel

How to aggregate boolean values in elastic search?

时光怂恿深爱的人放手 提交于 2019-12-11 11:41:30
问题 I am having several experiments a day storing the error of the experiment and a boolean value (if the result is ok) in elasticsearch. Now, I would like to display the results in a graph (using highchart js). I use an aggregation query like this to receive the aggregated errors for each day including the standard deviation: query: { filtered: { filter: { range : { date: { "gte":"2015-1-1", "lte": "2016-1-1, "time_zone": "+1:00" } } } } }, // Aggregate on the results aggs: { group_by_date: {

Highcharts vertical stacked bar chart with negative values, is it possible?

狂风中的少年 提交于 2019-12-11 11:33:11
问题 Is it at all possible to be able to have a vertically stacked bar chart with negative values (using highcharts). Like this: http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/column-stacked/ series: [{ name: 'John', data: [5, -3, 4, 7, 2] }, { name: 'Jane', data: [2, 2, -31, 2, 1] }, { name: 'Joe', data: [3, 4, 4, 2, 5] }] Unfortunately negative values don't register. This seems to be a solution: http://jsfiddle.net/gh/get/jquery/1.9

Highchart graph customization not performing well

懵懂的女人 提交于 2019-12-11 11:17:00
问题 I am using high chart graph to display data in this graph by current month.I want to display four weeks of the month in x-axis and want to show data for the whole month.I am giving my working js fiddle : **http://jsfiddle.net/Rw69Y/2/** Everything is working fine except I just want to show four monday of this month. i.e (2014-04-07,2014-04-14,2014-04-21,2014-04-28).Any idea about it?I am stuck on there.... 回答1: just set tickInterval please see this fiddle- **http://jsfiddle.net/Rw69Y/21/**