Highcharts

Cannot read property 'info' of undefined

三世轮回 提交于 2020-01-03 04:34:06
问题 I am having an issue where I get the error in the title of this question when I create a chart like the one in this fiddle http://jsfiddle.net/w43m47hL/. I get this problem when selecting a point. this.select(); The problem occurs when performing these steps. create the chart click on a point to select it destroy the chart create the chart again The size of the data set seems to have something to do with the problem. If you change 1500 to 15 you will see that you don't get this problem any

evaluateJavaScript in PyQt - function is not called

非 Y 不嫁゛ 提交于 2020-01-03 04:25:22
问题 I have a problem with PyQt/its Webview. The code that is bothering me should render a chart, but it doesn't. I am using the Highcharts framework and provide the data for the javascript function that renders the chart via Python. I also check whether the webview is ready because that was a previous error of mine. The code in question looks something like this: command = ('loadPinch(' + str(random.sample(range(10000), 1000)) + ', ' + str(['2009', '01', '01']) + ');') self.webview.page()

Highcharts: Stacked Column increase borderWidth on select state

两盒软妹~` 提交于 2020-01-03 03:44:12
问题 http://jsfiddle.net/sgrg93/4d08tj96/3/ plotOptions: { column: { allowPointSelect: true, stacking: 'normal', borderWidth: 8, //This is giving spaces in between which I want to avoid dataLabels: { enabled: true, color: 'white', style: { textShadow: '0 0 3px black' } }, states: { select: { color: null, borderWidth: 8, //border width should increase on select borderColor: 'rgba(0,0,0,0.4)' } } } } In the above fiddle, I have defined the select states for the stacks. There are spaces between the

Highcharts multiple charts on a single page using c# asp.net mvc3

百般思念 提交于 2020-01-03 03:42:05
问题 I was wondering if it was possible to return multiple charts to a single page/view using c#? Background Information C#, ASP.NET MVC3 DotNet.Highcharts Library Goal: My overall goal is to have a webpage with two charts using ASP.NET MVC3 Example HighCharts g1 = new HighCharts("chart"); HighCharts g2 = new HighCharts("chart"); return View(model, g1, g2); This is an example of what I want, but I am not too sure if this is possible. If so how would I accomplish this? If possible how would I

Adding flags to highcharts (not highstock) dynamically

情到浓时终转凉″ 提交于 2020-01-03 02:25:31
问题 I found this jsfiddle and I'd like to implement that after the series had been created. often I let the user update the chart, I do this by sending array of float to the setData function of the series. for example: //Build the area values for (var i = 0; i < area.length; i++) { areaValues.push(parseFloat(area[i])); } chart.series[2].setData(areaValues,false); chart.redraw(); Is there any way to add flags before the redraw without recreating the chart? 回答1: The problem is in your data format -

Highcharts - change font size of text on chart

只愿长相守 提交于 2020-01-03 01:59:25
问题 I have text on a chart like below. I want to change the font size of the text "abc". I tried putting 'font-size':'8px' inside of the css, but it did not work. Does anyone have an idea about this? Here is the fiddle link: http://jsfiddle.net/3hGz2/ 'events': { 'load': function () { var label = this['renderer']['label']('* y='+ slope +'x'+'+('+ intercept + ')<br> R^2='+ rSquare) .css({ 'width': '150px', 'color' : 'grey', 'font-size':'8px' }) .attr({ 'stroke': 'grey', 'stroke-width': 0, 'r': 5,

How to programmatically zoom in highcharts?

*爱你&永不变心* 提交于 2020-01-02 17:36:13
问题 When calling axis.setExtremes() or axis.zoom(), the associated zoom button does not become highlighted. For example, if I programatically 'zoom' to 1-hour, I would like the '1 hour' zoom button to appear as 'pressed'. Is there a simple way to accomplish this? For more context: I want to make my app stately, so that if you view a graph, zoom, then navigate away from the graph and back to it again, I want to restore your 'zoom level'. I have this basically working by listening for

Automatically join missing data gaps in Highcharts JS

∥☆過路亽.° 提交于 2020-01-02 02:19:16
问题 I'm currently looking to implement Highcharts JS into my application, using months as the x-axis categories. However, I have gaps in my data, and wish for the chart to automatically connect the gaps. For example, if I don't have any data for March, I want February and April to connect with a linear line. Using the highcharts demo, I have edited the data to demonstrate what currently happens by default: http://jsfiddle.net/kf26t/1/ data: [7.0, 10.0, null, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18

Highcharts overlapping category labels

放肆的年华 提交于 2020-01-02 02:00:14
问题 I need help with a problem with category labels for xAxis. When there is no room for all the category labels, they get crammed together and overlap each other. I have searched to see if I could find some way to ensure that this does not happen, first I looked for a scrolling solution, then some sort of zooming, and eventually I tried to go for staggerLines. The problem is, if I am to use staggerLines, I need to set the value depending on the number of categories I have. If I have 10 or less,

Number Formatting at Highcharts Chart Values?

别等时光非礼了梦想. 提交于 2020-01-02 00:52:13
问题 I give that values to Highcharts pie chart: series:[ { type:'pie', name:'Ratio', data:[ ['A', 42.6], { name:'B', y:14.2, sliced:true, selected:true } ] } ] However it shows it like that at pie chart: A -> 75.00000000000001 % B-> 25 % You can format tooltips at Highcharts how about chart values? 回答1: We do have tooltip formatter options to display the value as number instead of percentage http://api.highcharts.com/highstock#tooltip.formatter tooltip: { formatter: function() { return '<b>'+