bar-chart

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

Don't Display the Axis line in bar chart using core plot

痴心易碎 提交于 2019-12-12 05:39:02
问题 i dont want show Axis line in bar graph view. i want to show only the bar plot how can i remove that Axis line? that is whenever i run the application its showing XY Axis but where i can remove for wont display that Axis line. i cant add image so i added code here see my code here: - (void)generateData { NSMutableDictionary *dataTemp = [[NSMutableDictionary alloc] init]; //Array containing all the dates that will be displayed on the X axis dates = [NSArray arrayWithObjects:@"A", @"B", @"C", @

Plotly.js - Reversing the horizontal bar chart in plotly

不想你离开。 提交于 2019-12-12 05:33:26
问题 I am new to plotly and am working of a bar chart example. What I want to do is have the bar chart run from right to left. Here is a link to my jsfiddle. https://jsfiddle.net/ksaluja/w0cx3sw1/1/ Currently it is going the default way from right to left. Thanks! index.html <div id="tester" style="width:600px;height:250px;"></div> scripts.js var data = [{ type: 'bar', x: [20, 14, 23], y: ['giraffes', 'orangutans', 'monkeys'], orientation: 'h' }]; Plotly.newPlot('tester', data); 回答1: You need to

how to display values on chart graph using c#

偶尔善良 提交于 2019-12-12 05:29:27
问题 I need to display points values in chart graph when I tried the result was But I want it like My code is SqlCommand territorycommand = new SqlCommand("select Terriotry,TotalAcheivmentVol,Forecast from ForecastTotal where Year = '" + DateTime.Now.Year.ToString() + "' and Terriotry = '" + territory + "' and month = '"+Month+"'", conn); try { conn.Open(); mydatareader = territorycommand.ExecuteReader(); while (mydatareader.Read()) { chart1.Series["TotalAchievment"].Points.AddXY(mydatareader

Year over year matplotlib with legend

柔情痞子 提交于 2019-12-12 05:19:37
问题 I'm trying to mimic this graph from Excel in python and matplotlib. The dataframe (by_year) looks below with a multiindex of EDIT - Changed table to reflect that the rows are different Month 1 2 3 4 5 6 7 8 9 10 11 12 Year 2012 8 6 8 9 1 2 8 9 4 3 2 6 2013 5 6 2 9 6 2 8 9 4 3 2 6 2014 7 6 3 9 4 2 8 9 4 3 2 6 # create multiple plots on the page (i'm going to print this rather # than display live ax1 = plt.subplot2grid((3, 2), (0,0), colspan=2) ax2 = plt.subplot2grid((3, 2), (1,0)) # loop

how to change the constant barwidth in JQuery flot bar char to variable barwidth

≡放荡痞女 提交于 2019-12-12 05:12:39
问题 I am plotting a dynamic barchart using flot. I have managed to plot with constant barwidth. Now I want the barwidth to vary based on the output of my analysis. I set var options = { series: { bars:{show:true, barWidth: BarWidth, fillColor: "lightgreen", fill: true } In this code, BarWidth is a javascript variable. My bar starts to plot and gets overlapped when my BarWidth changes. Does anyone has any clue how I can solve my problem? Thank you in advance! @DNS This is my plot function function

How can I generate paginated bar chart in jasper report

拟墨画扇 提交于 2019-12-12 04:38:32
问题 What i want here is, bar chart for certain x no of records on first page then next x number of records on next page and so on. I searched a lot for this, but didnt found exact solution. Is it even possible with Jasper Reports 回答1: You can do this by using report groups. Open your report in iReport. 1:-Open report and in Report inspector right click and select "Add Report Group" 2:-Give any name (eg. splitter) and select "Group by the following expression" and enter $V{REPORT_COUNT} - 1 - ( (

Simple bar chart d3

佐手、 提交于 2019-12-12 03:42:21
问题 Copying simple example for barchart as per D3.js page still I am not getting anything on my screen except left black line. Can someone help me out? HTML <!DOCTYPE html> <meta charset="utf-8"> <style> .bar { fill: steelblue; } .bar:hover { fill: brown; } .axis--x path { display: none; } </style> <svg width="960" height="500"></svg> <script src="https://d3js.org/d3.v4.min.js"></script> <script> var svg = d3.select("svg"), margin = {top: 20, right: 20, bottom: 30, left: 40}, width = +svg.attr(

Matplotlib bar charts: Aligning two different y axes to zero

一个人想着一个人 提交于 2019-12-12 03:32:32
问题 I have two sets of data in a barchart which have very different axes: one is very negative (-7500) and one is slightly positive (+5). How can I have the two y axes aligned at 0, yet still be a good size? Using set_ylim means you can't see the second data set. Current code I'm using: A165H = [-4915, -7037] B167H = [-6927, -4105] B186H = [-5597, 0] CH =[0, 0] ConH = [0, 0] # Lists of dS values A165S = [6.28,-4.91] B167S = [-3.25, 6.7] B186S = [3.93, 0] CS = [0, 0] ConS = [0, 0] N1H = [A165H[0],

R: barplot with n groups which stacks 2 values

我怕爱的太早我们不能终老 提交于 2019-12-12 03:28:18
问题 I need to generate a barplot which consists of the following: I have a csv file with columns: Category Reason Time Value Category has 7 possible names (c1 ... c7) Reason has 8 possible names (n1 ... n8) Time has 2 possible names (T1, T2) Value is the time value Example dataset: Category Reason Time Value C1 R1 T1 1 C2 R1 T2 2 C1 R2 T1 3 C2 R2 T2 4 C1 R3 T1 8 C2 R3 T2 0 What i want to achieve: A bar plot which consists of 3 groups (i.e. one group per REASON), where each group consists of 2