bar-chart

apache poi: how to create chart with both bar and line?

给你一囗甜甜゛ 提交于 2019-12-10 21:49:59
问题 Is it possible to create a chart in apache poi with both bar and line in it? You can find an example here. If yes, can you please provide sample code to achieve this? Looking forward to hearing from you. Thanks in advance. 回答1: This is the solution I found. I unfortunately couldn't change the axis for the line chart. However you can easily change this manually on the file.When you open it, click on top of the line series with the right button and select "Format Data Series" you can change it

How to clone X and Y axis?

非 Y 不嫁゛ 提交于 2019-12-10 20:14:06
问题 I have a barChart with overplot a lineChart, two different series barChart.getData().addAll(series1); lineChart.getData().addAll(series2); My question: is it possible, and how to, clone barChart axis so to get the same settings for lineChart? What I would like to have is a perfect axis settings overlapping. Thanks Edit: at this link axis clone method I see there is a clone method Methods inherited from class java.lang.Object How can I use this method? Thanks all Edit2: below is a sample class

How to plot a stacked bar where the order in each bar is based on a column and the color of each level is based on another?

爱⌒轻易说出口 提交于 2019-12-10 19:28:05
问题 I'm trying to plot a stacked bar where the order of the levels is defined by a column and the color is defined by another one. I read a csv file and the dataframe has the following columns: Method (character) Property (character) Order (integer) Success (double): Success is the axis "y" and Method is the axis "x". Data A subset of my dataframe is: Method <- c("MF", "MF", "MF", "MF", "MF", "MF", "RF", "RF", "RF", "RF", "RF", "RF") Property <- c("P1","P2","P3","P6","P5","P7","P1","P6","P2","P5"

using sapply in R for ploting side by side graph

帅比萌擦擦* 提交于 2019-12-10 19:17:26
问题 I have the following code: dat <- read.table(text="Topic Project C10 C14 C03 C11 C16 C08 T1 P1 0.24 0.00 0.00 0.04 0.04 0.00 T2 P1 0.00 0.30 0.00 0.00 0.00 0.00 T3 P1 0.04 0.04 0.00 0.24 0.00 0.00 T4 P1 0.00 0.00 0.00 0.04 0.33 0.04 T5 P1 0.00 0.09 0.21 0.00 0.00 0.00 T6 P1 0.00 0.09 0.00 0.00 0.00 0.34 T1 P2 0.20 0.00 0.00 0.04 0.00 0.04 T2 P2 0.00 0.22 0.04 0.00 0.00 0.00 T3 P2 0.04 0.00 0.00 0.24 0.00 0.00 T4 P2 0.00 0.00 0.04 0.00 0.33 0.00 T5 P2 0.04 0.00 0.21 0.00 0.00 0.00 T6 P2 0.00 0

Add an Image next to a X-axis label on a JFreeChart's barchart

為{幸葍}努か 提交于 2019-12-10 17:43:57
问题 I have requirement for the barchart which I have created using JFreeChart libraries. I am illustrating this using an example. Lets say: I have plotted "John", "Mark", "Louis" and "Keith" on the X-axis (Students) and their respective marks on the Y-axis. I am using three different bars for each of the students to show their respective English, Science, and Maths marks. Lets say, Science weigh the most, hence a student getting highest in Science would get a "Gold-Medal". Highest in "Maths"

Getting series and values from CSV data in Zingchart

本小妞迷上赌 提交于 2019-12-10 17:32:47
问题 While creating mixed chart in Zingchart we can pass the type attribute values with values array. But I'm not sure when reading data from CSV how this can be achieved. I want to create mixed chart as on fiddle link below but data is to be read from a csv file. var myConfig = { "type":"mixed", "series":[ { "values":[51,53,47,60,48,52,75,52,55,47,60,48], "type":"bar", "hover-state":{ "visible":0 } }, { "values":[69,68,54,48,70,74,98,70,72,68,49,69], "type":"line" } ] } zingchart.render({ id :

Gnuplot: Histogram plots with inline data

浪子不回头ぞ 提交于 2019-12-10 17:25:13
问题 Gnuplot 4.6.5 I wanted to plot a histogram plot. I tried the demo here: http://gnuplot.sourceforge.net/demo/histograms.2.gnu with a separate datefile: https://dl.dropboxusercontent.com/u/45318932/immigration.dat . And it worked: However, when I tried to put the separate data file as inline data into the script file: # set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 500, 350 # set output 'histograms.2.png' set boxwidth 0.9 absolute set style fill solid 1.00 border

SSRS: Custom bar width between multi-level categories

落爺英雄遲暮 提交于 2019-12-10 16:58:29
问题 I have a bar chart with multiple category groups and I need to increase the spacing between the first level category group, that is, where the blue arrow points to. I want to change this: Into this: Thanks in advance. 回答1: As far as I know, there is no way to adjust the spacing between self-imposed groups of bars. However, there is a trick to get the desired affect. All you have to do is trick SSRS. In your query, you'll need to create empty bars with no labels. Without knowing how your query

Combine stack and dodge with bar plot in ggplot2

 ̄綄美尐妖づ 提交于 2019-12-10 16:58:25
问题 I'm trying to recreate this plot without the horrible 3d bar plot and the unclear x axis (these are distinct timepoints and it's hard to tell when they are). (from Science 291, no. 5513 (2001): 2606–8, otherwise a good paper.) My first instinct is to do something similar to what they did, with a 2d bar plot and distinct x axis labels, using dodged bars for the genotype and then stacked bars to get the black and white split on the front bar, but several other good questions here say you can't

Stacked bar plot in R with multiple rows per day

旧巷老猫 提交于 2019-12-10 14:54:50
问题 I would like to display work done in a day as a stacked bar plot, in order to see, day by day, how much activity I've done in each category, with the Y-axis representing time from 0:00 to 23:59. # day tstart tend duration category 1 2012-10-01 13:40 14:16 36 Recreation 2 2012-10-02 10:15 10:57 42 Work 3 2012-10-02 13:23 13:47 24 Chores 4 2012-10-02 13:47 14:48 61 Work 5 2012-10-03 09:09 11:40 151 Work 6 2012-10-03 13:33 14:04 31 Recreation 7 2012-10-03 17:00 19:40 160 Recreation I know I will