Highcharts

Opening a Column chart after clinking on DRILLEDOWN PIE Charts in dotnet highcharts

六月ゝ 毕业季﹏ 提交于 2019-12-25 01:46:25
问题 I am using Highsoft.Web.Mvc.Charts .I have a PIE chart and its drilled down NOW I want to open a column chart after clicking on any point of drilled down pie chart. My code in view is <script src="https://code.highcharts.com/highcharts.js"></script> <script src="https://code.highcharts.com/modules/exporting.js"></script> <script src="https://code.highcharts.com/modules/drilldown.js"></script> @using Highsoft.Web.Mvc.Charts @{ Highcharts chart2 = new Highcharts { Title = new Title { Text =

Put highchart on the very start of the graphic

筅森魡賤 提交于 2019-12-25 01:45:13
问题 I am using highcharts to make some graphics. There are 3 graphics inside the same highchart, but my problem is that the highchart start with some padding at the left, like this: I want it to look like this: (Edited with photoshop) Help please 回答1: That question has been asked several times (I don't remember link), but in general don't use categorized xAxis, but use standard linear with specific label formatter, for example: http://jsfiddle.net/3bQne/266/ var categories = ['01/02/2012','01/03

Is there a way to enter Highchart series data without eval?

岁酱吖の 提交于 2019-12-25 01:44:46
问题 I have been working on getting data into a highchart graph with much difficulty. Eventually I had to go with using eval(data). Is there a better way to do this? JSFiddle Example $(function () { var test = "[[Date.UTC(2013, 4, 08), 45.95],[Date.UTC(2013, 5, 28), 19.95]]"; $('#container').highcharts({ chart: { }, xAxis: { type: 'datetime' }, series: [{ data: eval(test) }] }); }); UPDATE 1 My actual objective is to pass a JSON object into a function (as shown below) then get the required strings

HighCharts: strange error from creation of stock chart

核能气质少年 提交于 2019-12-25 01:38:33
问题 I'm trying to create a simple Stock Chart, like this but it throws this error in console: Uncaught TypeError: Cannot read property 'width' of undefined Tick.getLabelSideshighstock.src.js:5338 Tick.handleOverflowhighstock.src.js:5360 Tick.renderhighstock.src.js:5573 (anonymous function)highstock.src.js:7491 eachhighstock.src.js:1021 Axis.renderhighstock.src.js:7473 Chart.render.chart.seriesGroup.renderer.g.attr.zIndexhighstock.src.js:10529 eachhighstock.src.js:1021 Chart.renderhighstock.src.js

Highcharts Options not working

北战南征 提交于 2019-12-25 00:53:07
问题 So, I have got this code, and when the cell value is NaN (Not a number), it is showed with the black colour, not with this one, and the tooltip with all the decimals. What am I missing? plotOptions: { heatmap: { nullColor: '#3bd268', tooltip: { valueDecimals: 2, }, }, } http://jsfiddle.net/548DQ/ 回答1: You can return the tooltip down to say 2 decimal points as such: tooltip: { formatter: function () { return '<b>' + this.series.xAxis.categories[this.point.x] + '</b> sold <br><b>' + this.point

Highcharts-vue - Calling my own tooltip label formatter function

孤人 提交于 2019-12-25 00:42:50
问题 I have been trying to call my own function for formatting the x and y axis values in a tooltip in Highcharts vue. Consider the following; data() { return { currencySymbol: "$", }; }, computed: { chartOptions() { var symbol = this.currencySymbol; return { chart: { type: "spline" }, title: { text: "Sin chart" }, yAxis: { gridLineDashStyle: "Dot", labels: { style: { color: "#000" }, formatter: label => { return ( symbol + Highcharts.Axis.prototype.defaultLabelFormatter.call(label) ); } } },

How to make combination in drilldown in highcharts / add outliers in boxplot in drilldown?

故事扮演 提交于 2019-12-25 00:35:55
问题 I asked one question recently, but this is a new, relevant yet total different one. I would like to add outliers in boxplot which is in drilldown. I am able to do that in primary plot, in a combination way that boxplot is in one series while outliers are in another series as 'scatter'. As in follows: series : [ {type : 'boxplot' , ...} , {type : 'scatter' ,...} ] But as now my boxplot is in drilldown, whose series denotes different drilldowns/figures, I can not add outliers in boxplot. As in

Highcharts: Is it possible to show Sunburst chart series data labels outside the leaf level nodes with connectors?

可紊 提交于 2019-12-25 00:15:02
问题 Currently, it is observed that all series data labels when shown, overlap or only the show/hide behaviour of data labels can be achieved through the formatter function. Its observed that connectors for series data labels of leaf level nodes or the position of series data labels outside are not configurable. Refer the following JS Fiddle: http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/demo/sunburst dataLabels: { format: '{point.name}', filter: {

Hide highcharts series name on the chart

对着背影说爱祢 提交于 2019-12-24 23:59:48
问题 I am messing around with highcharts for a company project and I have the name/number from calculations (totals) being displayed int he legend. The problem is they also display on the graph. I can't for the life of me figure out how to turn them off on the chart, yet leave them on in the legend. I've read through the API and maybe I missed it but could use some help if you all don't mind. Code: Highcharts.chart('high_charts_admin', { title: { text: 'Adset ID: '+results[1].data[0].adset_id, },

Border on selected series in Stacked Bar charts + High Charts

[亡魂溺海] 提交于 2019-12-24 23:34:30
问题 I am using High charts for rendering Stacked Bar charts. How to get the border on a Stacked Bar Chart when the user clicks on a particular series?? I tried marker option but that is selecting only one series, but I want the complete series to be selected. Currently I am getting like this:- But, I want like this:- 回答1: You can use renderer to add such rect in the background: http://jsfiddle.net/3Utat/25/ mouseOver: function () { var chart = this.series.chart, r = chart.renderer, shape = this