Highcharts

Is there a way how to dynamically create a plotline in highchart when the value is lower than previous one?

馋奶兔 提交于 2019-12-12 14:13:44
问题 I would like to ask if any of you already has experience with automatically generated plotline in case that "some condition". I have highchart connected to SQL Server from where I am reading numbers (of resistance) to yAxis and datetime for xAxis. Everything is working properly but I would like to put a plotline every time when the value of resistance is going let's say at least 30% down. So the main question is how to create a condition (in javascript/mssql/php...) which will be comparing

Add dynamic data to line chart from mysql database with highcharts

↘锁芯ラ 提交于 2019-12-12 13:28:56
问题 I want to add data point to my line chart with ajax or json, now i must reload whole webpage to show my new data on chart. But i want to show live data by adding point like these link: jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/stock/demo/dynamic-update/ www.highcharts.com/studies/live-server.htm I was try to retrieve my data from mysql to add on chart by json but nothing happened. This is my code in live-server-data.php : <?php header("Content-type

Can I sychronize two highcharts series with different years (leap year)

橙三吉。 提交于 2019-12-12 13:12:07
问题 The problem is best described in following fiddle : https://jsfiddle.net/bernhard_kern/85s2fm5a/3/. We use two series and two xAxis. xAxis: [{ type: 'datetime', min: new Date('2016/02/22').getTime(), max: new Date('2016/03/05').getTime() }, { type: 'datetime', min: new Date('2015/02/22').getTime(), max: new Date('2015/03/06').getTime() }], I want to compare yearly timseries, which have a different amount of values due to leap year (2016, 29 Feb.). Requirement: Display the equal dates below

highcharts pie chart multiple sections selection

a 夏天 提交于 2019-12-12 12:32:01
问题 I want to select multiple sections in pie chart. And section should be unselected on clicking, if it is already selected. I found an example here. But in this case, only one section can be selected and selected ones get deselected on clicking on any other section. Similarly, I found another example [ $(function () { var chart = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'pie' }, plotOptions: { series: { states: { hover: { enabled: false } }, point: { events: { click:

How to reverse a bar chart in highcharts?

ε祈祈猫儿з 提交于 2019-12-12 12:18:46
问题 Are there some highcharts pros out there? What i want is, that value 6 (lowest score) starts left and on the right there is the highest score (1) so the bars heading to 1 (showing the space to be mark 1) like: |------------------------(1.9) |--------------------(2.3) |----------------------------(1.4) 6..............3................1 http://jsfiddle.net/aCz2s/1/ Any help with that? 回答1: You can set reversed to yAxis too, like you did on xAxis . Like this: xAxis: { reversed: true }, yAxis: {

Highcharts yaxis higher values displayed lower

送分小仙女□ 提交于 2019-12-12 11:31:33
问题 I am looking for a javascript solution to display rankings across time. Being familiar with Highcharts I am wondering if there is a way to display rankings in a "user-friendly way", by which I mean: with the #1 ranking being at the top of the chart , and the last ranking being at the bottom . Does anyone know if this is possible? or of an alternative solution? 回答1: You can reverse the Y axis to achieve this (see ref) yAxis: { title: { text: 'Rank' }, allowDecimals: false, reversed: true, min:

Highcharts - specifying order of stacked time series

柔情痞子 提交于 2019-12-12 11:14:37
问题 Is there a way to specify the stacking order of time series in Highcharts? 回答1: The only way I have found is by ordering the series as they come in. So, if I have series A, B, and C and I want it to be ordered by B, C, A then I add the series in B, C, A order such that series[0] = B, series[1] = C, and series[2] = A. This is definitely a kludge because it would be nice to just sign a stacking index instead of resorting the series import order. 回答2: You could assign an index to your series and

Highchart (Column Chart) : Few data labels are not appearing for a series

☆樱花仙子☆ 提交于 2019-12-12 10:44:43
问题 I am creating a column chart using High Charts -- I am not able to show all the data labels for all the series in the chart. I have two series in a column chart while the first series shows all the data labels the second series do not displays few of the data labels while displaying others. Prompt help will highly be appreciated. Please refer the Fiddle Sample to have hands on. "chart": { "type": "column", "plotShadow": false, "polar": false, "renderTo": "" }, "credits": { "enabled": false },

highcharts - chart names for multiple pie chart series in one chart

ⅰ亾dé卋堺 提交于 2019-12-12 10:39:09
问题 I need to display multiple pie charts that are all related to the same data. As such I want them all to be part of the same chart and implement them as individual series. This all works no problems until I tried to put labels/titles over each individual pie chart. It seems that I can only have a title over the entire group. See jsfiddle Is there any way to have the titles over each chart? See above jsfiddle for example 回答1: I encountered the same problem, and found this solution via

Is it possible to use R Plotly library in R Script Visual of Power BI?

那年仲夏 提交于 2019-12-12 09:45:55
问题 Has anyone tried using Plotly or Highchart in R Script Visual of Power BI, when I try this in R script editor and Run: library(ggplot2) library(plotly) x <- 1:5 y <- c(1, 3, 2, 3, 1) plot_ly(x = dataset$period, y = dataset$mean, name = "spline", line = list(shape = "spline")) Error Message: No image was created. The R code did not result in creation of any visuals. Make sure your R script results in a plot to the R default device. But runs perfectly on my R desktop. Any thought? 回答1: For