column-chart

Highcharts grouped bar charts with multiple axes

萝らか妹 提交于 2019-12-12 23:23:40
问题 I was unsatisfied with the answer here: Multiple y-axes for column graph categories in highcharts I understand that you can create multiple y-axes can select them using yAxis:0,1,2 etc. for each series. Is it possible to do this for groups of bar graphs? In the following example, I want 3 groups (Count A, Count B, Percent) each with 4 people (John, Joe, Jane, Janet). How do I do that in addition to having the count groups on one axes and the percent group on the other? $('#container')

How to show tooltip data below each column in Highchart?

我的梦境 提交于 2019-12-12 07:05:20
问题 The tooltip data in highchart is visible when i hover my mouse over it, the tooltip has some data that i want to show for example below the column where the x label is, for now it shows 0,1,2 and so on. I am using the chart to compare timeperiods, so under each column i want to add data from the tooltip. It could be 2 dates I compare below each column, a picture would be helpful for you but i am not a trusted stackoverflow user yet. 回答1: An example using a datetime xAxis type : Fiddle: http:/

Highcharts columns are thin when 10+ series displayed

蓝咒 提交于 2019-12-12 05:39:39
问题 I faced an issue very similar to this one, but with categorized axis. The problem is that if I add too many series on the plot (more than 10 series) the columns become too thin and almost invisible even though there is enough place for them. Here is how the chart looks like when I have 12 series(11 for bars + 1 for line): The same behaviour appears when I have 11 or 10 series, but when I reduce number of series to 9 (8 for bars + 1 for line) the chart looks absolutely normal: However when I

Legends not matching columns ticks on xAxis in Highcharts

有些话、适合烂在心里 提交于 2019-12-11 19:05:53
问题 I am trying to create a column chart on Highcharts but I am facing some errors. Why are my columns starting so far from the start of the chart? I want the xAxis labels to match the legends. But I can only see that the first legend is being displayed in the middle of the chart HTML: <script src="https://code.highcharts.com/highcharts.js"></script> <div id="container" style="min-width: 600px"></div> JSON: let yo = [ { "hp": "Harry Potter", "hp_num": 1426 }, { "hp": "Ronald Weasley", "hp_num":

Create HighCharts-Column type from JSON

烈酒焚心 提交于 2019-12-04 02:40:09
问题 I am trying to create a column type highchart using data from json in the following format: [{"id":7,"dateV":"2015-11-16","count":10},{"id":6,"dateV":"2015-11-15","count":3},{"id":5,"dateV":"2015-11-14","count":15},{"id":4,"dateV":"2015-11-13","count":10},{"id":3,"dateV":"2015-11-12","count":6},{"id":2,"dateV":"2015-11-11","count":8},{"id":1,"dateV":"2015-11-10","count":5}] X axis should show the date values and the Y axis should show the count. Somehow i am not able to transform this JSON in

How can I add different colors to bar in Column chart

喜欢而已 提交于 2019-12-01 20:10:48
How can i add different colors to Bars in Column chart. Adding colors field in option is not working. Please help. Below is the code snippet: tdata.addRow([col1, arr[0].Manual]) tdata.addRow([col2, arr[0].Auto]); tdata.addRow([col3, arr[0].Amount]); options = { fontSize: 12, height: 430, width: 380, chartArea: { left: "25%", top: "20%", right: "5%", bottom: "10%" }, backgroundColor: '#f5f5f5', title: 'Project', pieSliceText: 'value', colors: ['red', 'green', 'blue'], 'is3D': true }; var chart = new google.visualization.ColumnChart(document.getElementById('drilldown_div')); chart.draw(tdata,

Create HighCharts-Column type from JSON

断了今生、忘了曾经 提交于 2019-12-01 14:32:49
I am trying to create a column type highchart using data from json in the following format: [{"id":7,"dateV":"2015-11-16","count":10},{"id":6,"dateV":"2015-11-15","count":3},{"id":5,"dateV":"2015-11-14","count":15},{"id":4,"dateV":"2015-11-13","count":10},{"id":3,"dateV":"2015-11-12","count":6},{"id":2,"dateV":"2015-11-11","count":8},{"id":1,"dateV":"2015-11-10","count":5}] X axis should show the date values and the Y axis should show the count. Somehow i am not able to transform this JSON in the format required. Here is my code. <script type="text/javascript"> $('#myButton').click(function()