excel-charts

VBA xlBarClustered how do you distinguish between the two different presets?

早过忘川 提交于 2020-01-15 09:25:09
问题 I have a chart template saved using the xlBarclustered chart type. I want it to be based upon the left default chart (see image below) but it chooses right. I have another document with a copy of the same code that chooses right. Is it possible to distinguish? When using record macro it has the same code for both left and right charts which is copied below. Thanks Set cht = WS_FS.Shapes.AddChart2(216, xlBarClustered, Left:=WS_FS.Cells(row, 5).Left, Top:=WS_FS.Cells(row, 5).Top, Width:=425,

How can I add labels onto the pie pieces that are large enough to contain them, and alongside those that aren't?

ε祈祈猫儿з 提交于 2019-12-25 19:01:57
问题 I've got simple bogus data that generates this Excel Chart: This is the code: object misValue = System.Reflection.Missing.Value; //add data _xlSheet.Cells[11, 11] = ""; _xlSheet.Cells[11, 12] = "Student1"; _xlSheet.Cells[11, 13] = "Student2"; _xlSheet.Cells[11, 14] = "Student3"; _xlSheet.Cells[12, 11] = "Term1"; _xlSheet.Cells[12, 12] = "80"; _xlSheet.Cells[12, 13] = "65"; _xlSheet.Cells[12, 14] = "45"; _xlSheet.Cells[13, 11] = "Term2"; _xlSheet.Cells[13, 12] = "78"; _xlSheet.Cells[13, 13] =

Indication in Stacked chart for MIN, MAX (stuck here for a month ..)

倖福魔咒の 提交于 2019-12-25 03:14:39
问题 Stuck in trying to adjust an arrow (sort of) inside an Excel chart. I have a column chart with series of data. I want to point out minimum, maximum, and average value from the chart. What i was planning is, to mark it by an arrow. Is it possible via C#? For the below chart, I want to indicate MIN & MAX, like the ones I have drawn. I started by getting the charts by this: Excel.Application app = new Excel.Application(); Excel.Workbook book; Excel.Worksheet sheet; Excel.ChartObject chartObj;

C# - why Histogram does not work in Excel 2016?

三世轮回 提交于 2019-12-12 14:20:23
问题 I have excel 2016 vsto application build in c#. I have a chart control and want to set chart type to the histogram. I can select this chart from excel but I am not able set this chart type programmatically. In other words, I am not able to find histogram chart type in the XlChartType enum. 回答1: In such cases you should always open Object Browser in excel macros and and search for what you are looking for As you can see from object browser, the value for histogram is 118 or 76 in hex. You can

excel bubble chart overlapping data label

眉间皱痕 提交于 2019-12-11 19:23:56
问题 I am facing an issue with a bubble chart when criteria1 and criteria2 in the below table have the same values. The data label and data series overlap each other. In such cases making it difficult to read them. How can this be fixed? +------------+-----------+-----------+ | City | criteria1 | criteria2 | +------------+-----------+-----------+ | Thane | 4 | 3 | | Mumbai | 3 | 2 | | Pune | 5 | 1 | | Goa | 2 | 3 | | Chandigarh | 3 | 1 | +------------+-----------+-----------+ Overlapping issue 回答1

Highcharts: having trouble recreating stacked area chart from Excel with positive and negative values

假如想象 提交于 2019-12-01 00:37:57
I'm converting a series of Excel charts into Highcharts, and came across a curious situation involving a stacked area chart with both positive and negative values. Here is now the chart is displayed in Excel, along with the accompanying data points. For illustration purposes, I've selected series G. Despite having all positive values in its data, it appears at the bottom of the stack, beneath the zero line. Here is how the chart appears in Highcharts (see below). In this instance, series G appears above the chart, and all of the other series appear much differently than in Excel. For reference

Highcharts: having trouble recreating stacked area chart from Excel with positive and negative values

拟墨画扇 提交于 2019-11-30 18:08:30
问题 I'm converting a series of Excel charts into Highcharts, and came across a curious situation involving a stacked area chart with both positive and negative values. Here is now the chart is displayed in Excel, along with the accompanying data points. For illustration purposes, I've selected series G. Despite having all positive values in its data, it appears at the bottom of the stack, beneath the zero line. Here is how the chart appears in Highcharts (see below). In this instance, series G