bubble-chart

Unproportional Bubble Chart with the size paramater

拟墨画扇 提交于 2019-12-02 02:12:30
问题 I´ve created a bubble chart and I put in some testing values as follow: this.chart1.Series["blueBubble"].Points.AddXY(2, 3, 6); this.chart1.Series["redBubble"].Points.AddXY(1, 0, 7); this.chart1.Series["yellowBubble"].Points.AddXY(1, 3, 8); As I put in the size of the particular bubble to the third parameter of AddXY function, the sizing is done in a completely wrong proportional representation. See picture: How can I change the bubble sizes to the right proposition representation? 回答1: This

Unproportional Bubble Chart with the size paramater

烈酒焚心 提交于 2019-12-02 01:31:59
I´ve created a bubble chart and I put in some testing values as follow: this.chart1.Series["blueBubble"].Points.AddXY(2, 3, 6); this.chart1.Series["redBubble"].Points.AddXY(1, 0, 7); this.chart1.Series["yellowBubble"].Points.AddXY(1, 3, 8); As I put in the size of the particular bubble to the third parameter of AddXY function, the sizing is done in a completely wrong proportional representation. See picture: How can I change the bubble sizes to the right proposition representation? This looks really weird. The best explanation I have is that the sizes always start with the smallest one set and

R manually set shape by factor

别来无恙 提交于 2019-12-01 16:14:21
问题 Asked this question the other day but no one could visualize my question so ive made an example. A <- c('a','b', 'c','d','e') types <- factor(A) B <- c(1,2,3,4,5) C <- c(6,7,8,9,10) D <- c(1,2,1,2,3) ABC <- data.frame(B,C,D,types) library(ggplot2) ggplot(ABC, aes(x=B ,y=C ,size=D, colour=as.factor(types),label=types, shape=as.factor(types))) + geom_point()+geom_text(size=2, hjust=0,colour="black", vjust=0) + scale_size_area(max_size=20, "D", breaks=c(100,500,1000,3000,5000)) + scale_x_log10

unable to change legend symbol nvd3 bubble chart

回眸只為那壹抹淺笑 提交于 2019-12-01 10:23:40
问题 In my nvd3 bubble chart, each group of points has a different symbol but the legend has all as circles. The code is here. I have only come across this .showLegend(false) which enables to hide or show the legend. I am unable to understand how to change the symbols in the legend. 回答1: nvd3 does not give you direct access to the internals of the legend. However, you can alter it fairly easily using d3 selections to manipulate its various parts. Start by creating a selection of all elements with

visualizing crosstab tables with a plot in R

£可爱£侵袭症+ 提交于 2019-11-29 23:10:37
I saw a plot generated in excel and I was wondering if R could also do it. This picture is essentially a visualization of a crosstab table comparing the days of the week to preferred meals on that day and counting the number of people that fall within those categories. I've read up on some R bubble charts but I have yet to see one like this. Can someone point me to a package or a website that explains how I can make a plot like this one? Using Hadley Wickham's ggplot2 : library(ggplot2) # Set up the vectors days <- c("Mon","Tues","Wed","Thurs","Fri") slots <- c("Coffee/Breakfast","Lunch",

Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top

微笑、不失礼 提交于 2019-11-29 15:16:35
I have a Highcharts bubble chart where many of the points are going to have the same, or very similar values. Currently only the top point's data label is visible. I have functionality that allows the points to be highlighted (using the select() method). When a point is selected I am also moving it to the top by using point.graphic.toFront() , but I also want the selected point's data label to be moved to the top too. I can't figure out how to do that or if it's possible. Is there a way to move an individual point's data label to the front/top so that it can be seen? I know there is a setting

How to disable legend in nvd3 or limit it's size

倾然丶 夕夏残阳落幕 提交于 2019-11-28 09:42:32
I'm using nvd3 and have a few charts where the legend is much to large. E.g. a scatter/bubble with 15 groups and the group names are long. The legend is so large that it leaves almost no room for the chart itself. Is there a way to remove the legend or toggle the legend or limit the height/width it is taking up? Any example would be great. Also, is there a way to have the bubble show a descriptive string? Right now when you stand on top of a bubble it highlights the x/y coordinates. I also want it to show the bubble name. For example, each of my bubbles represents a country (which has a name),

Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top

江枫思渺然 提交于 2019-11-28 09:19:22
问题 I have a Highcharts bubble chart where many of the points are going to have the same, or very similar values. Currently only the top point's data label is visible. I have functionality that allows the points to be highlighted (using the select() method). When a point is selected I am also moving it to the top by using point.graphic.toFront() , but I also want the selected point's data label to be moved to the top too. I can't figure out how to do that or if it's possible. Is there a way to

d3 js - loading json without a http get

别来无恙 提交于 2019-11-27 06:20:27
I am learning d3. There are certain ways of loading the data in d3 js. But all of them seem to make a HTTP GET. In my scenario, I already have the json data in a string. How can I use this string instead of making another http request? I tried to look for documentation for this but found none. This works: d3.json("/path/flare.json", function(json) { //rendering logic here } Now, if I have: //assume this json comes from a server (on SAME DOMAIN) var myjson = '{"name": "flare","children": [{"name": "analytics","children": [{"name": "cluster","children": [{"name": "MergeEdge", "size": 10 }]}]}]}'

d3 js - loading json without a http get

与世无争的帅哥 提交于 2019-11-26 11:57:29
问题 I am learning d3. There are certain ways of loading the data in d3 js. But all of them seem to make a HTTP GET. In my scenario, I already have the json data in a string. How can I use this string instead of making another http request? I tried to look for documentation for this but found none. This works: d3.json(\"/path/flare.json\", function(json) { //rendering logic here } Now, if I have: //assume this json comes from a server (on SAME DOMAIN) var myjson = \'{\"name\": \"flare\",\"children