stacked

URL for each box in stacked bar graph

半城伤御伤魂 提交于 2019-12-08 03:38:05
问题 I want to create a stacked bar graph as in url below (source: jpowered.com) I want to make hyperlink for each of the red ,violet and blue boxes.The graph is possible with jfree chart but i don't know how to make each of the individual bars as URL so that a click on it can refresh the page. Is it possible to do it with jfree chart? Does Jquery plot help in this case to make each box url enabled ?Please suggest. 回答1: I know that you can achieve something like this in jqPlot without much trouble

Excel chart changing all data labels from value to series name simultaneously

烈酒焚心 提交于 2019-12-07 16:34:39
问题 I am having this problem in excel stacked column chart while trying to change the labels. My graph has multiple columns and hundreds of stacked values (series) in each column. By selecting chart then from layout->data labels->more data labels options ->label options ->label contains-> (select)series name, I can only get one series name replacing its respective label values. For more than hundred series stacked in columns i want them all to be changed at once, is there any way out? why it does

ggplot Error: Don't know how to automatically pick scale for object of type function

我怕爱的太早我们不能终老 提交于 2019-12-06 19:25:27
问题 I plotted a stacked bar graph in R using ggplot2 package, data<-read.table("K.txt",header=TRUE, sep="\t") > data Sample P1 P2 P3 P4 1 G1 0.02 0.01 0.03 0.95 2 G2 0.01 0.01 0.02 0.97 3 G3 0.01 0.01 0.02 0.97 4 G4 0.01 0.01 0.02 0.97 5 G5 0.01 0.01 0.02 0.96 6 G6 0.01 0.01 0.01 0.98 7 G7 0.05 0.01 0.01 0.93 8 G8 0.34 0.01 0.01 0.64 9 G9 0.43 0.01 0.01 0.56 > library("reshape2", lib.loc="C:/Program Files/R/R-2.15.2/library") > data1<-melt(data) Using Sample as id variables > head(data1) Sample

R-stacked-grouped barplot with different fill in R

假装没事ソ 提交于 2019-12-06 02:17:24
I have the following code: library(ggplot2) K <- data.frame(KK=c("30", "30", "30", "30","10", "10", "10", "10"),k=c("10", "8", "5", "2","10", "8", "5", "2"), Precision=c(85.2,87.5,100,100,82.5,83.3,85.2,94.4), Recall=c(73.3,80,100,100,51.4,54.8,61.1,87.9) , Fscore=c(70.8,79.4,100,100,49.1,54.2,62.7,90.3), Accuracy=c(82.2,86.7,100,100,63.3,66.7,73.3,93.3)) df2 <- reshape2::melt(K, 1:2) ggplot(df2, aes(k, value, fill = variable)) + geom_bar(stat = 'identity', position = 'dodge') + theme(legend.position = 'top') This code gives me the following plot. However, I want to get a barplot like this

Google Charts stacked columns with different annotations for each piece of the column

 ̄綄美尐妖づ 提交于 2019-12-06 01:35:28
问题 I hope you can help me with this: I have a chart of stacked columns, all of them with two values to stack in each column. I have successfully created the chart BUT I need to add an annotation for each piece of each column (I don't know the proper name for it) indicating the percentage of the total represented by the piece in it's own column. In the example given below, I would need to set the annotations so it would show the stacked columns and, for the first column should have an annotation

Google Charts stacked columns with different annotations for each piece of the column

可紊 提交于 2019-12-04 06:36:58
I hope you can help me with this: I have a chart of stacked columns, all of them with two values to stack in each column. I have successfully created the chart BUT I need to add an annotation for each piece of each column (I don't know the proper name for it) indicating the percentage of the total represented by the piece in it's own column. In the example given below, I would need to set the annotations so it would show the stacked columns and, for the first column should have an annotation on the "Good" area with value "60%" and another annotation for the "Bad" area of "40%", and so on. So

Stacked bar chart with differently ordered colors using matplotlib

梦想的初衷 提交于 2019-12-03 15:17:21
I am a begginer of python. I am trying to make a horizontal barchart with differently ordered colors. I have a data set like the one in the below: dataset = [{'A':19, 'B':39, 'C':61, 'D':70}, {'A':34, 'B':68, 'C':32, 'D':38}, {'A':35, 'B':45, 'C':66, 'D':50}, {'A':23, 'B':23, 'C':21, 'D':16}] data_orders = [['A', 'B', 'C', 'D'], ['B', 'A', 'C', 'D'], ['A', 'B', 'D', 'C'], ['B', 'A', 'C', 'D']] The first list contains numerical data, and the second one contains the order of each data item. I need the second list here, because the order of A, B, C, and D is crucial for the dataset when

D3 Stacked Chart with array or JSON data

可紊 提交于 2019-12-03 08:36:05
I want to create a Stacked bar chart like http://bl.ocks.org/mbostock/3886208 . But I don't want to use CSV file. How can I create Stacked chart using array or JSON data? In csv we are using like this : State,Post,Comment AL,310504,552339 AK,52083,85640 How can I define data in array or json like var data = [] do it like this <!DOCTYPE html> <meta charset="utf-8"> <style> body { font: 10px sans-serif; } .axis path, .axis line { fill: none; stroke: #000; shape-rendering: crispEdges; } .bar { fill: steelblue; } .x.axis path { display: none; } </style> <body> <script src="//d3js.org/d3.v3.min.js"

GNUplot: how to plot rowstacked bar chart using color codes in data?

萝らか妹 提交于 2019-12-02 05:33:14
问题 I have the following sample data: col1 2 0 1 1 col2 1 1 0 0 col3 1 1 1 0 col4 1 1 2 1 col5 1 1 1 1 col6 2 0 1 1 col7 1 1 2 2 col8 1 1 2 1 columns #4 and #5 are the color codes for columns #2 and #3. For example, I want '1' for green, 2 for white, and 0 for orange. Here is how I tried to plot it: set key off unset border unset xtics unset ytics set style data histograms set style histogram rowstacked set boxwidth 1 relative set style fill solid 1.0 border -1 set yrange [0:2] set lmargin 0 set

GNUplot: how to plot rowstacked bar chart using color codes in data?

房东的猫 提交于 2019-12-02 02:15:38
I have the following sample data: col1 2 0 1 1 col2 1 1 0 0 col3 1 1 1 0 col4 1 1 2 1 col5 1 1 1 1 col6 2 0 1 1 col7 1 1 2 2 col8 1 1 2 1 columns #4 and #5 are the color codes for columns #2 and #3. For example, I want '1' for green, 2 for white, and 0 for orange. Here is how I tried to plot it: set key off unset border unset xtics unset ytics set style data histograms set style histogram rowstacked set boxwidth 1 relative set style fill solid 1.0 border -1 set yrange [0:2] set lmargin 0 set rmargin 0 set tmargin 0 set bmargin 0.1 set terminal pngcairo truecolor size 100,65 set output "/export