chart

javascript/amcharts - easy way to use legend to show/hide columns of 1 graph for Amchart Column Chart

匿名 (未验证) 提交于 2019-12-03 02:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I can't seem to find an easy way to add legend which has switchable functionality for items in a single graph for amcharts. I searched around and found a column chart which has switchable graphs ( JSFiddle 1 ). I found switchable items legend but it doesn't resize properly ( JSFiddle 2 ). This is the closest I can find to adding legends from multiple items of single graph ( CodePen 1 ). It is from amchart website itself but there is no switchable functionality. How can I add the switchable functionality here which allows column resizing (ie.

JFreeChart does not show the graph at every iteration on thread?

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am getting counter values in one class using a thread and writing JFreeChart in another thread. While executing, it works alternatively, but only shows the graph at the end. It also displays the y axis label value as a Float but the actual retrieval value is int. How can I solve these issues? XYDataset Dataset; TimeSeries Series = new TimeSeries("Random Data"); Second sec = new Second(); ChartPanel CPanel; Value = Integer.parseInt(MySQLClass.Map_MySql.get(""+MainWindow.SelectedNode+"")); String CounterName = MainWindow.SelectedNode

VBA: Method 'SetSourceData' of object '_Chart' failed For Multiple Pivot Charts

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is part 2 of the previous question: VBA: Runtime Error - SetSourceData for Second Pivot Chart After following the (good) advice offered in that thread, I am still having the same problem. The title error is still showing after the second chart attempts to SetSourceData. If I add an On Error Resume Next, then the data gets wonky and unreliable. I'm starting to think it's a problem with the PivotCache, but I've attempted to differentiate the caches with different variable names. This did not solve the issue. Below is the code in it's

Angular-Chart.js it doesn't display the chart

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use Angular-chart.js it doesn't display anything for me here is my javascript and html page ( function (){ angular . module ( "app" , [ "chart.js" ]). controller ( "BarCtrl" , function ( $scope ) { $scope . labels = [ '2006' , '2007' , '2008' , '2009' , '2010' , '2011' , '2012' ]; $scope . series = [ 'Series A' , 'Series B' ]; $scope . data = [ [ 65 , 59 , 80 , 81 , 56 , 55 , 40 ], [ 28 , 48 , 40 , 19 , 86 , 27 , 90 ] ]; }); })(); <!DOCTYPE html> <html> <head> <script src = "http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8

Absolute Position of Chart Using VBA

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I can use VBA to create a clustured column charty using the following code: ActiveSheet.Shapes.AddChart.Select ActiveChart.ChartType = xlColumnClustered However this is normally positioned in the centre of my screen. I can have it moved using code such as the following: ActiveSheet.Shapes("Chart 1").IncrementLeft -650.4545669291 ActiveSheet.Shapes("Chart 1").IncrementTop -295.9091338583 However this is only relative to its original position. Is it possible to set it that will always be positioned at a certain pixels or cell number? In other

Move tick label JavaFx 2

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is it possible to move/shift the tick labels into the chart. Currently I see api's to hide/show tick labels is there an API that moves the tick labels inside the chart? If there isn't an API then is there a technique that I can use/apply to get this done? Current code public class Graph extends Application{ private NumberAxis xAxis; private NumberAxis yAxis; public static void main(final String[] args) { launch(args); } @Override public void start(final Stage primaryStage) throws Exception { xAxis = new NumberAxis(0, 300, 20); xAxis

How to determine min and max value for ItemMargin property in StackedBarChart using jFreeChart

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using jFreeChart api to make one application such that on movement of slider the gap width in between the two bars gets increased or decreased according to the value of the slider. But I found with different charts and different data item margin property get varied. To demonstrate the problem I am attaching the following code:- import java.awt.BorderLayout; import java.awt.Container; import java.awt.Dimension; import javax.swing.BorderFactory; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JSlider; import javax

nvd3.js tooltip position with multiple charts

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm usinging v1.7.1 of nvd3. I have a page in which I render rows of charts with the same configuration but different data. I'm using interactive tooltip option on the multi line chart. The tooltip is rendering correctly, but as you scroll down the page, when you rollover the line, the tooltip is being rendered in the same position at the top of the page. It appears that the first few rows render the tooltip in the appropriate position but as you scroll down the tooltip goes out of view. I've tried manipulating the position with the

JFreeChart Bar Chart Production

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to create a bar chart that generates a dataset from within a for loop. String scores = scoreText.getText(); String[] data = scores.split(","); DefaultCategoryDataset barChartDataset = null; for (int l = 0; l < data.length; l++) { barChartDataset = new DefaultCategoryDataset(); // barChartDataset.setValue(new Double(data[l]), "Scores", stu); barChartDataset.addValue(new Double(data[l]), "Scores", stu); System.out.println(data[l]); } JFreeChart barChart = ChartFactory.createBarChart3D("Summary", "Name", "Scores", barChartDataset,

JavaFx StackedBar Chart Issue

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a chart with data stacked on (-,+)Y-Axis. With JfreeChart all this go rigth and data appear perfectly on each bar without loss. But when using javafx StackedBar Chart , when bar series have (positive & negative) data stacked bar corrupted and loss data. if (plusValue > 0) { series.getData().add(new XYChart.Data<String, Number>(xPoint, plusValue)); } if (minusValue > 0) { series.getData().add(new XYChart.Data<String, Number>(xPoint, -minusValue)); } Update : - Oracle StackedBarChart Sample - "I change Series value" import java.util