Highcharts

Highcharts areaspline, not getting the default color for chart

大憨熊 提交于 2019-12-11 07:28:46
问题 I am creating an areaspline highcharts. As I am not setting any color it should default to the default blue. For me its automatically filling with rgba(247, 163, 92, 0.75); . Why is that happening. How can I get the default darker blue on the top border and the default blue inside the areaspline. Here is my code: let series_vals = []; let data_array = []; let val_array = []; for (let i = 0; i <= 15 i++) { series_trend.push("series_trend" + i); data_array.push([]); val_array.push(val); } let

Efficiently detect missing dates in array and inject a null (highcharts and jquery)

ⅰ亾dé卋堺 提交于 2019-12-11 07:28:39
问题 I'm using highcharts.js to visualize data series from a database. There's lots of data series and they can potantially change from the database they are collected from with ajax. I can't guarantee that they are flawless and sometimes they will have blank gaps in the dates, which is a problem. Highcharts simply draws a line through the entire gap to the next available date, and that's bad in my case. The series exists in different resolutions. Hours, Days and Weeks. Meaning that a couple of

Highcharts single row stacked horizontal bar: labels overlap — bar segments too small to read “dataLabels” — (change “distance” of “dataLabels”?)

别等时光非礼了梦想. 提交于 2019-12-11 07:12:12
问题 Problem: overlapping and thus unreadable dataLabels in single row stacked horizontal bar. User aus_lacy has kindly helped me to be able to implement the following code (especially in this answer): HTML <script src="http://code.highcharts.com/highcharts.js"></script> <div id="container" style="width:500px; height: 300px"></div> JS (needs jQuery) $(function(){$('#container').highcharts({chart:{backgroundColor:'gray',type: 'bar'},colors:['white'],credits:{enabled:false},title: {text:'Head and

Activity gauge High Chart with Gradient

白昼怎懂夜的黑 提交于 2019-12-11 07:10:11
问题 I want to use gradient in below chart. Please help me on this concern. Thanks in advance. Link : http://jsfiddle.net/gh/get/jquery/1.9.1/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/gauge-activity/ 回答1: You should be able to use small trick for adding gradient to your angular gauge. You can use yAxis.stops for adding color gradients to your chart: yAxis: { min: 0, max: 100, lineWidth: 0, tickPositions: [], stops: [ [0.1, '#55BF3B'], // green [0.5, '#DDDF0D'], //

how do i redraw only the Highchart with new API that depends on my Select Option Parameter?

喜欢而已 提交于 2019-12-11 06:49:11
问题 im trying to figure out if its possible to redraw the chart based on my parameter that will only call an specific API? here's the look of my chart upon load. https://imgur.com/a/u9jgla7 with the data structure of this using json: [ { "New_Students": "495", "NSYEAR": "2018", "NSterm": "1801", "NStermCat": "1", "NSCareer": null, "NSProgDescr": null, "NSStudent": null }, { "New_Students": "29", "NSYEAR": "2018", "NSterm": "1802", "NStermCat": "2", "NSCareer": null, "NSProgDescr": null,

Plot inside a loop using highcharter

雨燕双飞 提交于 2019-12-11 06:45:14
问题 I am using highcharter for my graphs. I have different courses, which I need to draw same graphs for all. I am trying to have a for loop over courses and plot these graphs inside my loop. The problem that it doesnt plot anything inside the loop and it works fine from outside the loop. for(i in unique(my_data$CourseID)){ courseData<-subset(my_data, my_data$CourseID== i) #Course by Majer byMajer <- table(courseData$MajerName) #barplot(byMajer, main="Students by Majer", xlab="Majers") byM <-

Force Highcharts to show last x-axis label

淺唱寂寞╮ 提交于 2019-12-11 06:44:23
问题 In the following Highcharts graph, I'd like the last label in the x-axis to be 2017 instead of hidden. That way it's crystal what the last year in the chart is. I'm hoping there's a way to accomplish this while keeping the tick interval at 2. In other words, the first label would be 1999, and the last would be 2017. 回答1: Use xAxis.endOnTick - Doc link xAxis: { endOnTick: true, showLastLabel: true // Default is true but just in case }, Fiddle 来源: https://stackoverflow.com/questions/48894017

Error while plotting data in rchart using HighChart

橙三吉。 提交于 2019-12-11 06:40:43
问题 I am reading data from file and plotting data using rchart/highchart but i am getting following Error. sampledata A B C 2 3 0 4 5 0 4 -3 1 -8 5 1 2 -3 2 -2 -5 2 12 3 3 -4 5 3 R Scitpt: require(devtools) install_github(’rCharts’ ,’ramnathv’) sampledata<-read.csv("data.csv",header=TRUE,sep="\t") h1 <- hPlot(x = sampledata[1,], y = sampledata[2,], data = sampledata, type = "scatter", group=sampledata[3,]) Error in .subset2(x, i, exact = exact) : invalid subscript type 'list' How can i plot

HighCharts: Panning in yAxis is happening too slowly

落爺英雄遲暮 提交于 2019-12-11 06:38:54
问题 I made a small code for panning in yAxis, but its a little slow. it becomes faster if I increase the value of tickInterval. But the downside is that with increased tickInterval, the code starts working oddly when I drag the mouse for less than the tickInterval size (try changing tickInterval to 500 in my fiddle and then drag mouse for a minute increment. My link to jsfiddle. Pertinent Code: var mouseY; $(chart.container) .mousedown(function(event) { mouseY=event.offsetY; yData=chart.yAxis[0]

Multiple series in drilldown

妖精的绣舞 提交于 2019-12-11 06:37:39
问题 I am creating a drilldown graph in R and want one of the layers to be a line graph with multiple groups. I have figured out how to create the line graph, but i can't seem to be able to drilldown from a single to a multiple series. If i link two series on the same id (got that idea from what I read on javascript), only the second series will appear. Any idea on how to proceed? Edit * Updated code df <- data_frame( name = c("Animals", "Fruits", "Cars"), y = c(5, 2, 4), drilldown = tolower(name)