charts

How to set colors in MPAndroidChart?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 08:26:31
问题 I'm using MPChartlib for a basic "Barchart" (3 bars and values between 0 and 100). the background of the app is dark so I'd like to put the text in white but when I set the text with color code "FFFFFF" in chart_color stored in string.xml but the text appear in dark blue. //Axe X XAxis x = barchart.getXAxis(); x.setPosition(XAxisPosition.BOTTOM); x.setTextColor(R.color.chart_color); x.setAxisLineColor(R.color.chart_color); // Design barchart.setDragEnabled(false); barchart

Google Chart Tools - How to create stacked bar chart [duplicate]

可紊 提交于 2019-12-12 08:22:43
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Can someone help me create a simple vertical bar chart using google charts? Im using new Google Chart Tools, and I want to create stacked bar chart format. 回答1: The Google Developers site gives some details on the bar chart format: https://developers.google.com/chart/interactive/docs/gallery/barchart To make a normal bar chart stacked, you need to user the isStacked: true option. You can copy and paste the

Graph (Chart) Algorithm

瘦欲@ 提交于 2019-12-12 08:14:04
问题 Does anyone have a decent algorithm for calculating axis minima and maxima? When creating a chart for a given set of data items, I'd like to be able to give the algorithm: the maximum (y) value in the set the minimum (y) value in the set the number of tick marks to appear on the axis an optional value that must appear as a tick (e.g. zero when showing +ve and -ve values) The algorithm should return the largest axis value the smallest axis value (although that could be inferred from the

Where can I find jQuery or Ext plugins for creating organization charts? [closed]

强颜欢笑 提交于 2019-12-12 07:59:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I know we can create an organization chart with Google Chart Tools. But my client's server doesn't have an Internet connection. Are there any jQuery or Ext plugins for creating an organization chart? 回答1: I have successfully used JavaScript InfoVis Toolkit to create a graph that looks very similar to that. As

Pyplot - bar chart of positive and negative values

蹲街弑〆低调 提交于 2019-12-12 07:53:05
问题 I want the negative bars to be facing downwards, and the positive upwards, with the x-axis(0-line) passing right between them. I tried this chart = fig.bar(x, negative_data, width=35, color='r') ax2 = plt.gca().twinx() ax2.bar(x, positive_data, width=35, color='b') But instead, I get merged red and white bars, both facing downwards. It seems that the arrays negative_data/positive_data only specify the height of the bar, but how do I specify the orientation? I need something to specify the

C3JS bar chart with specific order

跟風遠走 提交于 2019-12-12 07:46:53
问题 If I have a C3JS grouped bar chart defined like the following, how can I get the segments to stay in the order I've defined them instead of in ascending order by value? By default C3 will order them as 5, 10, 40, but I want it to remain as 10, 40, 5. c3.generate({ bindto: '.active-loads', data: { columns: [ ['Picking up future', 10], ['Enroute', 40], ['Delivered', 5] ], type: 'bar', groups: [ ['Picking up future', 'Enroute', 'Delivered'] ], onclick: function(d) { console.debug(d); } }, axis:

How to draw Google Line Charts when some of the values are missing?

感情迁移 提交于 2019-12-12 07:39:55
问题 I've found the following JavaScript code on Google Chart Tools: function drawVisualization() { var data = new google.visualization.DataTable(); data.addColumn('string', 'Year'); data.addColumn('number', 'Sales'); data.addColumn('number', 'Expenses'); data.addRows(4); data.setValue(0, 0, '2004'); data.setValue(0, 1, 1000); data.setValue(0, 2, 400); data.setValue(1, 0, '2005'); data.setValue(1, 1, 1170); // sales for 2005 data.setValue(1, 2, 460); data.setValue(2, 0, '2006'); data.setValue(2, 1

Getting duplicate values at xAxis MPChart

℡╲_俬逩灬. 提交于 2019-12-12 07:17:37
问题 Right Now I am facing this issue. I am getting repeated values in xAxis the first one and the last one.And graph values are not according to the values at respective x-axis values. and the second issue is if I want to display the values not in float but in int Rounded and change the their color to white. ArrayList<String> xlabels = new ArrayList<String>(); xlabels.add("Jan"); xlabels.add("Feb"); xlabels.add("Mar"); xlabels.add("Apr"); xlabels.add("May"); xlabels.add("Jun"); ArrayList<String>

how to add two different values on gantt(range bar) chart in SSRS

折月煮酒 提交于 2019-12-12 06:58:07
问题 I would like to report like this: I want to show orders for every line and order has setup(yellow) and productıon(green) phase. Setup and Phase widths depends on actual_start_time and actual_end_time. My query result is like this: I tried to create report stacked bar, you can see this link: How to design bar chart on SSRS but if I create like this my report running very slowly. that's why I try to create report use range (Gantt) chart. report design: and report preview: I want to show

C# WinForms Charts configuration

不羁的心 提交于 2019-12-12 06:22:05
问题 I am trying to plot a file's byte count over a C# WinForms bar graph. As such, the X-axis will have values 0-255 (if greater than zero) and the Y-axis varies upon the length of the file and the byte distribution. The code is as follows: for (int i = 0; i < byteDistribution.Count; i++) { if (byteDistribution[i] > 0) { Series series = new Series(i.ToString()); series.Points.AddXY(i, byteDistribution[i]); // PointWidth has no affect? series.SetCustomProperty("PointWidth", "1"); this.crtBytes