chart

Using VBA to Paste Excel Chart with Data into PowerPoint

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Answer: TL;DR: pasting a chart with embedded data takes a long time so you have to install a delay to prevent vba from moving on before the paste operation completes. Question:I'm trying to paste an excel chart with embedded data into a powerpoint presentation. The only thing I am getting hung up on is referring to and positioning the chart in ppt once it has been pasted. Dim newPowerPoint As PowerPoint.Application ActiveSheet.ChartObjects("Chart 1").Activate ActiveChart.ChartArea.Copy newPowerPoint.CommandBars.ExecuteMso (

nvd3 Stacked Bar Chart with discrete values

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to use nvd3 to create a vertical stacked bar chart. I will be using discrete data values, as opposed to randomly generated values as the example on their website . I have tried to play around with the live code example of the Group / Stacked Bar Chart and put in JSON data containing my own values. What I tried to do was take the JSON data from the horizontal bar chart and put it in as the data for the vertical bar chart. This is the data I used on the live code example in place of the data in the Group / Stacked Bar

Customized tooltip for C3JS

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have created a chart using C3.JS. It has bar graph with line graph like as shown below The graph is working fine but I have a requirement that I need a line graph to be shown within the tooltip along with other data points. The line graph is coming but the other data points are missing (x, data1, data2). In addition tooltip should come only on mouse click not mouse over also by default when the page loads the tooltip should appear for the last bar. Current my tooltip shows only with the line graph like as shown below without the other data

Add chart on phpoffice/phpword

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I know how to add charts on PHPExcel, but I also need to insert charts on a docx file. Is it possible to manipulate charts with phpoffice/phpword? If it's not possible, do you know a good library for the job? 回答1: It's not actually possible to add chart in a PHPWord Document. But the feature is in the pipe (follow this ticket #123 ). But you can use of one of some libraries used (actually and in the future) by PHPExcel : PHP Charting Libraries . Actually, PHPExcel just use JpGraph for rendering some graphs. 回答2: I don't know the library, but

Switch Statement gives Incompatible Types error

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to compile and I get this error: enigma/Rotor.java:30: incompatible types found : java.lang.String required: int switch(name){ 1 error Why am I getting this error? How do I fix it? It's in the package and I can't seem to figure it out. Here's the code: String label; Rotor(){;} Rotor(String name){ switch(name){ case "B": conversion_chart = B; break; case "C": conversion_chart = C; break; case "I": conversion_chart=I; notch = NOTCH[0]; break; case "II": conversion_chart=II; notch = NOTCH[1]; break; case "III": conversion_chart=III;

WinForms Chart: Set minimum Y Axis display range

匿名 (未验证) 提交于 2019-12-03 00:58:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a Winforms chart in which I have temperature readings arriving and displaying every second. I like the way the chart works automatically handling the display of the values, but I want to change one simple thing . I want to increase the minimum displayed y axis range, so it displays a range of 20. At the moment it only displays around 5. I have tried a few things: //(when new data arrives...) //Does not work, I think because by default, Size is always NaN? if (chart1.ChartAreas[0].AxisY.ScaleView.Size < 20) { chart1.ChartAreas[0].AxisY

Highcharts legend symbol sizes for scatter charts

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a problem of rendering legends for 3d scatter charts with different symbol sizes - see http://jsfiddle.net/YyV6x/4/ The legend takes the same sizes of symbols as in the main chart and the positioning of legend items is completely off. I tried forcing the legend symbols to be the same size: $(chart.series).each(function(){ this.legendSymbol.attr('width',8); this.legendSymbol.attr('height',8); }); Unfortunately, it also shifts symbol X and Y coordinates - see http://jsfiddle.net/HB53K/ . How can I fix this? Thanks 回答1: You could do a

PrimeFaces 3.4 Charts datatipFormat

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: today I wanted to try the new PrimeFaces release 3.4.RC1. For charts there is a new attribute called datatipFormat. I want to show only the value (y-axis) in a line chart as datatip. Like this: What do I have to do to show only this? I could not find an example with a template String. Best Regards Veote 回答1: Primefaces uses a jqPlot Library for Charts. There I found the following entry: Highlighter.formatString I tried (example from Primefaces Showcase): UserBean public String getDatatipFormat(){ return " %s %s "; } and with this little

How to view the last 10 DataPoints in a chart that&#039;s updating each second?

匿名 (未验证) 提交于 2019-12-03 00:50:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have this code: private void timer_Tick(object sender, EventArgs e) { timer.Stop(); for (int i = 0; i < TOTAL_SENSORS; i++) { DateTime d = DateTime.Now; devices[i].Value = float.Parse(serialPort.ReadLine()); if (chart1.Series[i].Points.Count > MAX_POINTS) { //see the most recent points } chart1.Series[i].Points.AddXY(d, devices[i].Value); } timer.Start(); } This part of my code is the timer's tick event where i draw a chart and i need to update it every tick.I keep adding points and when the points count reaches MAX_POINTS(10) it removes

Hide all text on y axis dc.js bar chart

匿名 (未验证) 提交于 2019-12-03 00:50:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am creating a DC.JS based dashboard, but would like to figure out how to hide all of the text on the y axis of the bar chart as well as style the text on the x axis. Thanks 回答1: You should decrease ticks to zero: yourChart.yAxis().ticks(0); Note that this does not return a reference to your chart, so you cannot chain this method. You must put it on a separate line. Like this: var yourChart = dc.barChart('#your-chart').width(1024).height(50); yourChart.yAxis().ticks(0); 回答2: you should decrease ticks for axis yourChart.yAxis().ticks(0);