highcharts-ng

put different names to each bar in Highcharts

痞子三分冷 提交于 2019-12-11 14:12:38
问题 How I can rename each bar, I want to have different names. always it appears "bar1", "bar2", etc. this is the name of the series. but I want it to appear in place of those texts, others I want to customize. this is what I do. put different names, if there are 9 bars I want to put different names to the bars, bar1, bar2, bar3, Bar4, Bar5, Bar6, Bar7, Bar8, Bar9. I do not want to repeat in my example. series: [{ name: 'bar1', data: [1000, 950, 920, 0, 850], color: "#FF0000" }, { name: 'bar2',

Grouping a stacked bar chart in Highcharts

左心房为你撑大大i 提交于 2019-12-09 13:24:58
问题 I have a situation that I need to group certain bars/columns into logical grouping for a business need. I do not care if it is a stacked bar or a stacked column but I need to group certain stacks together. The individual stacks still need to be labeled. Highcharts is my current target but if this is not achievable i will entertain the idea of another library. I'd be very interested in a interactive example via plunker, jsfiddle, ect so i can confirm quickly the idea you are presenting or ask

dynamic highchart config in angular ui grid with angular js using pablojim's highcharts ng

蓝咒 提交于 2019-12-08 05:08:13
问题 my code (on the controller) to create an angular ui-grid - function getData() { $scope.myData = []; $scope.columnDefs = []; $scope.gridOptions = { data: 'myData', useExternalSorting: true, columnDefs: 'columnDefs', }; valuesService.getValues().success(function (data) { $scope.columnDefs = getColumnDefs(data.DataColumns); $scope.myData = data.Data; if (!$scope.$$phase) $scope.$apply(); }).error(function (error) { $scope.status = 'Unable to load customer data: ' + error.message; }); } function

Highcharts spans beyond bootstrap column width when implemented as an angular directive

夙愿已清 提交于 2019-12-06 04:43:20
问题 I have implemented an angular directive for highcharts as follows according to this highcharts blog post: angular.module('highCharts') .directive('ngChart', function () { return { restrict: 'E', template: '<div></div>', scope: { options: '=' }, link: function (scope, element) { var chart = new Highcharts.chart(element[0], scope.options); $(window).resize(function () { chart.reflow(); }); } } }) I am using this directive as follows inside following html <div class="container"> <div class="row"

AngularJS for Highcharts with dynamic ajax data

安稳与你 提交于 2019-12-05 02:16:52
问题 I'm learning Javascript and AngularJS by integrating two examples: Spring MVC and AngularJS and AngularJS and Highcharts. This seemingly simple task has puzzled me for a few days: In the Spring REST-powered backend, I added the class Book with a property "prices", an array of doubles to represent the monthly or yearly prices of the book. The AngularJS client shows the "prices" by adding the following code to html: <div style="height:300px;width:250px;overflow:auto;float:left;"> <table class=

Getting Highcharts tooltip to return an angular directive?

不想你离开。 提交于 2019-12-04 17:37:49
We are trying to create some complex tooltips for our Highcharts graph, that will be showing some dynamic data thats in the app but not displayed by the graph, so I figured the best bet was to create an angular directive for all the formatting and such, and then enable the useHTML : true attribute of highcharts along with a custom formatter function. The $compile() doesn't throw an error.. However when this code runs, the tooltip just shows Object.object as the text, and not the content of the directive's template. Am I missing something, or is this not going to be possible? Below is an

Highcharts-ng Size does fill div until Inspect Element

☆樱花仙子☆ 提交于 2019-12-02 05:55:33
问题 I am adding highcharts to my Angular-Firebase app using Highcharts-NG and the highchart is not assuming the size of the div. However, when I got to inspect the element so I can custom size the chart it magically assumes the div size. I've done a search and have tried some of the fixes I have found but none work. Is this a known issue? How do I get it to size properly without inspect element? I have a youtube video of the problem here: LINK <div ng-show="overviewOn"> <div class="col-md-12 text

How to fix hidden dataLabel in highcharts?

我只是一个虾纸丫 提交于 2019-12-02 02:51:38
Please take a look at JSFIDDLE . Here, the green bar doesn't display any value. I know adding overflow:"none", crop:false will display the value. But it goes out of plotting area, sometimes for larger numbers it overlaps title. I would like to get green bar value (ONLY) inside the bar instead of hiding the value. For particular column (i.e green column) label value to be inside, you can add attribute inside: true in data .Refer dataLabels.inside for more info series: [{ color: colors[0], showInLegend: false, data: [{ ....//first value , { y: 3500, name: 'Second', color: colors[1], dataLabels:

How to fix hidden dataLabel in highcharts?

岁酱吖の 提交于 2019-12-02 02:42:56
问题 Please take a look at JSFIDDLE. Here, the green bar doesn't display any value. I know adding overflow:"none", crop:false will display the value. But it goes out of plotting area, sometimes for larger numbers it overlaps title. I would like to get green bar value (ONLY) inside the bar instead of hiding the value. 回答1: For particular column (i.e green column) label value to be inside, you can add attribute inside: true in data .Refer dataLabels.inside for more info series: [{ color: colors[0],

Highcharts-ng Size does fill div until Inspect Element

十年热恋 提交于 2019-12-02 00:46:38
I am adding highcharts to my Angular-Firebase app using Highcharts-NG and the highchart is not assuming the size of the div. However, when I got to inspect the element so I can custom size the chart it magically assumes the div size. I've done a search and have tried some of the fixes I have found but none work. Is this a known issue? How do I get it to size properly without inspect element? I have a youtube video of the problem here: LINK <div ng-show="overviewOn"> <div class="col-md-12 text-center"> <table class="table table-bordered"> <thead> <th>Total Score</th> <th>Strokes Gained Putting<