charts

Change color of bars depending on value in Highchart bar-chart with MVC3

耗尽温柔 提交于 2019-12-22 04:39:40
问题 I am using Dotnet Highchart with MVC3 I am currently working with a diagram that looks like this: I am trying to modify my code so I can change color on the bars depending on what number they have. I also wonder how I can remove the button "Snittbetyg" as you see can on the image. This is my code: public ActionResult OfficeStatistic() { { Highcharts chart1 = new Highcharts("chart1") .SetXAxis(new XAxis { Categories = new[] { "Ödmjukhet", "Engagemang", "Kompetens", "Lönsamhet" } }) .SetYAxis

Where has Microsoft's WPF/Silverlight Charting gone in .NET 4.0?

别等时光非礼了梦想. 提交于 2019-12-22 04:27:19
问题 Forgive me for being a little naive perhaps, but it seems that System.Windows.Controls.DataVisualization.Charting has vanished from VS2010, and blend 4. I'm trying to make a bar graph with a line overlayed, but can't even get started because I can't find the appropriate controls. I know I could use an external graphing package, but I'd like to try the inbuilt controls first. 回答1: You mention Blend so I assume that you are refering to the WPF/Silverlight chart controls. The System.Windows

Random fill colors in Chart.js

丶灬走出姿态 提交于 2019-12-22 04:20:29
问题 I have been using nvd3 for a long time. In nvd3 we have an option to specify automatic graph fill colors. chart.barColor() How can I fill random colors in Chart.js graphs without defining each color in datasets? I don't want to use JavaScript function to generate and get random colors from it. I need something similar to nvd3 barColor() If there is a possible way, then please help me out. 回答1: function getRandomColor() { var letters = '0123456789ABCDEF'.split(''); var color = '#'; for (var i

How to create new line in Plot.ly JS title

泄露秘密 提交于 2019-12-22 04:14:06
问题 I am using the Plot.ly JS for graphs. The graphs are charting the answers given to certain questions in a survey. So, the title of the graph is the question itself which can get a little long. Right now, the title runs off the graph and is hidden as seen in the image below (can't embed images yet on Stack Overflow so it created a link to the image instead): This is the code being called where values and labels are variables defined elsewhere: var graph_data = [ { values: values, labels:

Can I display daily data in month buckets using only excel's chart formatting?

只愿长相守 提交于 2019-12-22 04:06:20
问题 I have daily sales figures that I'd like to plot on a simple linegraph. I would like them to be shown in monthly buckets (i.e. if I sold 5€ on Jan 01 and 10€ on Jan 24, I would like to see only one data point for January with 15€ in it). Please note that I don't want to use any supporting formula/VBA script, I want to do this using only chart formatting. I tried setting the chart's X-axis type to "date axis" and I chose "months" as the base unit. This almost works, but the line graph ends up

Multiple axis line chart in excel

大兔子大兔子 提交于 2019-12-22 04:04:27
问题 I'm looking for a multiple axis line chart similar to the one in the image below, (which is a javascript chart made by amcharts). Does excel have an option to draw charts line these? Note there are 3 Y axes, and 3 line charts allowing you to compare data. Is it possible to get more than 3 data points, each with unique axis on one chart ? 回答1: It is possible to get both the primary and secondary axes on one side of the chart by designating the secondary axis for one of the series. To get the

Mercurial Commit Charts / Graphs [closed]

北城以北 提交于 2019-12-22 04:02:00
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Is there anything that can produce pretty charts / graphs for Mercurial commit history in a repository? I'm thinking something like

Google Combo Chart add horizontal and vertical line in column chart

对着背影说爱祢 提交于 2019-12-22 03:33:09
问题 How do I create a Google Combo Chart that replicates the image below? It seems once I add the column for the vertical line the green columns lose their groupWidth property and turn into skinny lines. data.addColumn('number', 'X'); data.addColumn('number', 'Y'); data.addColumn('number', 'Average'); data.addColumn('number', 'Vertical Line'); data.addRows([ [1, 5, 3, null], [3, 4, 3, null], [5, 2, 3, null], [2, null, null, 0], // add vertical line [2, null, null, 5], ]); Here is a jsfiddle: http

How to avoid negative values with JFreeChart fixed auto range

我的梦境 提交于 2019-12-22 01:29:27
问题 I have a JFreeChart line plot that is updated dynamically with one data point for every iteration of my algorithm. Because the number of data points can quickly become very large, I have used the setFixedAutoRange(double) method on the domain axis. This restricts the graph to displaying the n most recent iterations (200 in my case). This works well, except during the first 200 iterations. The problem is that, until there have been 200 iterations, the axis includes negative values (for example

Bubble Chart with bubbles aligned along their bottom edges

蓝咒 提交于 2019-12-22 01:19:56
问题 Is there a simple way to make a bubble chart in R like this: I've played around with ggplot with fake data and have gotten this far: cat<-c("A", "A", "B", "B", "C", "C") chara<-c("1", "0", "1", "0", "1", "0") percent<-c(80, 20, 60, 40, 90,10) xcoord<-c(10,10,11,11,12,12) ycoord<-c(10,10,10,10,10,10) DF<-data.frame(cat,chara, percent, xcoord, ycoord) NewBubbleChart <- ggplot(DF, aes(x = cat, y = "", size = percent, label = NULL, fill = chara), legend = FALSE) + geom_point(color = "grey50",