charts

How to draw a Line only between specific points in the same Chart series

别说谁变了你拦得住时间么 提交于 2019-12-11 12:51:02
问题 I have the following issue: A distribution of points plotted on a dot chart; Some of those points need to be connected to each other in a way that a single point could be connected to several different points; Those points need to be connected with a line; Not all points could be connected. 回答1: One Series can either be of type Point or Line , so we will need to either use two Series or resort to some tricks. I suggest using two Series, as it is rather simple to code and maintain.. This

Setting specific colors in google charts

删除回忆录丶 提交于 2019-12-11 12:47:39
问题 I have Google visualization where I want to set the specific colors of each pie slice/bar based on a column in the datatable. i.e. I have a table of the number of people who voted for their favorite color: *Input table* id Color Num Votes 1 'Red' 10 2 'Blue' 100 3 'Green' 50 How do I set the colors on the pie chart so that the slice for 'Red' is colored red, etc? However, due to the data set, I cannot guarantee that the rows will be in a certain order so cannot create an array of colors. I

angular ng-repeat with directive

妖精的绣舞 提交于 2019-12-11 12:43:44
问题 i'm new to angular and have the following issue where i need assistence. I'm using angular charts directives http://jtblin.github.io/angular-chart.js/ to build a chart board. I got the follwoing scenario: I have a directive a view and anenter code here associated controller. Inside the controller there should be an array charts[] which holds objects. these objects should be two-way binded with the chart directive. What is the appropriate way to do so? I will bild my charts dynamically without

How to change/add chart data series in python-pptx?

本秂侑毒 提交于 2019-12-11 12:29:45
问题 I'm trying to set data in an existing chart using python-pptx. from pptx import Presentation pres_path = "C:\\pres.pptx" pres = Presentation(pres_path) pres.slides[3].shapes[4].chart.series[0].values (92.0, 330.0, 309.0, 313.0, 356.0, 421.0, 457.0) pres.slides[3].shapes[4].chart.series[0].values = (1,2,3) Traceback (most recent call last): File "<input>", line 1, in <module> AttributeError: can't set attribute There's a method mentioned in the documentation which seems relevant, but I can't

Highcharts pie chart slice colour intensity using colorValue

我只是一个虾纸丫 提交于 2019-12-11 12:27:03
问题 I am trying to achieve the same thing as seen here: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/treemap-coloraxis Except with a pie chart instead. I have it set up like so: $('#expenditurePie').highcharts({ chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false, backgroundColor: '#121212', height: 322, className: 'summary-chart-right' }, title: null, tooltip: { pointFormat: '{series.name}: <b>{point

Run-Time Error when Adding Chart During PowerPoint SlideShow

橙三吉。 提交于 2019-12-11 12:21:55
问题 I have used vba in PowerPoint to add a chart to a slide. However, this only seems to work when I am in normal/slide view/edit mode. When I try to do this during a slideshow however, I get a runtime error saying: Method 'AddChart' of object 'Shapes' failed. The issue is that I'm using user input during the slideshow to filter what kinds of data I query and then I create new slides based on that data. Using standalone macros in slide view/edit mode wont help. Here's the relevant portion of my

How can I get a chart from a matrix

限于喜欢 提交于 2019-12-11 12:19:44
问题 Hello everybody I am using AngularJS. I need to get a chart depends on the values of the matrix related to the choice selected. The HTML: <body ng-controller="MainCtrl"> <select ng-model="selectedCity" ng-change="extractSubsities(selectedCity)" ng-options="item as item.name for item in cities track by item.name"> </select> <select ng-show="selectedCity.subsities" ng-model="selectedSubCity" ng-change="extractSubsities(selectedSubCity)" ng-options="item2 as item2.name for item2 in selectedCity

Aligning and Synchronising X Axes in MS Chart Doesn't Work

◇◆丶佛笑我妖孽 提交于 2019-12-11 12:18:03
问题 I have a chart control (from System.Windows.Forms.DataVisualization) with two chart areas. ChartArea2 is aligned to ChartArea1 as follows: ChartArea2.AlignWithChartArea = "ChartArea1"; ChartArea2.AlignmentOrientation = AreaAlignmentOrientations.Vertical; ChartArea2.AlignmentStyle = AreaAlignmentStyles.All; This works well except the X Axes are not aligned, despite being included in the AlignmentStyle. Instead, their minimum, maximum, interval, etc remain independent and are set according to

AChartEngine And Android Studio

[亡魂溺海] 提交于 2019-12-11 12:17:39
问题 I have to create an application that makes extensive use of charts. Reading the web I chose achartengine that seems to have everything I need. I downloaded the jar file, I plugged in the libs folder, I selected "add to library" and I lunch the gradlew clean. Result in the sources where I do the import of org.achartengine.xxxx I always returned the error that fails to resolve symbols . Do you have suggestions? Thank you Andrea 回答1: I am able to use this library in my Android Studio project,

D3 donut chart legend or labels on hover

懵懂的女人 提交于 2019-12-11 12:12:23
问题 I've created a chart using D3.js here (http://jsfiddle.net/jkuchta/u57mt97c/) but I'm running into issues with the labels. How could I add a legend to this or have the labels only appear on hover? // DRAW SLICE LABELS var sliceLabel = label_group.selectAll("text") .data(donut(data.pct)); sliceLabel.enter().append("svg:text") .attr("class", "arcLabel") .attr("transform", function(d) {return "translate(" + arc.centroid(d) + ")"; }) .attr("text-anchor", "middle") .text(function(d, i) {return