Highcharts

Stacked Column Highchart with Angular6 is not working

时光毁灭记忆、已成空白 提交于 2019-12-11 05:06:55
问题 I am trying to implement the stacked column chart for the first time with angular6 by following the Angular standard example from the link https://www.tutorialspoint.com/angular_highcharts/angular_highcharts_column_stacked.htm But this give me blank container on the web page. Is there anything needs to be added. Below I am attaching my html and ts files for reference. app.module.ts imports: [ ... HighchartsChartModule ], .HTML file <div id="container" style="min-width: 310px; height: 400px;

Format date string into highcharts

丶灬走出姿态 提交于 2019-12-11 04:57:45
问题 I've been trying to insert min and max string dates into my highcharts graph as follows: var formatted_startDate = startDate.replace(/-/g, ","); var formatted_endDate = endDate.replace(/-/g, ","); //Format now is "yyyy,mm,dd" options = { chart: { renderTo: 'container', type: 'bar' }, xAxis: { type: "datetime", dateTimeLabelFormats: { day: '%m-%d' }, tickInterval: 24 * 3600 * 1000, min: Date.UTC(formatted_startDate), max: Date.UTC(formatted_endDate) }, Clearly the above won't work because I'm

Create a highchart graphic using angular.js

邮差的信 提交于 2019-12-11 04:55:32
问题 I've spent the last 4 hours trying to make this thing work. I'm very new with angular.js, jquery, highcharts and all that stuff and I can't find the way to fix this. What I'm trying to do is create a highchart graphic in a div. The json for the graphics came in the right way from the backend, so it isn't necessary to make any change to the json. So, I've done the following: First, in the html: <div ng-controller="ChartController"> <div class="chart-container" id="chartContainer"></div> </div>

Highcharts can not display ajax's return data

房东的猫 提交于 2019-12-11 04:55:22
问题 I want to use ajax get data from database,and use highcharts to display.But now ajax returns data like this: data: [{"employeeCode":12261600,"working":5,"beforeWork":11,"employeeName":"Tom"}, {"employeeCode":12271407,"working":4,"beforeWork":12,"employeeName":"Peter"} {"employeeCode":12272570,"working":5,"beforeWork":12,"employeeName":"Kate"}] When I use highcharts to display this data,my page doesn't show anything,where is wrong? My html code: <!DOCTYPE html> <head> <meta charset="UTF-8">

Butterfly Chart using Highcharts

若如初见. 提交于 2019-12-11 04:49:34
问题 I'm trying to create a butterfly chart using Highcharts. I want to plot it as The Code is as follows // Data gathered from http://populationpyramid.net/germany/2015/ $(function () { // Age categories var categories = ['0-4', '5-9', '10-14', '15-19', '20-24', '25-29', '30-34', '35-39', '40-44', '45-49', '50-54', '55-59', '60-64', '65-69', '70-74', '75-79', '80-84', '85-89', '90-94', '95-99', '100 + ']; $(document).ready(function () { Highcharts.chart('container', { chart: { type: 'bar' },

Highcharts not rendering : React+Typescript+Highcharts

狂风中的少年 提交于 2019-12-11 04:49:27
问题 Trying to bring up a highchart using react. I am having multiple fetch api calls(for illustration, I have added only 2) whose data I will be using to render something in the UI. In this example data1 is used to render a table, data2 is used to render a highchart. I am storing the outputs of these calls in a state object. When I am calling these API's, I am getting the data but unable to set it to "series" property of highcharts for rendering, as a result nothing is getting rendered. Structure

Highstock charts error: this.labelBBox is undefined line 30

我是研究僧i 提交于 2019-12-11 04:45:30
问题 I have a web application, with tons of fully functional Highchart graphs. I am trying to implement Highstock in a graph, but it is giving me a firebug error directly in the Highstock file: this.labelBBox is undefined line 30 of Highstock.js All my libraries are up to date (exactly the same as the demo versions online) I cannot figure out why I am having this error, here is my code: function generateChart10(id, dataChart, currencies){ // create the chart chart = new Highcharts.StockChart({

Detect a click on, and add hover/selected style for x axis on area chart in Highcharts?

不羁的心 提交于 2019-12-11 04:41:52
问题 Example chart: http://www.highcharts.com/demo/area-stacked-percent 1) Can I have a hover style and also perhaps a selected style for the x axis, much like in Highstocks (move the mouse over the chart to see a vertical line on hover): http://www.highcharts.com/stock/demo/area 2) Can I detect a click on this line? 回答1: Can I have a hover style and also perhaps a selected style for the x axis, much like in Highstock Of course, you can. Disable the Hover for series and enable the cross hairs in

Change color of the values in heatmap or remove the values in highcharter R package

旧时模样 提交于 2019-12-11 04:18:38
问题 Below is my dataframe df a b c d 1 0 0 0 0 2 0 0 0 1 3 0 0 0 0 4 0 1 0 0 Here is the code which generated heatmap. It uses the library highcharter in R. hchart(as.matrix(df), "heatmap", hcaes(x = variable, y = name, value = value)) %>% hc_colorAxis(stops = color_stops(2, c("yellow","blue")))%>%hc_size(height = 500) My question is, how can I change color of the values/numbers that are being displayed in the heatmap. OR, how do I remove the values from heatmap? 回答1: You may just change your

How to have data labels on top of the graph?

这一生的挚爱 提交于 2019-12-11 04:16:40
问题 I have here-under a simple example of spline chart with data label enabled : dataLabels: {enabled: true} http://jsfiddle.net/gc8144kv/ I would like to have the data labels on top of the graph instead of on the line. See example here (i just moved the data label with a Paint editor :) ) : Data labels on top of the graph How can I do this ? knowing that the data labels should be responsive when we resize the window Thanks. 回答1: I think that good idea is to move your dataLabels in load and