charts

Python - Extra Excel chart series with win32com

馋奶兔 提交于 2019-12-30 07:49:58
问题 I'm writing some code for an assignment, and I need to create a simple column chart in Excel. This afternoon I found win32com (amazing tool by the way), but I've been suffering from either the lack of documentation about it, or my lack of luck to find it ^^ I'm playing around with the charts, and I think I've managed to do what I want, with a little exception: the function I wrote always creates 2 series of columns. This is what I've got: xlBook = xlApp.Workbooks.Add() xlSheet = xlBook.Sheets

Python - Extra Excel chart series with win32com

随声附和 提交于 2019-12-30 07:49:33
问题 I'm writing some code for an assignment, and I need to create a simple column chart in Excel. This afternoon I found win32com (amazing tool by the way), but I've been suffering from either the lack of documentation about it, or my lack of luck to find it ^^ I'm playing around with the charts, and I think I've managed to do what I want, with a little exception: the function I wrote always creates 2 series of columns. This is what I've got: xlBook = xlApp.Workbooks.Add() xlSheet = xlBook.Sheets

Chart.js shaded regions

只谈情不闲聊 提交于 2019-12-30 07:48:25
问题 Chart.js (http://www.chartjs.org/docs/) can fill the color below line charts using the "fillColor" attribute (filling the region between the line chart itself and the x-axis). What I'd like to know is whether Chart.js can be configured to create shaded regions such as the one shown below: http://peltiertech.com/Excel/pix5/HorizBands09.png Thank you. 回答1: Shaded Regions for Line Charts You can extend the chart to do this. Preview or Script Chart.types.Line.extend({ name: "LineAlt", initialize:

Chart.js shaded regions

痴心易碎 提交于 2019-12-30 07:48:15
问题 Chart.js (http://www.chartjs.org/docs/) can fill the color below line charts using the "fillColor" attribute (filling the region between the line chart itself and the x-axis). What I'd like to know is whether Chart.js can be configured to create shaded regions such as the one shown below: http://peltiertech.com/Excel/pix5/HorizBands09.png Thank you. 回答1: Shaded Regions for Line Charts You can extend the chart to do this. Preview or Script Chart.types.Line.extend({ name: "LineAlt", initialize:

Highchart - tooltip for legends

a 夏天 提交于 2019-12-30 07:16:20
问题 I am using highcharts to represent data. In my chart based on conditions some series are disabled. Is there any way to remove the legend itemhoverstyle property for disabled series? Is there any way to add a tooltip to the legend items? 回答1: You can remove the serie from the legend : series:[{ name: 'serie1', type: 'line', data: yourArrayOfData, showInLegend: false }] If you want to change the css on hovering you'll have to change this highcharts-legend style. To add a tooltip to the legend

Loop through all charts in a workbook with VBA

烈酒焚心 提交于 2019-12-30 07:01:32
问题 I am trying to loop through all charts in a workbook. Why is option 1 working, but option 2 not? 'OPTION 1 For Each sht In ActiveWorkbook.Worksheets For Each cht In sht.ChartObjects MsgBox (cht.Name) Next cht Next sht 'OPTION2 Dim oChart As Chart For Each oChart In Application.Charts MsgBox (oChart.Name) Next oChart End Sub 回答1: There are two flavors of charts: "big" charts - an entire chart sheet "little" charts - chart objects embedded in a worksheet This code: Sub dural() Dim oChart As

How do I fill everything over a straight line and under a curve?

馋奶兔 提交于 2019-12-30 06:57:28
问题 I am using the Charts component in Windows Forms. I create a straight line using chart1.Series["Grenzwert"].Points.Add(new DataPoint(0, y)); chart1.Series["Grenzwert"].Points.Add(new DataPoint(maxwidth, y)); Also I plot a a series of points connected by a line, let's call it curve . How do I show everything over straight line and under curve filled? Column fills the whole area, not just above straight line . Example: 回答1: I have an idea that use SeriesChartType.Range as follow. private void

How to prevent legend labels being cut off in Google charts

折月煮酒 提交于 2019-12-30 05:37:19
问题 With a Perl script I generate numerous Google Line Charts for 20 and more series of data at once. The legend labels are of the form: a serial number appended by an iterating #counter. Unfortunately, starting with #10 those counters are cut off: Is there maybe a way to stop Google charts from doing that? My quite simple chart code is below: var data = { ...... }; function drawCharts() { for (var csv in data) { var x = new google.visualization.DataTable(data[csv]); var options = { title: csv,

How to create touch interactive charts for android [closed]

别来无恙 提交于 2019-12-30 04:36:28
问题 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 . I need charts for my application where the user use gesture to redraw the charts in android. Could you suggest any charting API,tool

Stand-alone charts in GWT

老子叫甜甜 提交于 2019-12-30 01:40:33
问题 I've been trying to get pretty charts to work in GWT on our internal network. Playing around with GWT-Ext's charts is nice, but it requires flash and is really messy to control (it seems buggy, in general). I'd like to hear about something that works with the least amount of dependencies and it also must work without a connection to the web (so, Google' charts API isn't a solution). Edit: Indeed, I would rather a library that is all client-side. 回答1: I'm building a GWT chart library based on