data-visualization

D3.js Chord diagram - Have text appear/disappear when hovering over an arc

佐手、 提交于 2019-12-08 08:32:47
问题 I'm trying to add a small function to the Chord Diagram created by Mike Bostock. When I hover over a certain arc, say Group A, I want a piece of text that I've placed to the right of the chord diagram to update its text to explain some insights that are particular to Group A. When the user moves his/her mouse away from the arc/chord (so all the chords become visible again), I want the text to go back to what it said before (which in my case is a short explanation of how to understand a Chord

How to measure the area of a polygon in ggplot2?

半腔热情 提交于 2019-12-08 08:08:04
问题 Hi everyone, I have a number of samples that I would like to draw a polygon for each of them to illustrate the shape of the data. My data look likes this: 01 0.31707317 02 0.12195122 03 0.09756098 04 0.07317073 05 0.07317073 06 0.07317073 07 0.07317073 08 0.07317073 09 0.04878049 10 0.04878049 I can easily draw a radar chart using radarchart, which looks like this: But I am trying to measure the area of the results shape and use that as a measure of data shape. This is where I struggle. I

Spotfire 6.0 - Limit Data by Selection from Another Table

会有一股神秘感。 提交于 2019-12-08 06:54:51
问题 I have two data tables A & B in a visualization. They can be joined by a common column ID. Is it possible that the data chart from table B be limited by selection from table A? Best Regards, Jonathan 回答1: you can create a relationship based on that ID: click Edit...Data Table Properties click the Relations tab click New to create a new relation configure the relation by selecting the left and right tables, the column containing the ID on both table, and optionally a method to apply to values

apache storm/spark and data visualisation tool(s)

女生的网名这么多〃 提交于 2019-12-08 05:26:47
问题 I have been searching for hours bu i did not find a clear answer. I would like to know what it is the most suitable data visualization tool(s) to use with apache storm/spark. I know there is tableau and jaspersoft but they are not free. Furthermore, there is the possibility of elasticsearch and kibana but I would like to find/try something else. So, do you have an idea please ?! Thanks a lot for your attention. 回答1: You are not giving much info here. Storm is stream processing engine, Spark

Sharing a Legend between two combined ggplots

二次信任 提交于 2019-12-08 04:36:16
问题 This question was migrated from Cross Validated because it can be answered on Stack Overflow. Migrated 5 years ago . I'm currently trying to present two time series using ggplot2, both with very different scales, using two ggplots. I've combined the two separate ggplots, one on top of the other, using grid.arrange . In order to aid visualization, I'd like to make each line a different colour, and have this legend below the combined plot. As this may be relevant, I'm currently working in the

Match two trellis pages between two different graphs

霸气de小男生 提交于 2019-12-08 04:30:29
I want to have on the same page a pie chart and a bar chart, with trellis pages. They both have 5 columns as trellis, so 5 different pages that you can visualize by scrolling down. However, I would like to display the same pages at the same time for both graphs. For instance, let's imagine I'm on the pie chart, I scroll down one page - and so my pie chart is on page2 - I want my bar chart to automatically go to page 2 as well I tried to use markings but although it links a bit the two graphs, it doesn't change the trellis pages automatically Does anyone know how to do this ? as @scsimon

Plotting function of 3 dimensions over given domain with matplotlib

為{幸葍}努か 提交于 2019-12-08 04:14:21
问题 I am trying to visualize a function of 3 parameters over a cube in R^3 to get an idea of the smoothness of the function. An example of this problem is shown in the sample code below %pylab from mpl_toolkits.mplot3d import Axes3D import itertools x = np.linspace(0,10,50) y = np.linspace(0,15,50) z = np.linspace(0,8,50) points = [] for element in itertools.product(x, y, z): points.append(element) def f(vals): return np.cos(vals[0]) + np.sin(vals[1]) + vals[2]**0.5 fxyz = map(f, points) xi, yi,

How to user JSON arrays with d3

时光怂恿深爱的人放手 提交于 2019-12-08 03:43:40
问题 I am new with d3 and json. I am trying to construct a horizontal gantt chart. Earlier I have acieved the same using inline arrays which i stored in var dataset. But now I have replaced the arrays with json object array . [ { "process" :"process-name 1", "stage" : "stage name 1", "activities": [ { "activity_name": "waiting", "start": new Date('2012-12-10T06:45+05:30'), "end": new Date('2012-10-10T08:45+05:30'), }, { "activity_name": "processing", "start": new Date('2012-10-11T05:45+05:30'),

How to do aligned scrolling through two chart areas without using AlignToChartArea?

倖福魔咒の 提交于 2019-12-08 02:54:03
问题 I have two ChartArea objects in a Chart ( System.Windows.Forms.DataVisualization.Charting is what I'm using). One is a Point graph, and the other is a RangeBar graph. The horizontal axis on the RangeBar graph is actually the Y axis, so I cannot just use something like this: Chart1.ChartAreas["Chart Area 2"].AlignWithChartArea = "Default"; I've figured out how to zoom both charts and keep them aligned, but when I try to scroll both charts by clicking on the scrollbar on one of the horizontal

Seaborn: Overlaying a box plot or mean with error bars on a histogram

﹥>﹥吖頭↗ 提交于 2019-12-08 02:41:26
问题 I am creating a histogram in Seaborn of my data in a pretty standard way, ie: rc = {'font.size': 32, 'axes.labelsize': 28.5, 'legend.fontsize': 32.0, 'axes.titlesize': 32, 'xtick.labelsize': 31, 'ytick.labelsize': 12} sns.set(style="ticks", color_codes=True, rc = rc) plt.figure(figsize=(25,20),dpi=300) ax = sns.distplot(synData['SYNERGY_SCORE']) print (np.mean(synData['SYNERGY_SCORE']), np.std(synData['SYNERGY_SCORE'])) # ax = sns.boxplot(synData['SYNERGY_SCORE'], orient = 'h') ax.set(xlabel