charts

Select the nearest point in a Silverlight Toolkit chart

你离开我真会死。 提交于 2019-12-12 01:29:13
问题 I have a LineSeries chart. By series.IsSelectionEnabled = true; when I move the mouse over the points, I can select that node. But how can I do it when the mouse is not exactly over the point but when it's near it (above or under)? Thanks. PS: One more thing. How can I change the color of the column when the mouse is over it so the user can tell which one of the columns he/she is going to select. 回答1: I have created the example of the chart with the single LineSeries . You can click anywhere

How to display a Bar Chart in DataTable

假装没事ソ 提交于 2019-12-12 01:23:27
问题 What im try to do is to render bar chart in datatable. I'm using Highchart and DataTable jquery plugins. Basicly what i want to do is this. Take a look at the link below. Chart in Table I have table with 3 colums and one of the columns has Bar Chart in it. The table is sortable and it has paging to display more rows. With all being sad is there any way to somehow loop trought the chart series and display one for eatch row. Thanks for the help 回答1: I wouldn't bother with an external library to

Plotting horizontal lines across histogram bars

心不动则不痛 提交于 2019-12-12 01:07:33
问题 I have an experiment where I measured the performance of some algorithms relative to three baselines. I'd therefore like to plot histograms for the algorithms, with horizontal lines of various styles drawn through the histogram bars to show the baselines. Below is an example which I produced by manually drawing horizontal lines on a graph produced by Gnuplot. The histograms "sentence" and "document" represent the algorithms I tested, and "mono", "random", and "MFS" are the baselines. Is there

Open Pie Chart/Donut Chart in R using Plotly with count and percentage

此生再无相见时 提交于 2019-12-12 00:55:11
问题 I'm trying to make a donut chart in R using plotly. I tried ggplot, but it wasn't able to give me the effect that I need. Here's a sample dataset: library(dplyr) testfile <- tibble(personID = 1:10, status = c("bad", "good", "bad", "bad", "bad", "bad", "bad", "bad", "bad", "good"), department = c("sales", "sales", "marketing", "sales", "marketing", "management", "management", "sales", "sales", "sales")) This chart will end up in a PowerPoint, so it does not need to be responsive. Instead, I

UIBezierPath to UIImage

送分小仙女□ 提交于 2019-12-12 00:00:03
问题 I need to draw a pie chart. I found a nice tutorial here http://mac-objective-c.blogspot.com/2009/04/drawing-pie-charts.html The example uses NSBezierPath, but I use UIBezierPath because I need the graphic in IOS. Is there a way to obtain that graphic in a UIImage so I can show it in a UIImageView? In this tutorial http://blog.gafmediastudio.com/2010/07/02/draw-a-pie-chart-with-iphone-ipod-ipad/ they use CGContext and in the end they have a function that returns a UIImage. The UIBezierPath

Double aggregate data (Nested Aggregation) and plot in a bar chart in Kibana

社会主义新天地 提交于 2019-12-11 23:38:37
问题 Is there a way to perform a nested aggregation from Kibana (v6.7.0)? I've been looking at aggregating with buckets and sub-buckets, but to no avail. Say the data looks as follows (with ID being a string and Source also being a string : | ID | Source | =============== | a1 | srcA | | a1 | srcB | | a1 | srcC | | b2 | srcA | | b2 | srcB | | c3 | srcA | | d4 | srcA | | d4 | srcB | I'd like to visualize how many IDs are in N sources, i.e. a double aggregation. In SQL-Land, the first level of

simple d3.js pie chart transitions *without* data joins?

不羁的心 提交于 2019-12-11 23:21:13
问题 I'm working with a data set that's categorically identical from year to year, and I want to make a D3 pie chart with animated transitions from year to year. The data is in a 2-d array, each inner array is a year. Because the number of values isn't changing, I think I can just replace the data set for the transition, and I don't need to do a data join (?). I have the pie chart working well initially, and I'm updating the data via click event. But my transitions aren't working. Here's the code

Copy Excel Chart Sheet to clipboard using C#

落爺英雄遲暮 提交于 2019-12-11 23:17:36
问题 I am writing a C# app. One of the tasks is to open an Excel spreadsheet and paste a chart sheet from it into the the C# app. Please note I am referring to a CHART SHEET...not a chart object embedded on an ordinary Worksheet. There is a reason why I am trying to be precise here. I use ordinary COM to communicate from C# to Excel... using using Microsoft.Office.Interop.Excel; In a situation where a chart is embedded in an ordinary worksheet, the API works. I retrieve the worksheets from

show label when mouse over a circle

混江龙づ霸主 提交于 2019-12-11 22:37:49
问题 I am a beginner for JavsScript.I want to show the labels when the mouse is over and disappear when the mouse is out. Here is my code. For now, it shows all the labels of the circles. dataGroup.enter().append("text") .attr('transform', function (d) { return "translate(" + x(d.poverty_rate) + "," + y(d.life_expectancy) + ")"; }) .text(function(d) {return d["state"]}); 回答1: The easiest way to achieve this is using HTML's own labels, which means you don't need to use any code. Assuming dataGroup

Is it possible to change the Values of a NumberAxis in JavaFX 2.0?

半腔热情 提交于 2019-12-11 22:22:31
问题 I'm not sure if this is even possible. But basically I want to change the values of a NumberAxis in JavaFX to Strings. final NumberAxis xAxis = new NumberAxis(0, 40, 1); So what I now want to change is the numbers 0 - 40 to any String. Another Question is. I have added Regions to my Chart so it displays 'Bars' on specific values. Whenever I change the 'Startvalue' of my xAxis to any higher than '0', the Bars randomly disappear. Why is that? 回答1: You can provide your own values using