charts

Using ExtJS 4 charts in ExtJS 3 application

北慕城南 提交于 2020-01-05 07:19:07
问题 I'm trying to add Ext4 charting to an existing Ext3 application, using ext-all-sandbox.js. I've got the basics working, but the code below gives axis.processView is not a function . It works fine without the axes defined (but with no axes obviously). It appears that the config objects are being used directly instead of being used to create actual axis instances. Any solutions to get this working? TestGraphPanel = Ext.extend(Ext.Panel, { initComponent: function() { TestGraphPanel.superclass

Change colors of line chart Apache POI

狂风中的少年 提交于 2020-01-05 07:08:07
问题 I've generated a line chart using Apache POI. I need to change the default colors I got in the chart. Can I use RGB codes to define specific colors to each line? My code is as follows. Drawing drawing = sheet4.createDrawingPatriarch(); ClientAnchor anchor = drawing.createAnchor(0, 0, 0, 0, 1, 1, 17, 22); Chart chart = drawing.createChart(anchor); ChartLegend legend = chart.getOrCreateLegend(); legend.setPosition(LegendPosition.RIGHT); LineChartData data = chart.getChartDataFactory()

How to show two different color in Scatter Google Charts?

北战南征 提交于 2020-01-05 05:29:06
问题 I am using Google Charts for a simple scatter Chart. I want two different color in chart. how we add add to tow different background color. i need to add background for negative section red color and add green color for positive value section function drawChart() { // Define the chart to be drawn. var data = new google.visualization.DataTable(); data.addColumn('number', ''); data.addColumn('number', ''); data.addRows([ [-0.5, 1], [100, 1], [-80, 2], [25, 2], [60, 8], ]); // Set chart options

How to automatically export a chart from Excel (or Calc) to PNG

不想你离开。 提交于 2020-01-05 05:28:05
问题 The problem: I'm working on a web application that exports data from a database to Excel, including a chart, which is the main reason for the export in the first place. Now I would like for the chart to also be visible on the web page, without the need of exporting the data and opening the downloaded excel file. This could be of course done with JS libraries, but seeing as the chart is quite complicated, I would like to re-use existing export to excel instead or rewriting it all over again,

changing axis labels in excel 2007 charts using python win32com

和自甴很熟 提交于 2020-01-05 05:02:46
问题 I have an excel sheet with some data in first two columns. I created a simple chart with this data. I am facing problem in adding axis labels to the chart. here is my script from win32com.client import Dispatch, constants excel = win32com.client.Dispatch('Excel.Application') wb = excel.Workbooks.Open( 'output_data.xls', False, True) excel.Visible = False ws1 = wb.Worksheets('sheet_1) ch = ws1.Shapes.AddChart( 73, 200, 50, 800, 500).Select() excel.ActiveChart.ApplyLayout(1) excel.ActiveChart

Charting.DataPointCollection how to get a Range?

百般思念 提交于 2020-01-05 04:40:11
问题 I have a Charting.DataPointCollection and want to get only a part of the data. In a List you can do it like list.GetRange(int index, int count); but in DataPointCollection you don't have GetRange(). I had the idea of using something like that: DataPoints.Where(elem => DataPoints.IndexOf(elem) >= i && DataPoints.IndexOf(elem) <= j) but now i have an IEnumerable instead of a DataPointCollection... How can i get a DataPointCollection as a Part of another DataPointCollection? 回答1: Try this

VBA Chart series set Color Fill to “Automatic”

让人想犯罪 __ 提交于 2020-01-05 04:37:12
问题 I want to highlight some series in my stack chart - this is I have implemented. But the chart is dynamic, so when I change selection I need to highlight other series. But what was highlighted previously remains highlighted. I am thinking to tun a cycle through all series and assign Fill Color of the series as "Automatic" each time when I change the source. Then I could highlight the needed series. I have have found 2 options to sent the color using properties .Interior.Color OR .Format.Fill

How to set the formatting on the axes in Google Charts to a certain pattern?

a 夏天 提交于 2020-01-05 04:19:13
问题 I want to change the formatting of the values on the axis to look like so: 1 100 1 000 10 000 100 000 1 000 000 Meaning, I'd like to change the default grouping symbol to a space (' '). So far I tried with different approaches but none of them worked. Even the documentation couldn't help me much. Anyone? Important: I want to change the formatting on the values on the axis, not the inner values. I don't want to change the language of the google chart. 回答1: use option --> ticks -- to provide

How to fill between two AreaCharts in JavaFX?

荒凉一梦 提交于 2020-01-05 04:09:09
问题 The Area Chart in JavaFX fills the area between the data line and the zero y-axis. I would only like to know how to fill between two Area Charts. More Details: I am generating a bunch of random walks. Then, I create three different XYCharts for the Paths, the mean, and the mean +/- std. deviation. Finally, I use a StackPane to place each chart on top of each other with transparent background. The order of the charts has to be the following: 1. Simulated paths chart on the very back (LineChart

Fine tuning hash to dynamically create ZingCharts treemap array

末鹿安然 提交于 2020-01-05 04:04:20
问题 First : Thanks for reading, but there is a lot in this, it may be easier to see it in the CodePen examples that are linked at the bottom. I recently asked a question about how to dynamically create an array for a treemap, and was pointed in the right direction. I have been able to do some simple manipulation to the hash table, but can't figure out how to do the final step. Currently the treemap has 2 "levels", that was done like this: var data=[{color:"blue",party:"Democratic",text: