charts

Change cell fill color based on font color

孤人 提交于 2019-12-12 06:02:06
问题 I need to move conditionally formatted data from Excel 2013 into pre-existing tables in PowerPoint 2013. The font colors and formatting will carry from Excel to PowerPoint, but the cell fill needs to be manually added. Is it possible to create a macro in PowerPoint that will search through each table's cell, find one of five specific font colors "(xxx,xxx,xxx)", then fill that cell with a specified color? I have tables in Excel that have conditional formatting colors with the following rules:

Spline chart, how to get the clicked item? [duplicate]

微笑、不失礼 提交于 2019-12-12 05:59:40
问题 This question already has answers here : get mark position in ms charts on mouse click (2 answers) Closed 3 years ago . I'm working whit charts on c#. I would like to know a way of get the iten (the spline) clicked on the chart to do something like change color or hide. 回答1: You can check the clicked item using HitTest , as suggested..: private void chart1_MouseDown(object sender, MouseEventArgs e) { HitTestResult result = chart1.HitTest(e.X, e.Y); // now do what you want with the data..: if

Gap between the first X datetime value and the Y axis

最后都变了- 提交于 2019-12-12 05:39:32
问题 In my application, I use mschart to display data using a x axis with datetime value and an Y axis with numeric (double) values. However, I have noticed that there is a small gap between the Y axis and the first X value: Is there a way to force the graph to start exactly on the Y axis? EDIT: Here is what I use to populate my series: foreach (AggregatedValue value in line.Value) { series.Points.AddXY(value.TimeStamp.ToLocalTime(), value.Value); } Aggregated value is a class containing the 2 x,

Graph.Chart interop in Word

痞子三分冷 提交于 2019-12-12 05:31:21
问题 I'm having massive problems when trying to update a chart through MSWord interop. All I want to do is set the values on a chart in a word document so the graph can update to values in my app. I've done the following (after importing Microsoft.Office.Interop.Graph.dll): InlineShape chartShape = WordDocument.InlineShapes[2]; chartShape.Activate(); // for opening Chart in edit mode // Convert the InlineShape into Chart type which is a part of Microsoft.Office.Interop.Graph Microsoft.Office

Creating an incomplete pie chart in Dimple.JS

六月ゝ 毕业季﹏ 提交于 2019-12-12 05:30:06
问题 I have a pie chart that needs to have a missing 10% missing slice. I have the following code but the pie is always 100%. var myChart = new dimple.chart(svg, data); myChart.setBounds(50, 50, 180, 180); myChart.defaultColors = chartOptions.colors; myChart.data.startAngle = 0; myChart.data.endAngle = (2 * Math.PI * 0.9); myAxis = myChart.addMeasureAxis('p', 'amount'); var mySeries = myChart.addSeries('legend', dimple.plot.pie); How do I make the pie less than 100%? The above example needs to

How to add new chart(any charts, highcharts or d3 charts) in Serenity admin dashboard

瘦欲@ 提交于 2019-12-12 05:14:54
问题 I have created an application using Serenity framework. I have completed basic functionality for CRUD using serenity. Based on my tables I need to have graphical representations, any charts like high charts, D3 charts or any . 1. How can I get data from the tables using serenity framework ? 2. How can I customise the data into graphical representations ? 回答1: Finally I have found the answer for this. We can use sql queries as well as stored procedure to fetch data from DB. I have used stored

google column graphs set color conditionally

耗尽温柔 提交于 2019-12-12 05:09:58
问题 I want to be able to conditionally set a color for a given column in a google graphs column chart depending on its value. for example, if the bar is <50, color it yellow or higher than 70, color it green. It would be great if the solution be accomplished within the API itself but that's probably not going to be the case. 回答1: you can use a 'style' column role to color specific columns the style role is just a column in the data table, that should follow the series column it should style if

How to use UIElement[] CreateLabels method in NumericLabelProviderBase class to insert label or text in a point inside plotter

三世轮回 提交于 2019-12-12 05:07:38
问题 I'm tring to override CreateLabels to insert labels or text in specific points in plotter chart but I need a help in: 1. what does the parameter ( ITicksInfo<double> ticksInfo ) mean and what should I send to it 2. how to use the return value to add labels to already defined Axis like _stringaxis.LabelProvider or if there is simpler way to add text in a point please tell, Many thanks. 回答1: Just found the easiest way to add a nice label inside the chart. CenteredTextMarker label = new

How to change the format in the DataTable's Google Chart API with Javascript

北城余情 提交于 2019-12-12 04:57:58
问题 I would like to change the format of the data in the DataTable in order to make it more flexible and the Chart is still the same with the first one. Default: ['Year', 'Sales', 'Expenses'], ['2004', 1000, 400], ['2005', 1170, 460], ['2006', 660, 1120], ['2007', 1030, 540] It must be: ['Year', '2004', '2005', '2006', '2007'], ['Sales', 1000, 1170, 660, 1030], ['Expenses', 400 ,460, 1120, 540] Demo HTML: <div id="chart_div" style="width: 450px; height: 300px;"></div> Javascript: google.load(

amCharts align values axis' null level

你离开我真会死。 提交于 2019-12-12 04:54:31
问题 I have an Amchart graph with multiple charts and multiple value axis. Values may be quite different, for example, one chart's values may vary from -3000 to 3000, while another one is 0-40. What I want is to represent all charts so they all will be visible. So, I use 'synchronizeGrid' option. Here's my current code: "synchronizeGrid": true, "valueAxes": [{ "id": "v1", "axisColor": "#FF6600", "axisThickness": 2, "axisAlpha": 1, "position": "left" }, { "id": "v2", "axisColor": "#FCD202",